Skip to contentSkip to conversation

update Kconfig files for bridging firewall

PATCH Applied Bart De Schuymer 2 participants 3 messages Aug 23, 2003 – Aug 24, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update Kconfig files for bridging firewall

Hi Dave,

The patch below adds some comments about filtering bridged ARP traffic and using netfilter for a bridging firewall. It also makes a menu for the ebtables configuration, which makes it look like the IP, IPv6 and DECnet filtering configuration.

This patch is an incremental patch, it assumes you applied the arpreply patch I sent yesterday. It is vs the Linux kernel snapshot (bk10) from yesterday.

cheers,
Bart

net/Kconfig renamed from net/Kconfig.old +9 -1
@@ -191,9 +191,11 @@
 	  information.
 
 	  If you enable iptables support along with the bridge support then you
-	  turn your bridge into a bridging firewall.
+	  turn your bridge into a bridging IP firewall.
 	  iptables will then see the IP packets being bridged, so you need to
 	  take this into account when setting up your firewall rules.
+	  Enabling arptables support when bridging will let arptables see
+	  bridged ARP traffic in the arptables FORWARD chain.
 
 	  If you want to compile this code as a module ( = code which can be
 	  inserted in and removed from the running kernel whenever you want),
@@ -243,6 +245,12 @@
 	  box can transparently forward the traffic to a local server,
 	  typically a caching proxy server.
 
+	  Yet another use of Netfilter is building a bridging firewall. Using
+	  a bridge with Network packet filtering enabled makes iptables "see"
+	  the bridged traffic. For filtering on the lower network and Ethernet
+	  protocols over the bridge, use ebtables (under bridge netfilter
+	  configuration).
+
 	  Various modules exist for netfilter which replace the previous
 	  masquerading (ipmasqadm), packet filtering (ipchains), transparent
 	  proxying, and portforwarding mechanisms. Please see
net/bridge/netfilter/Kconfig renamed from net/bridge/netfilter/Kconfig.old +11 -2
@@ -1,9 +1,16 @@
 #
 # Bridge netfilter configuration
 #
+
+menu "Bridge: Netfilter Configuration"
+	depends on BRIDGE && NETFILTER
+
 config BRIDGE_NF_EBTABLES
-	tristate "Bridge: ebtables"
-	depends on NETFILTER && BRIDGE
+	tristate "Ethernet Bridge tables (ebtables) support"
+	help
+	  ebtables is a general, extensible frame/packet identification
+	  framework. Say 'Y' or 'M' here if you want to do Ethernet
+	  filtering/NAT/brouting on the Ethernet bridge.
 #
 # tables
 #
@@ -172,3 +179,5 @@
 
 	  If you want to compile it as a module, say M here and read
 	  <file:Documentation/modules.txt>.  If unsure, say `N'.
+
+endmenu
#1 lore raw

netfilter-devel can ignore this message, the message was meant to be CC'ed to ebtables-devel.

Sorry for the overhead.

cheers,
Bart

Quoted 10 lines · Bart De Schuymer

Hi Dave,

The patch below adds some comments about filtering bridged ARP traffic and using netfilter for a bridging firewall. It also makes a menu for the ebtables configuration, which makes it look like the IP, IPv6 and DECnet filtering configuration.

This patch is an incremental patch, it assumes you applied the arpreply patch I sent yesterday. It is vs the Linux kernel snapshot (bk10) from yesterday.

#2 lore raw
In reply to Bart De Schuymer
Quoted 4 lines · On Sat, 23 Aug 2003 10:32:55 +0200 Bart De Schuymer <[email protected]> wrote:

The patch below adds some comments about filtering bridged ARP traffic and using netfilter for a bridging firewall. It also makes a menu for the ebtables configuration, which makes it look like the IP, IPv6 and DECnet filtering configuration.

Applied, thanks Bart.