Dropbox 19 – Dropbox Client (Linux)

To port forward on Linux your SSH config file should look something like the following.

Dropbox Client 01

Host DBOX*
 AddressFamily inet
 User dbox-relay
 Port 22
 IdentityFile /root/.ssh/dbox_client
 ServerAliveInterval 10
 LocalForward 11095 127.0.0.1:11095
 LocalForward 11096 127.0.0.1:11096
 LocalForward 11097 127.0.0.1:11097
 LocalForward 11098 127.0.0.1:11098
 
Host DBOX-tunnels-SSH
 HostName <FQDN of Dropbox Relay>
 StrictHostKeyChecking yes
 UserKnownHostsFile /root/.ssh/known_hosts

Host DBOX-tunnels-SSL
 HostName localhost
 ProxyCommand /usr/bin/ncat --ssl-verify <FQDN of Dropbox Relay> 443
 NoHostAuthenticationForLocalhost yes

Dropbox Client 02

Host DBOX*
 AddressFamily inet
 User dbox-relay
 Port 22
 IdentityFile /root/.ssh/dbox_client
 ServerAliveInterval 10
 LocalForward 12095 127.0.0.1:12095
 LocalForward 12096 127.0.0.1:12096
 LocalForward 12097 127.0.0.1:12097
 LocalForward 12098 127.0.0.1:12098
 
Host DBOX-tunnels-SSH
 HostName <FQDN of Dropbox Relay>
 StrictHostKeyChecking yes
 UserKnownHostsFile /root/.ssh/known_hosts

Host DBOX-tunnels-SSL
 HostName localhost
 ProxyCommand /usr/bin/ncat --ssl-verify <FQDN of Dropbox Relay> 443
 NoHostAuthenticationForLocalhost yes

The local forwards here should be noted for use later but are mostly arbitrary (can’t be used by other services). The destination is the Dropbox Relay and those ports must correspond with the reverse SSH tunnels created by the Dropbox Server.

In this example we are creating the following mappings:

Dropbox Server 01 Dropbox Relay Dropbox Client 01
SSH 22 11095 11095
VNC 5901 11096 11096
HTTP Proxy (Squid) 3128 11097 11097
SOCKS Proxy 9999 11098 11098

 

Dropbox Server 02 Dropbox Relay Dropbox Client 02
SSH 22 12095 12095
VNC 5901 12096 12096
HTTP Proxy (Squid) 3128 12097 12097
SOCKS Proxy 9999 12098 12098

 

This will be repeated for as many Dropbox Servers as you have.

Leave a Reply

Your email address will not be published. Required fields are marked *