[squid-users] transparent proxy error

From: CsY <csy@dont-contact.us>
Date: Sun, 30 Oct 2005 14:11:53 +0100

Hello!

I have a little problem with transparent proxy, i hope, you can help me.
I have a proxy server with 2 eth interfaces.
I setted up the bridge, squid, dansguardian, and iptables, this works
transparent proxy. But i have power failure and the server shut down.
When restarted the transparent proxy not working transparently. If i set
up in the browser, this working correctly.
the iptables-save is:

# Generated by iptables-save v1.3.1 on Fri Oct 21 15:21:54 2005
*mangle
:PREROUTING ACCEPT [2497:834932]
:INPUT ACCEPT [2477:831704]
:FORWARD ACCEPT [19:3172]
:OUTPUT ACCEPT [2598:846827]
:POSTROUTING ACCEPT [2617:849999]
COMMIT
# Completed on Fri Oct 21 15:21:54 2005
# Generated by iptables-save v1.3.1 on Fri Oct 21 15:21:54 2005
*nat
:PREROUTING ACCEPT [6:789]
:POSTROUTING ACCEPT [74:4434]
:OUTPUT ACCEPT [69:3693]
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8081
COMMIT
# Completed on Fri Oct 21 15:21:54 2005
# Generated by iptables-save v1.3.1 on Fri Oct 21 15:21:54 2005
*filter
:INPUT ACCEPT [2477:831704]
:FORWARD ACCEPT [19:3172]
:OUTPUT ACCEPT [2598:846827]
COMMIT
# Completed on Fri Oct 21 15:21:54 2005

the bridge:

brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 172.21.253.250 up
ifconfig br0 netmask 255.255.255.0
ifconfig br0 broadcast 172.21.253.255
echo "1" > /proc/sys/net/ipv4/ip_forward
route add default gw 172.21.253.254
iptables-restore /root/scripts/ipt_working

Do you have any idea?

Thanks

Csaba
Received on Sun Oct 30 2005 - 06:12:08 MST

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:05 MST