=================== SQUID CONFIGURATION =================== visible_hostname raspberrypi acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 192.168.0.0/255.255.255.0 # RFC1918 possible internal network acl netvpn src 10.0.0.0/255.0.0.0 # RFC1918 possible internal network acl SSL_ports port 443 # https acl SSL_ports port 563 # snews acl SSL_ports port 873 # rsync acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # h ttps 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 Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localnet http_access allow localhost http_access allow netvpn tcp_outgoing_address 192.168.0.0/255.255.255.0 localnet tcp_outgoing_address 10.0.0.0/255.0.0.0 netvpn http_access deny all forwarded_for off icp_access allow localnet icp_access allow netvpn http_port 3128 =========================================== IPTABLE CONFIGURATION FOR NEOROUTER & SQUID =========================================== # Serveur NEOROUTER (1196)? iptables -t filter -A INPUT -p tcp --dport 1196 -j ACCEPT iptables -t filter -A OUTPUT -p tcp --dport 1196 -j ACCEPT # Serveur SQUID (3128) iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 3128 -j ACCEPT iptables -A INPUT -p tcp --dport 3128 -j DROP iptables -A OUTPUT -d 192.168.0.0/24 -p tcp --sport 3128 -J ACCEPT iptables -A OUTPUT -p tcp --sport 3128 -j DROP? iptables -A INPUT -s 10.0.0.0/8 -p tcp --dport 3128 -j ACCEPT iptables -A INPUT -p tcp --dport 3128 -j DROP iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --sport 3128 -J ACCEPT? iptables -A OUTPUT -p tcp --sport 3128 -j DROP