From owner-freebsd-questions Fri Jun 25 12:10:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from uz.ComCAT.COM (uz.ComCAT.COM [204.170.64.8]) by hub.freebsd.org (Postfix) with ESMTP id 84FF8150D2 for ; Fri, 25 Jun 1999 12:10:12 -0700 (PDT) (envelope-from jerryr@ComCAT.COM) Received: from uw.ComCAT.COM (uw [204.170.64.249]) by uz.ComCAT.COM (8.8.8/8.8.8/sol2/mh/19980701) with ESMTP; id PAA16104; Fri, 25 Jun 1999 15:06:31 -0400 (EDT) Received: from localhost by uw.ComCAT.COM (8.9.1a/8.9.1/sol2/clnt/19981012) with SMTP id PAA29553 for ; Fri, 25 Jun 1999 15:06:23 -0400 (EDT) X-Authentication-Warning: uw.ComCAT.COM: jerryr owned process doing -bs Date: Fri, 25 Jun 1999 15:06:22 -0400 (EDT) From: Jerry Raynor X-Sender: jerryr@uw To: questions@FreeBSD.ORG Subject: rc.firewall In-Reply-To: <37731F90.D91B40FD@thedial.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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