ich hab heute mal ein Squid installiert welcher nur Windows Updates erlauben soll (was auch soweit funktioniert):
Code: Alles auswählen
root@server:/etc/squid# grep "^[^#;]" squid.conf
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 443 # https
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
include /etc/squid/conf.d/*
acl windowsupdate dstdomain windowsupdate.com
acl windowsupdate dstdomain wustat.windows.com
acl windowsupdate dstdomain .microsoft.com
http_access allow windowsupdate
http_access deny all
http_port 3128
maximum_object_size 2000 MB
cache_dir ufs /var/spool/squid 8000 16 256
coredump_dir /var/spool/squid
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
refresh_pattern -i windows.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
quick_abort_min -1
range_offset_limit 2000 MB windowsupdate
Code: Alles auswählen
TCP_DENIED/403 4228 GET http://ctldl.windowsupdate.com/[...]