general question about setting up gateway

Roger Olofsson 240olofsson at
Sat Dec 20 11:01:22 UTC 2008

Richard Yang skrev:
> hi,
> i am trying to use freebsd as my home network gateway to the internet.
> any good reference i should know besides what's in the handbook?
> thanks
> rich
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"
> ------------------------------------------------------------------------
> No virus found in this incoming message.
> Checked by AVG - 
> Version: 8.0.176 / Virus Database: 270.9.19/1857 - Release Date: 2008-12-19 10:09

Hello Richard,

The first step is really easy - assuming you have a FreeBSD with two 
nics in it - edit /etc/rc.conf and comment out the line that starts with 
'defaultrouter=' and then add a line saying 'gateway_enable="YES".

The second step is a bit more complicated - you will have to decide on a 
firewall and a NAT mechanism. Depending on your choice here you will 
have to do various things to implement it.

The handbook is a good start when chosing firewall  - .

There are alot of other additional information spread out on the 
(w)internet - here's a couple:


ipfilter and pf resources


I hope this will help you get started.


More information about the freebsd-questions mailing list