Date: Sat, 27 Oct 2018 23:33:40 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Victor Gamov <vit@otcnet.ru>, freebsd-net@freebsd.org Subject: Re: ipfw on bridge connecting vlans Message-ID: <45f4881e-3a02-5a37-1e77-45b530460fad@grosbein.net> In-Reply-To: <49c4193a-d38c-eff8-3ab8-25b103c2dcba@otcnet.ru> References: <36cd661e-ca54-be94-fd64-01ee768d5053@otcnet.ru> <9b8d8c04-8e3e-b148-8a08-135d6ac1785d@grosbein.net> <49c4193a-d38c-eff8-3ab8-25b103c2dcba@otcnet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
27.10.2018 23:26, Victor Gamov wrote: [skip] >> net.link.bridge.pfil_member=1 makes frames enter ruleset as incoming from bridge member, zero disables this pass. >> >> net.link.bridge.ipfw=1 makes frames enter ruleset again as incoming from bridge interface itself >> without distinction of bridge member, and for forwarded frames enter ruleset one more time as outgoing from the bridge itself. >> >> And frame enters ruleset one MORE time as outgoing from bridge member if net.link.bridge.pfil_member=1. (*) > With current configs I have unexpected behavior when multicast received via unneeded vlan300 not blocked by rule 9000 and bad traffic bridged into all bridge members. > > So if when net.link.bridge.pfil_member=1 then I can check incoming and outgoing bridge members as expected? I'll try it later, thanks > > > Is it possible the following config with net.link.bridge.pfil_member=1 ? Yes, it should be. > table allow239 create type iface > table allow239 add vlan400 > 3000 allow ip from any to 239.0.0.10 recv vlan100 xmit table(allow239) You also should add the "out" keyword to this rule for performance and clearness because only outgoing frames have "xmit" attribute to check, so this rule is not tried for incoming frames (it won't match them anyway). > It's still very interesting to know full packet path via all interfaces (phy, vlan, bridge) and understand where/why ipfw triggered. > For example why i need "allow via igb0"? It's because net.link.ether.ipfw=1? > Can you explain it in details? See above (*).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45f4881e-3a02-5a37-1e77-45b530460fad>