Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2005 18:24:54 +0000
From:      Chris Hodgins <chodgins@cis.strath.ac.uk>
To:        SigmaX <scottclansman@cwazy.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IPFW config
Message-ID:  <4218D5F6.3070803@cis.strath.ac.uk>
In-Reply-To: <421A21F4.1050509@cwazy.co.uk>
References:  <421A21F4.1050509@cwazy.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
SigmaX wrote:
> Heya;
> I have a FreeBSD 5.3 server that I access over SSH.  I followed the 
> handbook guide to loading the ipfw kernel module to setup a firewall.  I 
> made the mistake the other day of loading the firewall, which defaults 
> to block all, and rebooting, so I couldn't get into the system again 
> (Had to drive in and fix it :-P).  Anyway, what I need to know is how to 
> edit the ruleset manually BEFORE enabling the firewall.  I need to set 
> the rules, then load the kernel module, not vise versa.  I've never 
> dealt with ipfw without webmin, so I need some explicit answers :-).
> What I need to do its this:
> 
> Set IPFW to allow traffic on ports 80, 10000, and 23 (That's the default 
> SSH port, right?)
> Then start IPFW with the kernel module (I know how to do this)
> 
>    Thanx,
>         SigmaX
> 

You can put your rules in /etc/rc.firewall.  This is executed at startup.

See rc(8) and rc.conf(5).

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4218D5F6.3070803>