Hi all
 
I am running squid and squidguard and all is working fine (well, nearly).
 
Squid is running transparently on port 3128. I redirect traffic with the following firewall rules :
 
iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0 -d 192.168.5.1/24 --destination-port 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0 -d 192.168.2.3/24 --destination-port 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0 --destination-port 80 -j REDIRECT --to-ports 3128
The first rule is for traffic on eth1 and the second for eth0. These rules make sure that web request for web server
on the same machine does not go through the proxy but to the web server.
 
The problem i'm having is with redirecting banned users to a local page liek this :
 
 
This just times out.
 
When I use a domain name instead of the ip like above it takes forever to work.
 
Does anyone have any ideas on what the problem might be ?
 
Thanks
Barry

Reply via email to