Date: Wed, 23 Oct 2002 11:03:21 -0700 (PDT) From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/44417: ipfw layer2 rules are not checked for ether_output_frame() on bridged interface Message-ID: <200210231803.g9NI3LDs088114@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 44417 >Category: kern >Synopsis: ipfw layer2 rules are not checked for ether_output_frame() on bridged interface >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 23 11:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andriy Gapon >Release: 4.7-RELEASE >Organization: >Environment: FreeBSD terminus.foundation.invalid 4.7-RELEASE FreeBSD 4.7-RELEASE #3: Fri Oct 18 16:09:53 EDT 2002 avg@edge.foundation.invalid:/sys-devel/obj/sys-devel/src/sys/TERMINUS.bridge i386 >Description: with both net.link.ether.ipfw=1 and net.link.ether.bridge_ipfw=1 packets transmitted via an interface that is a part of a bridge cluster are not checked against ipfw rules in either ether_output_frame() or bdg_forward(). This means that traffic originating from a bridging host or routed from non-bridged interface will not be checked agains layer2-specific ipfw rules. this problem is only specific IPFW2, because with IPFW1 you can set layer2 rules anyway. >How-To-Repeat: on a bridinging host with IPFW2, Actions: 1. sysctl net.link.ether.ipfw=1 2. sysctl net.link.ether.bridge_ipfw=1 3. ipfw add 1 allow mac <mac address of host H on bridged subnet> any 4. ping H Result: rule 1 will not have any matches >Fix: it's very tempting to suggest to remove check for src != NULL at sys/net/bridge.c:860, but not being an expert in the network code, I am not sure about possible interdependencies/side-effects. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210231803.g9NI3LDs088114>