Proxy Server Configuration
- edit squid.conf after install squid >> apt-get install squid >> nano /etc/squid/squid.conf
visible hostname proxy.domain.com
http_access allow all [firstly it's deny all]
http_port 3128 [add] transparent - make transparent >> iptables -t nat -A PREROUTING -p tcp --dport80 -j REDIRECT --to -ports 3128
- restart squid >> /etc/init.d/squid restart
- if you wanna make untransparent use this >> -t nat -A PREROUTING -p tcp --dport80 -j REDIRECT -to
- edit squid.conf to add some blocked sites >> nano /etc/squid/squid.conf
acl blocked src 192.168.1.0/24
acl class src 192.168.2.0/24
acl blocked url regex-i "etc/blocksite.txt"
http_access allow blocked
http_access deny class blocked
http_access allow class
http_access deny all
related post into
wahh makasih =D
ReplyDelete