diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-20 23:19:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-20 23:19:31 +0000 |
commit | 636b1b1ccfe93eca5e87da38eaabcde90cf3fe21 (patch) | |
tree | 844cc3789556528bb2e4fffff0f7997aa7c48cd3 /etc | |
parent | 7fa45272cadc97e9a91eab53fd6540a8654be518 (diff) |
ipforwarding option in rc.conf
Diffstat (limited to 'etc')
-rw-r--r-- | etc/netstart | 6 | ||||
-rw-r--r-- | etc/rc.conf | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart index dea526c875a..22cebdbb500 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.32 1997/11/29 02:03:43 kstailey Exp $ +# $OpenBSD: netstart,v 1.33 1997/12/20 23:19:30 deraadt Exp $ # /etc/myname contains my symbolic name # @@ -31,6 +31,10 @@ else nat=NO fi +if [ X"${iproute}" = X"YES" ]; then + sysctl -w net.inet.ip.forwarding=1 +fi + # set the address for the loopback interface ifconfig lo0 inet localhost diff --git a/etc/rc.conf b/etc/rc.conf index 8ac257b732f..c56d71f813b 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: rc.conf,v 1.6 1997/12/15 10:47:24 deraadt Exp $ +# $OpenBSD: rc.conf,v 1.7 1997/12/20 23:19:30 deraadt Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=NO # for 'normal' use: routed_flags=-q @@ -29,6 +29,7 @@ inetd=YES # almost always needed lpd=NO # printing daemons check_quotas=YES # NO may be desireable in some YP environments rfc1323=YES # TCP RFC1323 extensions (disable if tcp is slow) +ipforward=NO # route packets between interfaces # miscellaneous other flags # only used if the appropriate server is marked YES above |