aquaballoon

Dansguardian + Squid

Aug 14th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. /etc/dansguardian/dansguardian.conf
  2. #UNCONFIGURED - Please remove this line after configuration
  3. filterport = 8888
  4. proxyport = 3128
  5.  
  6. /etc/iptables.up.rules
  7. -A PREROUTING -p tcp -m tcp -i eth1 --dport 80 -j DNAT --to-destination 192.168.1.1:8888
  8. -A PREROUTING -p tcp -m tcp -i eth1 --dport 80 -j REDIRECT --to-ports 8888
  9.  
  10. -A INBOUND -p tcp -m tcp --dport 8888 -j ACCEPT
  11. -A INBOUND -p udp -m udp --dport 8888 -j ACCEPT
  12.  
  13. /etc/squid3/squid.conf
  14. http_port 3128 transparent
Advertisement
Add Comment
Please, Sign In to add comment