Skip to contentSkip to conversation

Add sysctl entries for bridge-nf

PATCH Applied Bart De Schuymer 2 participants 2 messages Dec 22, 2003 – Dec 25, 2003

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

PATCH 1/1 Add sysctl entries for bridge-nf

Hi Dave,

The following patch adds these sysctl entries in /proc/sys/net/bridge/:
bridge-nf-call-arptables - pass or don't pass bridged ARP traffic to arptables' FORWARD chain.
bridge-nf-call-iptables - pass or don't pass bridged IPv4 traffic to iptables' chains.
bridge-nf-filter-vlan-tagged - pass or don't pass bridged vlan-tagged ARP/IP traffic to arptables/iptables.

It adds the necessary constants to sysctl.h, changes br_netfilter.c and adds some info to the ip-sysctl documentation.
The default values are so that the old behavior is kept by default.

cheers,
Bart

include/linux/sysctl.h renamed from include/linux/sysctl.h.old +8 -0
@@ -579,6 +579,14 @@
 	NET_SCTP_MAX_BURST               = 12,
 };
 
+/* /proc/sys/net/bridge */
+enum {
+	NET_BRIDGE_NF_CALL_ARPTABLES = 1,
+	NET_BRIDGE_NF_CALL_IPTABLES = 2,
+	NET_BRIDGE_NF_CALL_IP6TABLES = 3,
+	NET_BRIDGE_NF_FILTER_VLAN_TAGGED = 4,
+};
+
 /* CTL_PROC names: */
 
 /* CTL_FS names: */
net/bridge/br_netfilter.c renamed from net/bridge/br_netfilter.c.earlier +174 -35

313 lines not on this page · raw message

Documentation/networking/ip-sysctl.txt renamed from Documentation/networking/ip-sysctl.txt.old +19 -0
@@ -678,4 +678,23 @@
 Pekka Savola <[email protected]>
 YOSHIFUJI Hideaki / USAGI Project <[email protected]>
 
+
+/proc/sys/net/bridge/* Variables:
+
+bridge-nf-call-arptables - BOOLEAN
+	1 : pass bridged ARP traffic to arptables' FORWARD chain.
+	0 : disable this.
+	Default: 1
+
+bridge-nf-call-iptables - BOOLEAN
+	1 : pass bridged IPv4 traffic to iptables' chains.
+	0 : disable this.
+	Default: 1
+
+bridge-nf-filter-vlan-tagged - BOOLEAN
+	1 : pass bridged vlan-tagged ARP/IP traffic to arptables/iptables.
+	0 : disable this.
+	Default: 1
+
+
 $Id: ip-sysctl.txt,v 1.20 2001/12/13 09:00:18 davem Exp $
#1 lore raw
Quoted 11 lines · On Mon, 22 Dec 2003 23:01:47 +0100 Bart De Schuymer <[email protected]> wrote:

The following patch adds these sysctl entries in /proc/sys/net/bridge/:
bridge-nf-call-arptables - pass or don't pass bridged ARP traffic to arptables' FORWARD chain.
bridge-nf-call-iptables - pass or don't pass bridged IPv4 traffic to iptables' chains.
bridge-nf-filter-vlan-tagged - pass or don't pass bridged vlan-tagged ARP/IP traffic to arptables/iptables.

It adds the necessary constants to sysctl.h, changes br_netfilter.c and adds some info to the ip-sysctl documentation.
The default values are so that the old behavior is kept by default.

Applied, thanks Bart.