How To Authenticate Socks 5 Proxies Inside PAC (Proxy Auto Config) Files

懵懂的女人 提交于 2020-01-22 20:13:08

问题


How can you setup PAC files to use SOCKS proxies with authentication?

Using this simple PAC file as an example:

function FindProxyForURL(url, host) { return "SOCKS 69.123.133.75:7257;"; }

How would you connect to that socks proxy using a username and password?


回答1:


Since firefox and msie do not support socks 5 authentication, it is impossible to specify the username and password in a PAC file without first modifying your browser of choice.




回答2:


You need to open ssh tunnel to your destination that opens your SOCKS server locally (you can authenticate while doing that). Than connect your firefox to your local side of tunnel safely without authentication.

Example command to do that on Linux:

ssh -D 1337 -q -C -N -f -p 2150 proxy@your.server.com

You can set it in putty if you are using Windows.



来源:https://stackoverflow.com/questions/1857039/how-to-authenticate-socks-5-proxies-inside-pac-proxy-auto-config-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!