Bug ID: 213452
           Summary: [patch] [ipfw] add support for ipfw ngtee/netgraph
                    actions at layer-2
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Keywords: patch

Created attachment 175712
add support for ngtee/netgraph ipfw actions for layer-2 frames

Currently, kernel part of ipfw for layer-2 (ethernet frames) does not support
and ignores ipfw rules other than "pass", "deny" and dummynet-related.
Any other rule acts like "pass" for layer-2 packets. That prevents us from
selective copying of Ethernet frames for remote traffic analyzing/mirroring 

Assume, we have ethernet-like interface (NIC, vlan, tap etc.) and we need
to selectively mirror some frames there. In case of vlan900 and assuming
ng_ipfw(4) netgraph node has a hook named "900" attached to "lower" hook
of vlan900's ng_ether(4) node, that would be as simple as:

ipfw add ngtee 900 ip from any to layer2 out xmit igb0

Attached patch makes it work.

You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to