Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 23:19:18 +0100
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Alaor Barroso de Carvalho Neto <alaorneto@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Connecting networks
Message-ID:  <475F0CE6.9070008@locolomo.org>
In-Reply-To: <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com>
References:  <2949641c0712110853i6db025d5s71ae18c7e2f14a45@mail.gmail.com>	<20071211212447.GA1562@basement.net> <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?475F0CE6.9070008>