Skip to content

Mac下使用SSH隧道科学上网

Published: at 00:00
说明
假设主机的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.
浏览器设置
Proxifier软件设置
设置Socks5代理, Address 填 127.0.0.1, Port 填 8080, protocol 选 SOCKS Version 5

在DNS - Proxifier DNS Settings 选择 Resolve hostnames through proxy