ещё вопрос задам может тоже поможете. (я первый раз freebsd ставлю, без косяков как то не обошлось)
есть у меня ещё и squid
только он игнорирует всё что написано в squid.conf
т.е. инет работает и никакие ограничения ни для кого не действуют.
вот конфиг:
http_port 3128
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#список групп кому можно ходить в инет
acl adm src 192.168.99.1/32 192.168.99.7/32 192.168.99.51/32 192.168.99.41/32 192.168.99.18/32 192.168.99.15/32 192.168.99.4/32 192.168.99.8/32 192.168.99.16/32 192.168.99.17/32 192.168.99.14/32
acl kovalev src 192.168.99.22/32
acl ruk src 192.168.99.27/32 192.168.99.40/32 192.168.99.124/32 192.168.99.28/32 192.168.99.11/32 192.168.99.31/32 192.168.99.77/32 192.168.99.29/32 192.168.99.25/32
acl srv src 192.168.99.6/32 192.168.99.9/32 192.168.99.5/32
acl server01 src 192.168.99.3/32
acl emp src 192.168.99.225/32 192.168.99.100/32 192.168.99.149/32 192.168.99.110/32 192.168.99.132/32 192.168.99.52/32 192.168.99.209/32 192.168.99.217/32 192.168.99.238/32 192.168.99.39/32 192.168.99.79/32 192.168.99.249/32 192.168.99.70/32 192.168.99.71/32 192.168.99.250/32 192.168.99.123/32 192.168.99.48/32 192.168.99.55/32 192.168.99.43/32 192.168.99.38/32 192.168.99.230/32 192.168.99.221/32 192.168.99.223/32 192.168.99.224/32 192.168.99.80/32 192.168.99.95/32 192.168.99.241/32 192.168.99.105/32
acl buh src 192.168.99.66/32 192.168.99.65/32 192.168.99.56/32 192.168.99.193/32 192.168.99.74/32 192.168.99.112/32 192.168.99.116/32 192.168.99.54/32 192.168.99.53/32 192.168.99.151/32 192.168.99.120/32 192.168.99.114/32 192.168.99.102/32 192.168.99.30/32 192.168.99.104/32 192.168.99.33/32 192.168.99.103/32 192.168.99.101/32 192.168.99.219/32 192.168.99.220/32 192.168.99.81/32 192.168.99.36/32 192.168.99.144/32 192.168.99.122/32 192.168.99.75/32 192.168.99.72/32 192.168.99.63/32 192.168.99.150/32 192.168.99.61/32 192.168.99.91/32 192.168.99.44/32 192.168.99.47/32 192.168.99.94/32
acl yur src 192.168.99.115/32 192.168.99.113/32 192.168.99.119/32 192.168.99.90/32 192.168.99.202/32
acl snb src 192.168.99.73/32 192.168.99.57/32 192.168.99.152/32 192.168.99.21/32 192.168.99.45/32 192.168.99.42/32 192.168.99.49/32 192.168.99.62/32 192.168.99.99/32 192.168.99.172/32 192.168.99.125/32 192.168.99.127/32 192.168.99.143/32 192.168.99.231/32 192.168.99.232/32
acl fin src 192.168.99.30/32 192.168.99.146/32 192.168.99.107/32 192.168.99.67/32 192.168.99.106/32 192.168.99.118/32
acl pdo src 192.168.99.139/32 192.168.99.141/32 192.168.99.26/32
acl ras src 192.168.99.35/32 192.168.99.32/32 192.168.99.34/32 192.168.99.37/32
acl bmk src 192.168.99.0/24
acl mul urlpath_regex -i\.mp3$ \.mpeg$ \.avi$ \.mov$
acl snmppublic snmp_community public
http_access allow localhost
#запрещаем некоторые сайты для всех
acl erosets url_regex -i erosets.net
http_access deny erosets
acl spy url_regex -i sp-protect2009.com
http_access deny spy
acl incash url_regex -i incash.ru
http_access deny incash
acl comuna url_regex -i comuna.ru
http_access deny comuna
acl ruobnal url_regex -i ruobnal.ru
http_access deny ruobnal
acl cph1 url_regex -i cph1
http_access deny cph1
http_access allow adm
http_access allow kovalev
http_reply_access allow adm
#запрещаем потоковое видео
acl cont-type-vid rep_mime_type Content-Type video
http_reply_access deny cont-type-vid
http_reply_access allow adm
#запрещаем некоторые сайты для некоторых групп
acl odnokl url_regex -i odnoklas
http_access deny odnokl
acl vk url_regex -i vk.com
http_access deny vk
acl vkontakte url_regex -i vkontakte
http_access deny vkontakte
acl youtube url_regex -i youtube
http_access deny youtube
acl facebook url_regex -i facebook
http_access deny facebook
acl twitter url_regex -i twitter
http_access deny twitter
acl livejornal url_regex -i livejornal
http_access deny livejornal
acl udaff url_regex -i udaff
http_access deny udaff
http_access allow ruk
http_access allow srv
http_access allow emp
http_access allow buh
http_access allow fin
http_access allow yur
http_access allow ras
http_access allow snb
http_access allow pdo
acl rbc_ru url_regex -i rbc
http_access allow rbc_ru server01
acl microsoft url_regex -i microsoft
http_access allow microsoft server01
http_reply_access allow all
icp_access allow all
miss_access allow all
http_access allow localhost manager
http_access deny manager
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
http_access deny all
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/squid/cache/squid 100 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/squid/cache/squid
# Add any of your own refresh_pattern entries above these.
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
snmp_port 3401
# snmp_access allow My_SNMP
snmp_access allow snmppublic
snmp_access deny all
#рубим скорость
delay_pools 3
delay_class 1 2
delay_class 2 2
delay_class 3 2
delay_access 1 allow adm
delay_access 1 allow ruk
delay_access 1 allow yur
delay_access 1 deny all
delay_access 2 allow emp
delay_access 2 deny all
delay_access 3 allow srv
delay_access 3 allow kovalev
delay_access 3 allow fin
delay_access 3 allow buh
delay_access 3 allow pdo
delay_access 3 allow snb
delay_access 3 allow ras
delay_access 3 deny all
delay_parameters 1 -1/-1 -1/-1
delay_parameters 2 50000/50000 -1/-1
delay_parameters 3 50000/50000 -1/-1
coredump_dir /usr/local/squid/cache