Date: Sat, 20 Dec 2008 11:28:45 +0100 From: Roger Olofsson <240olofsson@telia.com> To: Richard Yang <kusanagiyang@gmail.com> Cc: questions@freebsd.org Subject: Re: general question about setting up gateway Message-ID: <494CC8DD.5080609@telia.com> In-Reply-To: <abd417bf0812192121g3447b17csef5ee9363b8df4e2@mail.gmail.com> References: <abd417bf0812192121g3447b17csef5ee9363b8df4e2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > 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 - http://www.freebsd.org/doc/en/books/handbook/firewalls.html . There are alot of other additional information spread out on the (w)internet - here's a couple: ipfilter http://freebsd.peon.net/tutorials/21/ ipfilter and pf resources http://www.obfuscation.org/ipf/ pf http://web.irtnog.org/howtos-orig/freebsd-firewall I hope this will help you get started. Greetings /Roger
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?494CC8DD.5080609>