From 07cd08d705b18bab39838bdf27622b0babccb392 Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 5 May 1997 07:08:31 +0000 Subject: Add inetd_flags and way of passing ipfw a configuration file (if firewall = "somefilename"). Fix typo fixes and URLs which were accidently nuked out of this file (submitted by: soil@quick.net via PR#3501). Submitted by: "Danny J. Zerkel" --- etc/rc.firewall | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'etc/rc.firewall') diff --git a/etc/rc.firewall b/etc/rc.firewall index abc0183..b0e29ba 100644 --- a/etc/rc.firewall +++ b/etc/rc.firewall @@ -1,6 +1,6 @@ ############ # Setup system for firewall service. -# $Id: rc.firewall,v 1.6.2.1 1997/04/26 22:39:34 jkh Exp $ +# $Id: rc.firewall,v 1.11 1997/05/03 11:22:17 jkh Exp $ ############ # @@ -23,6 +23,7 @@ # # O'Reilly & Associates, Inc # ISBN 1-56592-124-0 +# http://www.ora.com/ # # For a more advanced treatment of Internet Security read: # @@ -32,6 +33,7 @@ # # Addison-Wesley # ISBN 0-201-6337-4 +# http://www.awl.com/ # ############ @@ -92,7 +94,7 @@ elif [ "${firewall}" = "client" ]; then /sbin/ipfw add pass udp from any 123 to ${ip} /sbin/ipfw add pass udp from ${ip} to any 123 - # Everyting else is denied as default. + # Everything else is denied as default. elif [ "${firewall}" = "simple" ]; then @@ -149,6 +151,9 @@ elif [ "${firewall}" = "simple" ]; then /sbin/ipfw add pass udp from any 123 to ${oip} /sbin/ipfw add pass udp from ${oip} to any 123 - # Everyting else is denied as default. -fi + # Everything else is denied as default. + +elif [ "${firewall}" != "NONE" -a -r "${firewall}" ]; then + /sbin/ipfw ${firewall} +fi -- cgit v1.1