2

Is it possible for me to config system-wide proxy by a .pac file under linux?

I know I could set proxy by

export $PROXY=proxyserver:port

But I want to implement something like:

export $PROXY=~/proxy.pac

Maybe I need a local lightweight proxy server, but I cannot find such one, are there any suggestions?

Thanks very much and sorry for my broken English.

Given92
  • 101
  • 2
  • 8
  • what exactly you want to achieve ? setting your system wide proxy with `.pac` file or you are looking for a proxy server in order to install on your host ? – deimus Dec 20 '14 at 14:32

1 Answers1

3

I suggest my pacproxy if you are familier with Ruby. After installation, you can use like as follows.

$ bundle exec pacproxy -P ~/proxy.pac -p 3128

$ export $PROXY=localhost:3128
otahi
  • 126
  • 6