Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2007 20:00:56 -0200
From:      "Alaor Barroso de Carvalho Neto" <alaorneto@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Connecting networks
Message-ID:  <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com>
In-Reply-To: <20071211212447.GA1562@basement.net>
References:  <2949641c0712110853i6db025d5s71ae18c7e2f14a45@mail.gmail.com> <20071211212447.GA1562@basement.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 2007/12/11, Jonathan Horne freebsd@dfwlp.com:

> out of curiosity, are you pinging from the 4-interfaced-connected BSD
> box, or some other workstation that is trying to use the BSD box as its
> gateway?


>From a workstation that is trying to use BSD box as its gateway and have the
ip of the BSD box as it's default gateway in network settings. My BSD box
can ping to everywhere.

2007/12/11, Erik Norgaard <norgaard@locolomo.org>

> Could you post your configuration, rc.conf, just the entries related to
> network interfaces and routing?
>
> The BSD box should automatically route any packets between imidiately
> connected networks without adding any static routes. Do you have any
> firewalling enabled?
>
> Cheers, Erik


I'm not in my work anymore but I'll try to remember it as it is:

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=""

The rest is just is all the default from the installation.

2007/12/11, Eric Crist <mnslinky@gmail.com>

> Add
>
> gateway_enable="YES" to /etc/rc.conf.
>
> Make sure your other systems use the freebsd box in question as their
> default route.
>
> make sure your firewall, if you have one, is passing the traffic
> between the two networks.
>
> Use pf or some other means to nat outbound traffic.
>
> HTH


I already have this line in my rc.conf.

2007/12/11, Trix Farrar <trix@basement.net>:

> It sounds like your BSD server is configured correctly.  You may,
> however, need to tell the other devices on your different networks how
> to find their way.
>
> Given that you have networks A, B and C that are each connected to
> each other by your BSD server, F, the hosts on network A have to know
> how to find network B and network C.  If the three networks already
> have routers the hosts use as a default gateway, then those routers
> will need to have routes added to find your other networks; the
> network A router needs to have routes to networks B and C that point
> to your BSD server and so on.


How I do that?

Thankz guyz for your attention with me! I'm going to have nightmares with
this trouble.



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