Use socks5 proxy via ssh tunnel
- 2019-10-29
- ssh
- Connect to your remote server via ssh with
-D
parameter
1 | ssh -D 6666 user@server.com # the 6666 is the forward port |
- Set socks5 proxy:
Open Firefox -> Preference -> Network Settings (At the bottom of the settings page 😕) -> Manual proxy configuration -> Fill in localhost
after the Socks Host label and fill in the above port 6666
after the label Port.
2019-10-29 Update:
I found a much more powerful browser entension: Proxy SwitchyOmega, which can help us switch proxies without much pain (support both chrome and firefox 👍).