summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2008-01-27 15:15:12 +0000
committerMike Makonnen <mtm@FreeBSD.org>2008-01-27 15:15:12 +0000
commit82e9dc59ce725026bfa23c0a0dc6b4a309fb019f (patch)
tree180b1e65f2068d05a9022300a981feb0392fb493 /etc
parent57f2b25dfac5ea4a4c7a6c894c8b7d2e39306875 (diff)
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/rc.d/ipfw8
2 files changed, 9 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index f6f2267a16cf..195facdcc395 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -122,6 +122,7 @@ firewall_nologports="135-139,445 1026,1027 1433,1434" # List of TCP/UDP ports
firewall_nat_enable="NO" # Enable kernel NAT (if firewall_enable == YES)
firewall_nat_interface="" # Public interface or IPaddress to use
firewall_nat_flags="" # Additional configuration parameters
+dummynet_enable="NO" # Load the dummynet(4) module
ip_portrange_first="NO" # Set first dynamically allocated port
ip_portrange_last="NO" # Set last dynamically allocated port
ike_enable="NO" # Enable IKE daemon (usually racoon or isakmpd)
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 115d85aeb7f5..0af77d8076ee 100644
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -14,9 +14,17 @@
name="ipfw"
rcvar="firewall_enable"
start_cmd="ipfw_start"
+start_precmd="ipfw_prestart"
stop_cmd="ipfw_stop"
required_modules="ipfw"
+ipfw_prestart()
+{
+ if checkyesno dummynet_enable; then
+ required_modules="$required_modules dummynet"
+ fi
+}
+
ipfw_start()
{
# set the firewall rules script if none was specified