Im trying to create a proxy server with squid that serves a LAN, the computers in LAN connect to server and go out to the internet, and when then try to go to a banned page, it blocks them.
It isnt working for me....
I will detail what Ive modified here:
iface LAN inet static
iface WAN inet dhcp
It working, I can send ping to LAN and to Google at same time, no problem with network.
http_port 3128 transparent
# And uncheck this:
http_access allow localnet
The rest of the file is as default one.
sudo nano /etc/sysctl.conf:
# Just unchecked this:
And the last file that Ive modified, sudo nano /etc/rc.local:
#I add this line:
sbin/iptables -t nat -A PREROUTING -s 172.30.2.0/24 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
I have a windows xp client connected to server with this LAN configuration:
dns: 22.214.171.124, 126.96.36.199
I can send ping to server but I cant ping www.google.es
Please someone can help me? where is my error?