用ssh做firefox的代理 - LinuxTips - larrupingpig

来源:百度文库 编辑:神马文学网 时间:2024/04/27 20:30:56

用ssh做firefox的代理收藏

自己只要有ssh可以访问,便可以让远程主机当你的代理服务器!而且过程相当简单。

ssh -fND localhost:12345 username@host.com

以上就是所有命令!这条命令会在后台运行。端口12345可以是本地机任意没有占用的端口。

配置firefox也很简单。找到 edit > preferences > advanced > network >settings 选择manual proxy configuration,只要填写socks host:127.0.0.1 port12345,并选择SOCKS v5。

这样firefox已经通过远程主机来访问网络了。如果需要远程解析DNS,在firefox地址栏中输入about:config,找到network.proxy.socks_remote_dns设为true。

要查看是否起作用可以到http://www.whatismyip.com/网站,如果正常应该看到远程服务器地址。


参考
http://wiki.freaks-unidos.net/weblogs/azul/firefox-ssh-tunnel
https://calomel.org/firefox_ssh_proxy.html