Linux Netfilter discussions
 help / color / mirror / Atom feed
* netfilter packetflow
@ 2012-08-17 12:48 A G
  2012-08-17 14:04 ` Jan Engelhardt
  2012-08-20 23:26 ` old question revisited: can rely in 'iptables-restore' format? Peter Grandi
  0 siblings, 2 replies; 9+ messages in thread
From: A G @ 2012-08-17 12:48 UTC (permalink / raw)
  To: netfilter


Hi
This diagram shows the packetflow
http://upload.wikimedia.org/wikipedia/commons/3/37/Netfilter-packet-flow.svg

1. Does this mean that when I set my computer to bridge mode for example
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth2
ip link set br0 up

The packet goes through all of the link layer chains? That is, it will go through nat/PREROUTING (ebtables), raw/PREROUTING (iptables), mangle/PREROUTING (iptables)
Or does it only go through the ebtables (blue coloured) chains in the link layer?

2. If it only goes through the blue chains only, if I want it to go through the iptables chains in the link layer (green coloured), I am required to have a rule with a DROP target to push it up to to the higher network layers, is this correct?

3. In which case, if I have added rules to the mangle/PREROUTING (iptables) chain, am I adding it to the network layer mangle/PREROUTING box in the diagram, or in the link layer mangle/PREROUTING box in the diagram?

Currently I'm learning how it all fits together, thanks
Andrew
 		 	   		  

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-23 20:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 12:48 netfilter packetflow A G
2012-08-17 14:04 ` Jan Engelhardt
2012-08-20 23:26 ` old question revisited: can rely in 'iptables-restore' format? Peter Grandi
2012-08-21  0:30   ` /dev/rob0
2012-08-21  2:21     ` Neal Murphy
2012-08-22 17:35       ` /dev/rob0
2012-08-22 19:12         ` Jan Engelhardt
2012-08-23 19:20     ` Peter Grandi
2012-08-23 20:35       ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox