Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # IPTABLES
  2. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
  3. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 3128
  4.  
  5. # /etc/squid/squid.conf
  6. http_port 3128 transparent
  7.  
  8. visible_hostname meu_router
  9.  
  10. acl domains dstdomain uol.com.br
  11. http_access deny domains
  12.  
  13. acl domains2 dstdomain "/etc/squid/blocked.acl"
  14. http_access deny domains2
  15.  
  16. acl sexologia url_regex -i sexologia
  17. http_access allow sexologia
  18.  
  19. acl sex url_regex -i sex
  20. http_access deny sex
  21.  
  22. acl all src 0.0.0.0/0.0.0.0
  23. http_access allow all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement