10

I have a small LAN with 12 devices connected to it, ubuntu box running dnsmasq acting as a dhcp server and another ubuntu box acting as a web proxy. Is it possible to configure all of the devices in the network through the dhcp server to use this web proxy ?

Gray
  • 201
  • 1
  • 2
  • 3
  • 3
    [IANA](http://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml#options) has reserved option number 135 for `HTTP Proxy for phone-specific applications`. That's the only mention of proxy I could find in the list of possible options. Unfortunately no RFC is mentioned, so I have no idea how that option is supposed to work. – kasperd Jul 22 '15 at 10:59
  • You could configure a transparent proxy instead. – Zrin Jul 22 '15 at 13:00
  • If you mean to force the computers/applications to use your proxy, then, no. – Ron Maupin Jan 21 '17 at 23:58

1 Answers1

12

You can configure your DHCP server for Web Proxy Autodiscovery Protocol:

Create a PAC file and host it on a local web server. Then have your DHCP server provide the URL of the PAC file (e.g. http://mywebserver/proxy.pac) in DHCP option 252:

option auto-proxy-config code 252 = " http://mywebserver/proxy.pac"; 
Mikel Rychliski
  • 236
  • 1
  • 5