From 5ef834d28d2c53b151bccafa1f97157af82d65b9 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Wed, 23 Aug 1995 07:12:16 +0000 Subject: [PATCH] Add a "gateway" flag so that user can set up a gateway machine automatically from sysinstall. --- etc/netstart | 7 ++++++- etc/sysconfig | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/etc/netstart b/etc/netstart index eccc7ece136e..6ac2ac0ab604 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: netstart,v 1.32 1995/05/17 04:46:56 rgrimes Exp $ +# $Id: netstart,v 1.33 1995/06/25 09:35:56 asami Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -54,6 +54,11 @@ for i in ${static_routes}; do route add ${route_args} done +if [ "x$gateway" != "xNO ]; then + echo 'configuring host as a gateway.' + sysctl -w net.inet.ip.forwarding=1 +fi + if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then echo -n starting routing daemons: diff --git a/etc/sysconfig b/etc/sysconfig index cc39f5e679a5..c9724674d4bf 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -4,7 +4,7 @@ # This is sysconfig - a file full of useful variables that you can set # to change the default startup behavior of your system. # -# $Id: sysconfig,v 1.18 1995/07/20 16:26:26 wollman Exp $ +# $Id: sysconfig,v 1.19 1995/08/10 16:25:57 ache Exp $ ######################### Start Of Syscons Section ####################### @@ -158,6 +158,9 @@ savecore=NO # Set to YES if you want to run Kerberos authentication kerberos_server=NO +# If you want this host to be a gateway, set to YES. +gateway=NO + # Set to YES if you want to run gated gated=NO