Date: Fri, 25 Jun 1999 15:06:22 -0400 (EDT) From: Jerry Raynor <jerryr@ComCAT.COM> To: questions@FreeBSD.ORG Subject: rc.firewall Message-ID: <Pine.GSO.4.02A.9906251457220.28767-100000@uw> In-Reply-To: <37731F90.D91B40FD@thedial.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm trying to set a firewall, when I run the ipfw commands from the
command line no problem it works. Now I've created rc.firewall to set
this up but if I were to for example reboot, everything is closed by
default like it doesn't even see the rc.firewall. I run the ipfw
commands at the command line and I'm ok. In the rc.conf file I have
firewall turned on and type set to simple, I'm guessing my
syntax in rc.firewall is wrong? Here it is:
if [ "${firewall}" = "simple" ]; then
# allow access
/sbin/ipfw add 65000 pass all from any to any
# Deny
/sbin/ipfw add 00001 deny all from 209.161.229.0/24 to my-domain.com
/sbin/ipfw add 00002 deny all from 209.161.243.0/24 to my-domain.com
fi
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.02A.9906251457220.28767-100000>
