#!/sbin/sh
#*******************************************************************************
#
#	Name:			ip_forwarding
#	SCCS Id:		@(#)ip_forwarding	1.2	07/26/04
#
#	Description:	This file is a start/stop script for IP forwarding.
#
#
#			Copyright © 2000-2004 by Rich Teer.  All rights reserved.
#
#*******************************************************************************


case "$1" in
	'start')
		echo "Starting IP forwarding...  \c"
		ndd -set /dev/tcp ip_forwarding 1
		echo "Done."
		;;

	'stop')
		echo "Stopping IP forwarding...  \c"
		ndd -set /dev/tcp ip_forwarding 0
		echo "Done."
		;;

	*)
		echo "Usage: $0 { start | stop }"
		;;
esac
exit 0
