netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xt_physdev has no effect if net.bridge.bridge-nf-call-iptables=0
@ 2012-01-03  1:29 Richard Weinberger
  2012-01-03 13:26 ` Richard Weinberger
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Weinberger @ 2012-01-03  1:29 UTC (permalink / raw)
  To: netfilter-devel, linux-netdev

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Hi!

If net.bridge.bridge-nf-call-iptables is set to zero (which is the
default setting in Fedroa and RHEL6) xt_physdev has no effect.

A rule like this one will never match:
iptables -t nat -A PREROUTING -i bridge0 -m physdev --physdev-in eth0 -p
tcp --dport 80 -j DNAT --to-destination :8080

IMHO the cause of the problem is in net/bridge/br_netfilter.c,
br_nf_pre_routing() returns NF_ACCEPT before skb->nf_bridge is allocated
and skb->nf_bridge->physindev set to skb->dev.

Thanks,
//richard


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

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

end of thread, other threads:[~2012-01-05 19:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-03  1:29 xt_physdev has no effect if net.bridge.bridge-nf-call-iptables=0 Richard Weinberger
2012-01-03 13:26 ` Richard Weinberger
2012-01-03 13:26   ` [PATCH] netfilter: Fix br_nf_pre_routing() in conjunction with bridge-nf-call-ip(6)tables=0 Richard Weinberger
2012-01-03 16:15     ` Stephen Hemminger
2012-01-03 17:42       ` Richard Weinberger
2012-01-03 20:15         ` Bart De Schuymer
2012-01-03 20:29           ` Richard Weinberger
2012-01-04 17:55             ` Bart De Schuymer
2012-01-04 23:13               ` Richard Weinberger
2012-01-05 19:50                 ` Bart De Schuymer
2012-01-05 19:54                   ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).