【共享地道】
稍加修改,你的代理服务器可以让家里的爱疯等设备共享。
首先你要找到你这台视窗的IP地址。在CMD窗口
C:>ipconfig
Windows IP Configuration
...
IPv4 Address. . . . . . . . . . . : 10.50.26.188
回到运Bitvise SSH Client的Services,把Lisen Interface 从172.0.0.1改成 10.50.26.188。
你的代理服务器就是10.50.26.188:1080了。
再回到火狐狸FireFox浏览器Options->Settings->Connetion Settings,把localhost改成10.50.26.188。
【爱疯iPhone】
要iPhone共享,家里还得有个Web服务器。要是没有,视窗上可以建一个。本文不介绍。
你的Web服务器要服务一个文件:proxy.pac, 内容是
function FindProxyForURL(url, host)
{
return "SOCKS 10.50.26.188:1337";
}
一旦你的Web服务器有这一页, http://192.168.1.2/proxy.pac, 你就可以设置爱疯了。
打开爱疯Settings->WIFI,点击右边的 i
最下面的Configure Proxy,点击右边的 Off
选Automatic,在URL一栏输入你pac文件的地址。
用你的爱疯看 https://www.whatismyip.com/ 你会看到你的你ssh服务器的IP地址。
【后记】
其他设备举一反三。这地道口在家里,别人不易查到!只需能ssh到墙外Linux机器。要封也只能封那个墙外机器的IP!是个一劳永逸的解决方案。
【参考】
【1】Proxy Using SSH Tunnel https://www.systutorials.com/944/proxy-using-ssh-tunnel/
【2】How to Configure iOS to Use Socks Proxy over SSH with a Linux/Unix Host
https://www.systutorials.com/4876/how-to-configure-ios-for-iphone-and-ipad-to-use-socks-proxy-created-by-ssh/
【3】Welcome to Bitvise! https://www.bitvise.com