Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # IPTABLES
- iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
- iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 3128
- # /etc/squid/squid.conf
- http_port 3128 transparent
- visible_hostname meu_router
- acl domains dstdomain uol.com.br
- http_access deny domains
- acl domains2 dstdomain "/etc/squid/blocked.acl"
- http_access deny domains2
- acl sexologia url_regex -i sexologia
- http_access allow sexologia
- acl sex url_regex -i sex
- http_access deny sex
- acl all src 0.0.0.0/0.0.0.0
- http_access allow all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement