[Bug 814] rpfilter blocks broadcast packets

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Apr 12 11:02:58 CEST 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=814

--- Comment #3 from Florian Westphal <fw at strlen.de> 2013-04-12 11:02:57 CEST ---
That explains it.

This patch should fix it, I'll send it for inclustion soon.

diff --git a/net/ipv4/netfilter/ipt_rpfilter.c
b/net/ipv4/netfilter/ipt_rpfilter.c
index c301300..601abf2 100644
--- a/net/ipv4/netfilter/ipt_rpfilter.c
+++ b/net/ipv4/netfilter/ipt_rpfilter.c
@@ -76,7 +76,7 @@ static bool rpfilter_mt(const struct sk_buff *skb, struct
xt_action_param *par)
        info = par->matchinfo;
        invert = info->flags & XT_RPFILTER_INVERT;

-       if (par->in->flags & IFF_LOOPBACK)
+       if (skb_dst(skb)) /* locally generated? */
                return true ^ invert;

        iph = ip_hdr(skb);

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list