说明
假设主机的IP为 192.168.1.101, 系统为Linux
本地启动SSH隧道
ssh -qTfnN -D 8080 [email protected]
参数说明:
-q Quiet mode. Causes most warning and diagnostic messages to be suppressed.
-T Disable pseudo-tty allocation.
-f Requests ssh to go to background just before command execution.
-n Redirects stdin from /dev/null (actually, prevents reading from stdin).
-N Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only).
-D [bind_address:]port
Specifies a local ``dynamic'' application-level port forwarding.
浏览器设置
-
Firefox
-
安装FoxyProxy
网址:https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/
-
清空DNS缓存
网址: about:config 设置 network.dnsCacheExpirationGracePeriod 的值为0, 这个值表示DNS缓存的时间
-
设置socks5代理 Host 填 127.0.0.1 Port 填 8080 使用Socks代理,选择 SOCKS v5
-
-
Chrome
- 安装proxy-switchysharp 网址:https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm?hl=en-US
- 清空DNS缓存 网址: chrome://net-internals/#dns 点击 “Clear host cache”
- 用proxy-switchysharp设置socks5代理 Host 填 127.0.0.1 Port 填 8080 使用Socks代理,选择 SOCKS v5
Proxifier软件设置
设置Socks5代理, Address 填 127.0.0.1, Port 填 8080, protocol 选 SOCKS Version 5
在DNS - Proxifier DNS Settings 选择 Resolve hostnames through proxy