From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 22:19:19 2007 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 96A7B16A417 for ; Tue, 11 Dec 2007 22:19:19 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from bifrost.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 5A87513C458 for ; Tue, 11 Dec 2007 22:19:19 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from sleipner.local (unknown [192.168.0.37]) by bifrost.locolomo.org (Postfix) with ESMTP id 1137539824; Tue, 11 Dec 2007 23:19:18 +0100 (CET) Message-ID: <475F0CE6.9070008@locolomo.org> Date: Tue, 11 Dec 2007 23:19:18 +0100 From: Erik Norgaard User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Alaor Barroso de Carvalho Neto References: <2949641c0712110853i6db025d5s71ae18c7e2f14a45@mail.gmail.com> <20071211212447.GA1562@basement.net> <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com> In-Reply-To: <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Connecting networks 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, 11 Dec 2007 22:19:19 -0000 Alaor Barroso de Carvalho Neto wrote: > defaultroute="192.168.1.80" > hostname="tiger.administrativo.unedmacae.cefetcampos.br" > gateway_enable="YES" > ifconfig_em0="inet XXX.XXX.XXX.XXX netmask 255.255.255.227" > ifconfig_xl0="inet 192.168.1.244 netmask 255.255.255.0" > ifconfig_xl1="inet 192.168.2.90 netmask 255.255.255.0" > ifconfig_xl2="inet 10.10.0.50 netmask 255.255.0.0" > pf_enable="YES" > pf_rules="/etc/pf.conf" > pf_flags="" > pflog_enable="YES" > pflog_logfile="/var/log/pflog" > pflog_flags="" > Thankz guyz for your attention with me! I'm going to have nightmares with > this trouble. Summing up, your local networks should be able to communicate accross the BSD box once you have gateway_enable="YES", you do not need NAT for that to work. If it doesn't work, then your firewall may be blocking. For access to the Internet from any of the local networks you need to configure NAT. If you need help with that you need to post your pf ruleset. Everything else seems correct. Cheers, Erik -- Erik Nørgaard Ph: +34.666334818 http://www.locolomo.org