summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-04-18 10:27:19 +0000
committerbrian <brian@FreeBSD.org>1998-04-18 10:27:19 +0000
commit116081d5f2f15798830c767e3781af1616223bfd (patch)
tree9c095639cbce82611f5e81abcc048add726ccb6a /etc/rc.network
parent4b10a4573603b76939c2ca43c0443bf63e8ba079 (diff)
downloadFreeBSD-src-116081d5f2f15798830c767e3781af1616223bfd.zip
FreeBSD-src-116081d5f2f15798830c767e3781af1616223bfd.tar.gz
Add natd support.
PR: 6339 Submitted by: cdillon@wolves.k12.mo.us
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network
index 1e49f77..e43b9d4 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id$
+# $Id: rc.network,v 1.21 1998/04/12 09:47:43 markm Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -265,6 +265,14 @@ network_pass3() {
if [ "X${mrouted_enable}" = X"YES" ]; then
echo -n ' mrouted'; mrouted ${mrouted_flags}
fi
+
+ # Network Address Translation daemon
+ if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" ]; then
+ if [ -a "X${firewall_enable}" = X"YES" ]; then
+ echo -n ' natd'; natd ${natd_flags} -n ${natd_interface}
+ fi
+ fi
+
echo '.'
network_pass3_done=YES
}
OpenPOWER on IntegriCloud