Browse Source

ipforwarding option in rc.conf

OPENBSD_2_3
deraadt 26 years ago
parent
commit
4a8173ab1b
2 changed files with 7 additions and 2 deletions
  1. +5
    -1
      src/etc/netstart
  2. +2
    -1
      src/etc/rc.conf

+ 5
- 1
src/etc/netstart View File

@ -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


+ 2
- 1
src/etc/rc.conf View File

@ -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


Loading…
Cancel
Save