我有一个连接12台设备的小型局域网,运行dnsmasq作为dhcp服务器的ubuntu box以及作为web代理的另一个ubuntu box。 是否可以通过dhcp服务器configurationnetworking中的所有设备来使用此Web代理?
您可以configuration您的DHCP服务器的Web代理自动发现协议 :
创buildPAC文件并将其托pipe在本地Web服务器上。 然后让DHCP服务器在DHCP选项252中提供PAC文件的URL(例如http://mywebserver/proxy.pac ):
option auto-proxy-config code 252 = " http://mywebserver/proxy.pac";