From 4a8173ab1b360c2c10f0514b250c81a94863f0f0 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 20 Dec 1997 23:19:30 +0000 Subject: [PATCH] ipforwarding option in rc.conf --- src/etc/netstart | 6 +++++- src/etc/rc.conf | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index dea526c8..22cebdbb 100644 --- a/src/etc/netstart +++ b/src/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/src/etc/rc.conf b/src/etc/rc.conf index 8ac257b7..c56d71f8 100644 --- a/src/etc/rc.conf +++ b/src/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