diff options
author | jkh <jkh@FreeBSD.org> | 1997-05-05 07:08:31 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-05-05 07:08:31 +0000 |
commit | 07cd08d705b18bab39838bdf27622b0babccb392 (patch) | |
tree | 3b4807f62ffee747e080098650b573215e70c53d /etc/rc.firewall | |
parent | a66697afa3aacc2850d34cb86212dc858cb18b83 (diff) | |
download | FreeBSD-src-07cd08d705b18bab39838bdf27622b0babccb392.zip FreeBSD-src-07cd08d705b18bab39838bdf27622b0babccb392.tar.gz |
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" <dzerkel@phofarm.com>
Diffstat (limited to 'etc/rc.firewall')
-rw-r--r-- | etc/rc.firewall | 13 |
1 files changed, 9 insertions, 4 deletions
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 |