Forum Moderators: open

Message Too Old, No Replies

Authenticating SOCKS 5 in PAC files?

Does anyone know how to..?

         

rollinj

8:15 pm on Dec 10, 2009 (gmt 0)

10+ Year Member



How would one add socks 5 authentication into this simple PAC file?

function FindProxyForURL(url, host) { return \"SOCKS 123.123.123.123:1234;\"; }";

Just to explain this proxy auto config file:
It's forcing every connection through the SOCKS 5 proxy ip 123.123.123.123 on port 1234.

Does anyone know how I would/should modify that PAC file if the socks proxy required a username and password?

I'm starting to think it's not even possible, as I have looked everywhere I know where to look for this answer... please, help :S

whoisgregg

9:31 pm on Dec 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know anything about SOCKS, but you can pass a username and password in a URL string like so:

username:password@123.123.123.123:1234

Of course, it's in plain text so anyone who views source could see the username and password. If that's a concern, don't use this method.

rollinj

5:55 am on Dec 11, 2009 (gmt 0)

10+ Year Member



Well a PAC file would only be viewable by me and my browser of choice, so prying eyes are not a concern.

PAC files are typically used for large company intranets or so I read here [en.wikipedia.org...] which makes me believe that there must be some way to authenticate socks 5 proxies with them.

But then again, firefox and msie don't support socks 5 authentication now do they..?