From owner-freebsd-questions@FreeBSD.ORG Sat Dec 20 11:01:22 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 665661065670 for ; Sat, 20 Dec 2008 11:01:22 +0000 (UTC) (envelope-from 240olofsson@telia.com) Received: from av12-1-sn2.hy.skanova.net (av12-1-sn2.hy.skanova.net [81.228.8.185]) by mx1.freebsd.org (Postfix) with ESMTP id 292A88FC17 for ; Sat, 20 Dec 2008 11:01:22 +0000 (UTC) (envelope-from 240olofsson@telia.com) Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id 8208237FB6; Sat, 20 Dec 2008 11:28:51 +0100 (CET) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id 56B4B38010; Sat, 20 Dec 2008 11:28:51 +0100 (CET) Received: from [192.168.1.31] (90-227-65-237-no41.tbcn.telia.com [90.227.65.237]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 1095737E48; Sat, 20 Dec 2008 11:28:51 +0100 (CET) Message-ID: <494CC8DD.5080609@telia.com> Date: Sat, 20 Dec 2008 11:28:45 +0100 From: Roger Olofsson <240olofsson@telia.com> User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Richard Yang References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: general question about setting up gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: raggen@raggens.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 11:01:22 -0000 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