Всем привет. Пытаюсь настроить Squid 3.3 в связке с DansGuardian на FreeBSD 10. 
 Сам DG уже работает и даже блокирует сайты по url. 
 Но проблема в том, что при этом сквид не пускает на другие сайты. Я так понял он не хочет пускать трафик с 127.0.0.1 
 Настройки сквида не менял, вот они: 
 [more]http_port 3128 
 http_port 3129 intercept 
 visible_hostname bsd.proxy   
 connect_timeout 20 second 
 dns_v4_first on 
 shutdown_lifetime 1 seconds 
 cache deny all   
 acl mail src 192.168.160.127 
 acl mail_dmn dstdomain .mail.ru 
 acl localhost src 127.0.0.1/255.255.255.255 
 acl localnet src 192.168.160.0/255.255.255.0 
 acl userlist src "/usr/local/etc/squid/res/userlist.txt" 
 acl banlist dstdomain "/usr/local/etc/squid/res/banlist.txt" 
 acl bannerregex url_regex "/usr/local/etc/squid/res/bannerregex.txt" 
 acl stopvk url_regex "/usr/local/etc/squid/res/stopvk.txt" 
 acl notrust dstdomain "/usr/local/etc/squid/res/notrust.txt" 
 acl type urlpath_regex "/usr/local/etc/squid/res/type.txt" 
 acl urltoip url_regex -i ^http://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/.* 
 acl swf rep_mime_type -i ^application/x-shockwave-flash$  
 acl stop_video urlpath_regex -i \.flv?$ \.flv$ \.wmv$ \.flv* \.mpg$ \.avi$ \.m4v$ \.mov$ \.mp4$ \.video$ \.video?$ 
 acl lowsp src 192.168.160.100 
 acl highsp src 192.168.160.109 
 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 torrent_mime rep_mime_type -i ^application/x-bittorrent$          
 acl torrent_mime rep_mime_type -i application/x-bittorrent   
 http_access deny !Safe_ports 
 http_access allow CONNECT !SSL_ports 
 http_reply_access deny torrent_mime   
 http_access deny mail !mail_dmn 
 http_access allow notrust 
 http_access deny banlist  
 http_access deny urltoip 
 http_access deny stopvk 
 http_access deny type 
 #http_access deny bannerregex !userlist 
 #http_reply_access deny swf 
 http_access deny stop_video 
 http_access allow localhost 
 http_access allow localnet 
 http_access deny all   
 forwarded_for off 
 header_access From deny all 
 header_access Server deny all 
 header_access User-Agent deny all 
 header_access WWW-Authenticate deny all 
 header_access Link deny all 
 header_access X-Forwarded-For deny all 
 header_access Via deny all 
 header_access Cache-Control deny all 
 header_access Referer deny all   
 delay_pools 2 
 delay_class 1 2 
 delay_class 2 4 
 delay_access 1 allow lowsp 
 delay_access 1 deny all 
 delay_access 2 allow highsp 
 delay_access 2 deny all 
 delay_parameters 1 50000/50000 50000/50000 
 delay_parameters 2 -1/-1 -1/-1 -1/-1 32000/32000 
 [/more]   
 Кусок лога сквида: 
 [more]1411555158.148      4 127.0.0.1 TCP_MISS/403 4480 GET 
http://its.1c.ru/favicon.ico - HIER_NONE/- text/html 
 1411555158.150     10 127.0.0.1 TCP_MISS/403 4582 GET 
http://its.1c.ru/favicon.ico - HIER_DIRECT/127.0.0.1 text/html 
 [/more]   
 Настройки ipfw: 
 [more] 
 00100 allow ip from any to any via lo0 
 00110 allow tcp from me to any out via tun0 uid squid keep-state  
тестовый комп идет в dansguardian  00115 fwd 127.0.0.1,8080 tcp from 192.168.160.200 to any dst-port 80-83,8080-8088 out via tun0 
 р
абочая подсеть идет в сквид  00120 fwd 127.0.0.1,3129 tcp from 192.168.160.0/24 to any dst-port 80-83,8080-8088 out via tun0 
 00200 deny ip from any to 127.0.0.0/8 
 00300 deny ip from 127.0.0.0/8 to any 
 00400 deny ip from any to ::1 
 00500 deny ip from ::1 to any 
 00600 allow ipv6-icmp from :: to ff02::/16 
 00700 allow ipv6-icmp from fe80::/10 to fe80::/10 
 00800 allow ipv6-icmp from fe80::/10 to ff02::/16 
 00900 allow ipv6-icmp from any to any ip6 icmp6types 1 
 01000 allow ipv6-icmp from any to any ip6 icmp6types 2,135,136 
 65000 allow ip from any to any 
 65535 deny ip from any to any 
 [/more]