Linux config system proxy by pac file

6.3k Views Asked by At

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.

1

There are 1 best solutions below

1
On

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