A forward proxy proxies in behalf of clients. The following setup will allow you to sit in office and SSH connect to a remote server. The remote server will act as the proxy server to forward all your requests to the destination server.
Use SSH tunnel as a secure forward proxy:
# ssh -D 8080 USER@HOST_NAME.COM
or
# ssh -N -f -D 8080 USER@HOST_NAME.COM
You will need to configure a SOCKS proxy server in Google Chrome by adding these two flags when launch Chrome:
--proxy-server="socks5://127.0.0.1:8080"
--host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE 127.0.0.1"
To set up the forward proxy through Putty:
Open Putty > Connection > SSH > Tunnels:
Source Port: 8080
Destination: (leave blank)
Check "Dynamic"
Click on "Add" button
Reference:
http://www.cyberciti.biz/faq/set-up-ssh-tunneling-on-a-linux-unix-bsd-server-to-bypass-nat/
Thursday, April 7, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment