Skip to contentSkip to conversation

iptables mangle PREROUTING on br0.17

DISCUSSION Robert Sander 1 participant 1 message Dec 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I need to add a connection mark on packets that enter the system on a bridge interface with a VLAN tag.

The network setup looks like:

eth0-\
eth1--\ /-br0.15
eth2----bond0--\ /--br0.16
eth2--/ --br0-----br0.17

         tap0--/       \--br0.18

The rule

iptables -t mangle -A PREROUTING -i br0.17 -j CONNMARK --set-xmark 0x11

does not match the packets incoming on br0.17, no connection mark is applied. tcpdump -i br0.17 shows incoming packets.

Is it even possible to match which such a nested setup for the interfaces?

Regards

Signature · 4 lines
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
http://www.heinlein-support.de