aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.network
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-06-22 17:40:53 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-06-22 17:40:53 +0000
commit55f087be8e5dcc1384615c0977d26d95c14f9f7e (patch)
tree359331e73d7d4bb171964bef156097ab4edabad3 /etc/rc.network
parent195c7083da2ea4c136067fc54cda90465b5039e3 (diff)
downloadsrc-55f087be8e5dcc1384615c0977d26d95c14f9f7e.tar.gz
src-55f087be8e5dcc1384615c0977d26d95c14f9f7e.zip
Add ip_portrange_first and ip_portrange_last rc.conf/rc.network
options. This allows you to set the standard dynamic port assignment range prior to any network daemons (like named) starting up, necessary if you are also using a firewall to restrict lower ports. will be MFC'd in a few days
Notes
Notes: svn path=/head/; revision=61961
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/rc.network b/etc/rc.network
index fc7cdd07c014..4a3c1ec58fde 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -350,6 +350,25 @@ network_pass1() {
sysctl -w net.link.ether.inet.proxyall=1 >/dev/null
;;
esac
+
+ case ${ip_portrange_first} in
+ [Nn][Oo] | '')
+ ;;
+ *)
+ echo -n ' ip_portrange_first=$ip_portrange_first'
+ sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null
+ ;;
+ esac
+
+ case ${ip_portrange_last} in
+ [Nn][Oo] | '')
+ ;;
+ *)
+ echo -n ' ip_portrange_last=$ip_portrange_last'
+ sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null
+ ;;
+ esac
+
echo '.'
case ${ipsec_enable} in