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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -