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

2

7

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?

Broch answered 6/12, 2009 at 23:37 Comment(3)
en.wikipedia.org/wiki/Proxy_auto-config has some good info but nothing about passwords...Broch
This PAC file will be used for Firefox and IE.Broch
This is probably a better question on serverfaultChinachinaberry
B
5

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.

Broch answered 31/12, 2009 at 3:31 Comment(0)
S
0

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 [email protected]

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

Stickney answered 28/10, 2019 at 13:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.