Browse Source

s/^nat/ipnat/

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

+ 4
- 4
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: netstart,v 1.36 1998/02/23 20:47:35 niklas Exp $
# $OpenBSD: netstart,v 1.37 1998/03/28 00:11:00 deraadt Exp $
# /etc/myname contains my symbolic name # /etc/myname contains my symbolic name
# #
@ -24,11 +24,11 @@ fi
# Configure NAT before configuring network interfaces # Configure NAT before configuring network interfaces
# #
if [ "${nat}" = "YES" -a "${ipfilter}" = "YES" -a -f "${nat_rules}" ]; then
if [ "${ipnat}" = "YES" -a "${ipfilter}" = "YES" -a -f "${ipnat_rules}" ]; then
echo 'configuring NAT' echo 'configuring NAT'
ipnat -CF -f ${nat_rules}
ipnat -CF -f ${ipnat_rules}
else else
nat=NO
ipnat=NO
fi fi
# set the address for the loopback interface # set the address for the loopback interface


+ 3
- 3
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.17 1998/03/25 07:25:21 deraadt Exp $
# $OpenBSD: rc.conf,v 1.18 1998/03/28 00:10:59 deraadt Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q" routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -26,7 +26,7 @@ kerberos_server=NO # kerberos server. run 'info kth-krb' for assistance.
kerberos_slave=NO # kerberos slave server. kerberos_slave=NO # kerberos slave server.
amd=NO amd=NO
ipfilter=NO ipfilter=NO
nat=NO # for "YES" ipfilter must also be "YES"
ipnat=NO # for "YES" ipfilter must also be "YES"
portmap=YES # almost always needed portmap=YES # almost always needed
inetd=YES # almost always needed inetd=YES # almost always needed
lpd=NO # printing daemons lpd=NO # printing daemons
@ -42,6 +42,6 @@ nfsiod_flags="-n 4" # Crank the 4 for a busy NFS client
amd_dir=/tmp_mnt # AMD's mount directory amd_dir=/tmp_mnt # AMD's mount directory
amd_master=/etc/amd/master # AMD 'master' map amd_master=/etc/amd/master # AMD 'master' map
ipfilter_rules=/etc/ipf.rules # Rules for IP packet filtering ipfilter_rules=/etc/ipf.rules # Rules for IP packet filtering
nat_rules=/etc/ipnat.rules # Rules for Network Address Translation
ipnat_rules=/etc/ipnat.rules # Rules for Network Address Translation
ipmon_flags=-s # To disable logging, use ipmon_flags=NO ipmon_flags=-s # To disable logging, use ipmon_flags=NO
syslogd_flags= # add more flags, ie. -u -a /chroot/dev/log syslogd_flags= # add more flags, ie. -u -a /chroot/dev/log

Loading…
Cancel
Save