Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 1999 09:43:50 +0100
From:      Cillian Sharkey <cillian@baker.ie>
To:        Conrad Sabatier <conrads@home.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Sourcing local file from /etc/rc.firewall not working
Message-ID:  <37C25B46.B265AB4D@baker.ie>
References:  <XFMail.990823214457.conrads@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> To suck in my own local ipfw rules, I added the following lines at
> the end of /etc/rc.firewall:
> 
> if [ -f /etc/rc.firewall.local ]; then
>         . /etc/rc.firewall.local
> fi
> 
> The file /etc/rc.firewall.local consists simply of a series of lines
> in the form of:
> 
> /sbin/ipfw add deny log all from some-ip:255.255.255.255 to any
> 
> What's puzzling is that these lines are not being executed at boot
> time, even though they work if I do ". /etc/rc.firewall" from the
> command line.

take a look at /etc/rc.conf (and /etc/defaults/rc.conf)
you can specify a file containing firewall rules to load in

the file contains rules like so :
add deny log all from some-ip:255.255.255.255 to any
etc.

Cillian


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?37C25B46.B265AB4D>