Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
Router - LinuxBridge - Backbone -- , test net
              --------> Management Interface

# brctl show br0
bridge name     bridge id               STP enabled     interfaces
br0             0000.00900b2a6f44       no              eth16

br0       Link encap:Ethernet  HWaddr 00:90:0B:2A:6F:44
eth1      Link encap:Ethernet  HWaddr 00:90:0B:2C:80:A2
          inet addr:  Bcast:  Mask:
eth16     Link encap:Ethernet  HWaddr 00:90:0B:2A:6F:44
eth17     Link encap:Ethernet  HWaddr 00:90:0B:2A:6F:45

br0 is formed with eth16 and eth17. eth16, eth17 and br0 has ifconfig " up". That is no IP set.

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 eth1   U     0      0        0 eth1

There are lots of clients within subnets other then management subnet behind backbone.

I am trying to transparently cache http traffic.

# iptables -t nat -I PREROUTING -p tcp -s --dport 80 -j DNAT --to-destination


# ebtables -t broute -A BROUTING -p IPv4 --ip-protocol 6 --ip-source --ip-destination-port 80 -j redirect --redirect-target ACCEPT
# iptables -t nat -A PREROUTING -i br0 -p tcp -s --dport 80 -j REDIRECT --to-port 3127

I see packet counters increasing in iptables stats. However squid can not reply back to the clients. Internet stops for clients.

I have tried with rp_filter=0,1 and accept_local=0,1; Result were the same.

Is it possible to transparently redirect traffic in such as topology? What do you suggest to make it work?

Best Regards,

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.