Proxy configuration por DHCP / DNS
Descripción
Como obligo el uso de un proxy sin interceptar. Esto solo funciona con los navegadores
Prerequistos
Tener acceso al servidor local de DHCP y DNS
Instalación
En DHCP agregue un registro adicional dhcp-option=252,“http://192.168.8.211/proxy.pac”
En DNS agrege un servidor web llamado wpad.midomino.com que tenga el mismo archivo llamado wpad.dat
Configuración
1. Una accion
2. Segunda accion
Trucos
Problemas
1. Configuracion de Apple access points
https://discussions.apple.com/thread/2309560
-
Referencias
- https://wiki.squid-cache.org/Technology/WPAD
- https://wiki.squid-cache.org/Technology/WPAD/DNS
- https://thejimmahknows.com/clientwebproxyautoconfiguration/
FIN
Advertencia
Este documento es privado y es de u so exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal.
———————– proxy.pac o wpad.dat
function FindProxyForURL(url, host) {
// our local URLs from the domains below example.com don't need a proxy:
if (shExpMatch(host, “*.azuan.com”) ||
shExpMatch(host, “*.checkcert.co”) ||
shExpMatch(host, “*.eficasoftware.com”) ||
shExpMatch(host, “*.esenoeraelproblema.org”) ||
shExpMatch(host, “*.ikatta.com”) ||
shExpMatch(host, “*.kuine.org”) ||
shExpMatch(host, “*.legacy.com.co”) ||
shExpMatch(host, “*.leyenda.com.co”) || ||
shExpMatch(host, “*.linuxcol.org”) ||
shExpMatch(host, “*.orfeoexpress.com”) ||
shExpMatch(host, “*.orfeolibre.org”) ||
shExpMatch(host, “*.skinatech.com”) ||
shExpMatch(host, “*.yococinohoy.com”) ||
shExpMatch(host, “*.ztart.org”))
{
return “DIRECT”;
}
if (isInNet(host, “192.168.8.0”, “255.255.255.0”) ||
isInNet(host, “10.11.11.0”, “255.255.255.0”) ||
isInNet(host, “172.24.8.0”, “255.255.255.0”))
{
return “DIRECT”;
}
// All other requests go through port 8080 of proxy.example.com.
// should that fail to respond, go directly to the WWW:
return “PROXY 192.168.8.253:3128”;
}
15-Marzo-2006 J.E.Gomez v1.0 Primera version