diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-06-07 21:20:18 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-06-07 21:20:18 +0000 |
commit | cabd7db5b3f283cc6e685d753e59460a5de5403f (patch) | |
tree | 8809398320aa340f89cd0896986b9b82138326de /share | |
parent | 999d3f2f2a5b9b1c95ac2e88332cd752042e711a (diff) | |
download | FreeBSD-src-cabd7db5b3f283cc6e685d753e59460a5de5403f.zip FreeBSD-src-cabd7db5b3f283cc6e685d753e59460a5de5403f.tar.gz |
Bring in IPFW layer2 filtering from bridge.c, this allows Ethernet filtering
using the layer2, mac and mac-type keywords.
This is one of the last features that bridge.c has over if_bridge and gets us
very close to a full functional replacement.
Approved by: mlaier (mentor)
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/if_bridge.4 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/share/man/man4/if_bridge.4 b/share/man/man4/if_bridge.4 index 54fa1aa..2e079f5 100644 --- a/share/man/man4/if_bridge.4 +++ b/share/man/man4/if_bridge.4 @@ -81,7 +81,8 @@ Spanning Tree is used to detect and remove loops in a network topology. .Pp When filtering is enabled, bridged packets will pass through the filter inbound on the originating interface, on the bridge interface and outbound on -the appropriate interfaces. This behaviour can be controlled using +the appropriate interfaces. +Either stage can be disabled, this behaviour can be controlled using .Xr sysctl 8 : .Bl -tag -width ".Va net.link.bridge.pfil_member" .It Va net.link.bridge.pfil_member @@ -98,11 +99,24 @@ to enable enable filtering on the bridge interface, set to .Li 0 to disable it. +.It Va net.link.bridge.ipfw +Set to +.Li 1 +to enable enable layer2 filtering with +.Xr ipfirewall 4 +, set to +.Li 0 +to disable it. +When ipfw is enabled pfil_bridge and pfil_member will be disabled so that IPFW +is not run twice, these can be re-enabled if desired. .El .Pp ARP and REVARP packets are forwarded without being filtered and others -that are not IP nor IPv6 packets are not forwarded when filtering is -enabled. +that are not IP nor IPv6 packets are not forwarded when +.Xr pfil 9 +filtering is enabled. +IPFW can filter Ethernet types using 'mac-type' so all packets are passed to +the filter for processing. .Pp Note that packets to and from the bridging host will be seen by the filter on the interface with the appropriate address configured as well |