From owner-freebsd-questions@FreeBSD.ORG Tue Jul 20 19:57:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A05C1065672 for ; Tue, 20 Jul 2010 19:57:56 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id D45758FC14 for ; Tue, 20 Jul 2010 19:57:55 +0000 (UTC) Received: from [10.165.72.180] (unknown [89.204.137.180]) by mail.locolomo.org (Postfix) with ESMTPSA id 4E5311C0871; Tue, 20 Jul 2010 21:57:53 +0200 (CEST) References: In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8A306) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8A306) From: =?utf-8?Q?Erik_N=C3=B8rgaard?= Date: Tue, 20 Jul 2010 21:56:32 +0200 To: DadAN Cc: "freebsd-questions@freebsd.org" Subject: Re: Wifi AP behind FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 19:57:56 -0000 On 20/07/2010, at 21.09, DadAN wrote: > Hello, > I am planning to change my network a little, > I need to put WiFi AP (Dlink Di-524) behind FreeBSD box, > there are 2 nic in this box - one should be for internet (xl0) > and another should use xl1 nic for WiFi AP. >=20 > I need to know how to setup routing in FreeBSD box, > could someone help? You need to enable routing in the kernel, I've forgotten the kernel variable= but do sysctl -a | grep rout Enable routing setting the variable to 1.=20 Since you have a private network connecting to the Internet you need to conf= igure nat. There are different solutions, I prefer packet filter.=20 > And also when someone connect via WiFi, I want to get connected to interne= t. > Now I use 192.168.0.0/24 adresses from WiFi AP dhcp. > FreeBSD 8.0 >=20 That's ok just configure the internal interface in that range. It should be p= ossible to configure the AP so it won't assign ti ip of your freebsd box.=20= You need to configure the AP such that the clients get default gateway set t= o the ip on the internal interface of your freebsd box.=20 BR Erik.=20 > thanks & regards for any advice > DadAN > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g"