BlueYonder Firewall for FreeBSD
Richard Caley, 8th April 2001

Just some notes on how I set up my firewall machine for BY in case it's of use as a starting place for someone. May be of use to other *BSD users and, who knows, to non BY people too.

No warranty, no promises, no pack drill. If your machine turns into a pool of grey goo or if you are invaded by script kiddies from the planet acne, it's your problem not mine.

Please email me with comments, corrections, glaring security holes etc. so we can try and put together a stable resource.

Just for context, my firewall machine is an ancient 486 laptop with two PC Card ethernet interfaces. I was running FBSD 4.2-stable when I set it up, currently 4.3-beta.


Tell the machine what to do: /etc/rc.config

You need to turn some things on in /etc/rc.config.Of course details will vary, specifically the names of your network cards.


Tell natd what to redirect: /etc/natd.conf

You will need to set up an /etc/nat.conf file. Leave it empty if you don't have anything special to redirect. Here is the line if you want to redirect web requests to an internal server.


Tell ipfw what to allow in: /etc/rc.firewall.local

Ipfw rules are quite obscure. I started with the rules from Marc Silver's PPP firewall tutorial and extended it incrementally. I make even less guarantee about this bit than about the rest. Seems to work. Please feel free to let me know about problems and holes in it.

Notes:

  • The IGMP rule is BY cable modem specific.
  • This allows only passive mode ftp from inside.

For a more sophisticated rule set see my IPFW page.


Other Resorces

See Also:


Richard Caley / BlueYonder Firewall / 8th April 2001