]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - config/cfgroot/proxy-acl
HinzugefĆ¼gt:
[people/pmueller/ipfire-2.x.git] / config / cfgroot / proxy-acl
CommitLineData
10a04d70
MT
1# Do not modify '/var/ipfire/proxy/squid.conf' directly since any changes
2# you make will be overwritten whenever you resave proxy settings using the
3# web interface! Instead, modify the file '/var/ipfire/proxy/acl' and then
4# restart squid using the web interface. Changes made to the 'acl' file
5# will propagate to the 'squid.conf' file at that time.
6# [Scott Tregear, 22 Feb 2005]
7
8# Uncomment the following line to enable logging of User-Agent header:
9#useragent_log /var/log/squid/user_agent.log
10
11# Uncomment the following line to enable logging of Referer header:
12#referer_log /var/log/squid/referer.log
13
14acl all src 0.0.0.0/0.0.0.0
15acl localhost src 127.0.0.1/255.255.255.255
16acl SSL_ports port 443 563
17acl Safe_ports port 80 # http
18acl Safe_ports port 21 # ftp
19acl Safe_ports port 443 563 # https, snews
20acl Safe_ports port 70 # gopher
21acl Safe_ports port 210 # wais
22acl Safe_ports port 1025-65535 # unregistered ports
23acl Safe_ports port 280 # http-mgmt
24acl Safe_ports port 488 # gss-http
25acl Safe_ports port 591 # filemaker
26acl Safe_ports port 777 # multiling http
27acl Safe_ports port __PROXY_PORT__ # Squid port (for icons)
28
29acl IPCop_http port 81
30acl IPCop_https port 444
31acl IPCop_ips dst __GREEN_IP__ __BLUE_IP__
32acl IPCop_networks src __GREEN_NET__ __BLUE_NET__
33acl CONNECT method CONNECT
34
35##Access to squid:
36#local machine, no restriction
37http_access allow localhost
38
39#GUI admin if local machine connects
40http_access allow IPCop_ips IPCop_networks IPCop_http
41http_access allow CONNECT IPCop_ips IPCop_networks IPCop_https
42
43#Deny not web services
44http_access deny !Safe_ports
45http_access deny CONNECT !SSL_ports
46
47#Finally allow IPCop_networks clients
48http_access allow IPCop_networks
49http_access deny all