1.1 KiB
1.1 KiB
SSH SOCSK (ProxyTunnel)
Command
ssh -C -D <proxyport> <USERNAME>@<SYSTEM>
- -C : enables compression
- -D : specifies Socks proxyport
Firefox
- go to Edit -> Preferences -> Advanced -> Network -> Connection -> Settings...
- check "Manual proxy configuration"
- make sure "Use this proxy server for all protocols" is cleared
- clear "HTTP Proxy", "SSL Proxy", "FTP Proxy", and "Gopher Proxy" fields
- enter "127.0.0.1" for "SOCKS Host"
- enter "1080" (or whatever port you chose) for Port.
SSH Remote forward (makes local port apear on remote machine)
Port to be internaly binded on remote machine
ssh -R <remoteport>:localhost:<localport> <USERNAME>@<SYSTEM>
Port to be binded to remote machine
ssh -g -R *:<remoteport>:localhost:<localport> <USERNAME>@<SYSTEM>
SSHD config (on remote where ports are forwarded to)
- GatewayPorts no : only allows the remote system to connect
- GatewayPorts yes: allows the remote network to connect to the forwarded port
- GatewayPorts clientspecified : allows the remote network to connect to the forwarded port when -g switch is used