Skip to main content
added additional useful detail
Source Link

I decided to use a time tested approach of trial and error. This is what allowed access to proxy2:

ssh -t -t -D proxy1 -R proxy2:127.0.0.1:proxy2 -p remoteSSH [email protected]

In Firefox, I can now enter:

https://127.0.0.1:proxy2

which will send the connection through the tunnel (proxy1) to the local proxy (proxy2) essentially becoming a local-remote-local tunnel to a specific port.

While proxy2 is accessible through proxy1, proxy1 is allowed access to the internet. To limit what the proxies were allowed to access, I added a PermitOpen entry in the sshd_config file of the remote host at 192.168.1.100 according to the man page:

http://www.openssh.com/cgi-bin/man.cgi?query=sshd_config

PermitOpen 127.0.0.1:proxy2 127.0.0.1:80 127.0.0.1:443

I decided to use a time tested approach of trial and error. This is what allowed access to proxy2:

ssh -t -t -D proxy1 -R proxy2:127.0.0.1:proxy2 -p remoteSSH [email protected]

In Firefox, I can now enter:

https://127.0.0.1:proxy2

which will send the connection through the tunnel (proxy1) to the local proxy (proxy2) essentially becoming a local-remote-local tunnel to a specific port.

I decided to use a time tested approach of trial and error. This is what allowed access to proxy2:

ssh -t -t -D proxy1 -R proxy2:127.0.0.1:proxy2 -p remoteSSH [email protected]

In Firefox, I can now enter:

https://127.0.0.1:proxy2

which will send the connection through the tunnel (proxy1) to the local proxy (proxy2) essentially becoming a local-remote-local tunnel to a specific port.

While proxy2 is accessible through proxy1, proxy1 is allowed access to the internet. To limit what the proxies were allowed to access, I added a PermitOpen entry in the sshd_config file of the remote host at 192.168.1.100 according to the man page:

http://www.openssh.com/cgi-bin/man.cgi?query=sshd_config

PermitOpen 127.0.0.1:proxy2 127.0.0.1:80 127.0.0.1:443
Source Link

I decided to use a time tested approach of trial and error. This is what allowed access to proxy2:

ssh -t -t -D proxy1 -R proxy2:127.0.0.1:proxy2 -p remoteSSH [email protected]

In Firefox, I can now enter:

https://127.0.0.1:proxy2

which will send the connection through the tunnel (proxy1) to the local proxy (proxy2) essentially becoming a local-remote-local tunnel to a specific port.