Issues Setting Up IPFW

Mark McNeely m4x_sterling at
Tue Dec 25 05:25:18 PST 2012


I am trying to setup a simple firewall on DragonflyBSD, but I am having issues with it.  When I type:

into my rc.conf, the system will not boot.  The last message I get is something like:

>Configuring syscons.  Blanktime. 

And then nothing else happens.  At first, I thought there was an issue with the rules in my ipfw.conf file.  However, when I comment out the firewall_type line and leave just the firewall_enable="YES" line it still won't boot.

I have also tried loading ipfw at runtime, by typing:
>ipfw enable firewall
>ipfw add 00010 allow all from any to any via lo0

but then I get an error message:
>ipfw: getsockopt(IP_FW_ADD): Protocol not available

So, naturally, I am quite lost.  I have pared down my ipfw.conf to barebones, and still can't seem to get it to work.  I will attach it, and hopefully, someone can point me in the right direction on how to set this up properly.

Needless to say, I am a firewall noob.  But, if anyone can offer some help, I would greatly appreciate it.

Thanks and Merry Christmas,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipfw.conf
Type: application/octet-stream
Size: 551 bytes
Desc: not available
URL: <>

More information about the Users mailing list