summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-08-19 17:38:47 +0000
committerandre <andre@FreeBSD.org>2004-08-19 17:38:47 +0000
commit14296889b232e65933cc0f2512e877cc0019382b (patch)
tree8065150f543604d3417ed36a27c7c6086dbba1b2 /sys/netinet/ip_fw2.c
parent5aee38d3218bbca30bf0849fb7e072f5b4ff5935 (diff)
downloadFreeBSD-src-14296889b232e65933cc0f2512e877cc0019382b.zip
FreeBSD-src-14296889b232e65933cc0f2512e877cc0019382b.tar.gz
Bring back the sysctl 'net.inet.ip.fw.enable' to unbreak the startup scripts
and to be able to disable ipfw if it was compiled directly into the kernel.
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index c1ae851..821ef6a 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -156,6 +156,9 @@ static int autoinc_step = 100; /* bounded to 1..1000 in add_rule() */
#ifdef SYSCTL_NODE
SYSCTL_NODE(_net_inet_ip, OID_AUTO, fw, CTLFLAG_RW, 0, "Firewall");
+SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, enable,
+ CTLFLAG_RW | CTLFLAG_SECURE3,
+ &fw_enable, 0, "Enable ipfw");
SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, autoinc_step, CTLFLAG_RW,
&autoinc_step, 0, "Rule number autincrement step");
SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, one_pass,
OpenPOWER on IntegriCloud