essandess / easylist-pac-privoxy

EasyList Tracker and Adblocks to Proxy Auto Configuration (PAC) File and Privoxy Actions and Filters
GNU General Public License v3.0
103 stars 97 forks source link

"Configure an OpenVPN to use the proxy.pac file hosted on your LAN." #8

Closed maxcountryman closed 6 years ago

maxcountryman commented 6 years ago

Can you explain the process for doing this? Cursory Google searches don't yield much.

essandess commented 6 years ago

Why, yes!

macos-openvpn-server

maxcountryman commented 6 years ago

Well yes, I did look at that—it isn’t clear to me how the OpenVPN config consumes the .pac.

essandess commented 6 years ago

Just search the repo for "proxy.pac".

maxcountryman commented 6 years ago

So is it not possible to use the .pac with an OpenVPN client then?

essandess commented 6 years ago

It is possible. The link above shows how to configure a client or server push settings do just that.

maxcountryman commented 6 years ago

Okay thanks—it seemed like the two configs you linked were for servers exclusively.

Do you mind if I add a note to the README?

maxcountryman commented 6 years ago

As far as I can tell, push "dhcp-option PROXY_AUTO_CONFIG_URL http://192.168.1.1:8080/proxy.pac does not work with OpenVPN client configs. Would be nice if this were mentioned in the documentation.

essandess commented 6 years ago

push directives belong in server configs because the server pushes the options to the clients.

The client config setting is simply

dhcp-option PROXY_AUTO_CONFIG_URL http://192.168.1.1:8080/proxy.pac

Both server-pushed and client dhcp-option options work.

This is already well-documented in OpenVPN rtfm's.