Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 213452] [patch] [ipfw] add support for ipfw ngtee/netgraph actions at layer-2

2 views
Skip to first unread message

bugzilla...@freebsd.org

unread,
Oct 13, 2016, 11:40:53 AM10/13/16
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213452

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
Assignee: freebs...@FreeBSD.org
Reporter: po...@grosbein.net
Keywords: patch

Created attachment 175712
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175712&action=edit
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
purposes.

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 8.8.8.8 layer2 out xmit igb0

Attached patch makes it work.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"

bugzilla...@freebsd.org

unread,
Oct 13, 2016, 12:16:13 PM10/13/16
to freebs...@freebsd.org
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213452

Mark Linimon <lin...@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|freebs...@FreeBSD.org |freebs...@FreeBSD.org
0 new messages