Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 687
darkAsPitch Avatar asked Dec 06 '09 23:12

darkAsPitch


People also ask

How do I setup a proxy PAC file?

PAC files can be configured manually in browser settings or automated using the Web-Proxy Auto Discovery (WPAD) protocol. The WPAD protocol uses DHCP or DNS to locate the PAC file. The browser used in endpoints searches for a web server on startup to find the PAC file's location.

How do I create an automatic proxy configuration URL?

The proxy auto-config file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL. user_pref("network. proxy. autoconfig_url", "http://us2.indexdata.com:9005/id/cf.pac");

How does a proxy PAC file work?

A proxy auto-configuration (PAC) file is a text file that instructs a browser to forward traffic to a proxy server, instead of directly to the destination server.

Which function is in the proxy auto-config file?

A Proxy Auto-Configuration (PAC) file is a JavaScript function definition that determines whether web browser requests (HTTP, HTTPS, and FTP) go direct to the destination or are forwarded to a web proxy server.


1 Answers

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.

like image 168
darkAsPitch Avatar answered Oct 23 '22 10:10

darkAsPitch