http proxy - How do I use squid as default gateway -
i have installed centos 6.5
my default gateway in infrastructure 192.168.3.1 (which firewall ip)
i wanted change centos server ip can limit usage of internet , monitor websites used in network.
i dont want setup proxy server setting in browser
appreciate :)
you have 2 options:
first option use iptables firewall , redirect trafic port 80 port 3128.
iptables -t nat -a prerouting -p tcp --dport 80 -j redirect --to-ports 3128
second option configure squid lisaning port 80 instead 3128
by default, squid listens on port 3128. if use different port, modify
/etc/squid/squid.conf
http_port 80
save
service squid restart
Comments
Post a Comment