See chapter 31.2.4 of the FreeBSD Handbook: Building a Router for setting up your FreeBSD machine as a basic router.
For a firewall and possibly NAT you'll need to use PF, the FreeBSD handbook has a basic section on that too:
http://www.freebsd.org/doc/en_US.ISO...ewalls-pf.html
Also look at the OpenBSD guide for PF which is more detailed about PF itself:
http://cvs.openbsd.org/faq/pf/index.html
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
|