Für gnome und apt kannst du die Infos auch hinterlegen:
Code: Alles auswählen
gcontool bzw. gconftool-2 kann die registry auslesen und beschreiben:
rekursiv lesen:
gconftool -R /system/proxy
schreiben:
gconftool --type int --set /system/proxy/ftp_port 8080
gconftool --type string --set /system/proxy/secure_host proxy.domain.tld
$ cat /etc/apt/apt.conf
Acquire::http::Proxy "http://proxy.domain.tld:8080/";
Ansonsten google mal nach wpat. Jeder Browser, der bei der Internetverbindung auf "automatische Suche" eingestellt ist, sucht nach einer wpat.dat oder wpad.pac
Die kann z.B. so aussehen:
Code: Alles auswählen
// WPAD - http://www.squid-cache.org/Doc/FAQ/FAQ-5.html#netscape-pac
// http://www.wlug.org.nz/WPAD
function FindProxyForURL(url, host)
{
if (dnsDomainIs(host, "faq.domain.tld") ||
dnsDomainIs(host, "forum.domain.tld") ||
dnsDomainIs(host, ".vpn.domain.tld") ||
dnsDomainIs(host, "trac.domain.tld")
)
return "PROXY proxy.domain.tld:8080";
else if (isPlainHostName(host) ||
dnsDomainIs(host, ".intern.domain.tld") ||
dnsDomainIs(host, ".domain.tld") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
isInNet(host, "127.0.0.1", "255.255.255.255") ||
dnsDomainIs(host, ".local")
)
return "DIRECT";
else
return "PROXY proxy.domain.tld:8080";
// return "PROXY proxy.domain.tld:8080; DIRECT";
}