From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 22:01:06 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 2BC4E16A418 for ; Tue, 11 Dec 2007 22:01:06 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 24B2913C4DB for ; Tue, 11 Dec 2007 22:01:00 +0000 (UTC) (envelope-from alaorneto@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2363244rvb for ; Tue, 11 Dec 2007 14:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=5MfkQ5pVX9pV5ntPnT7fnx4IdhtIM7w3LfVkggjJhPA=; b=WwvUggcGvf1V8+eJudIHqd1wUqnJ4cp7quGQEwxM7f1quEPLSi7a96ZnvAcr0FClP/5/w3G3x/VyxfzMcU4rrE2EGrqOLr2O7BknV/VkVUDFmXRulhIyI/sSjPeoQGKWZKav82/Pjc49Y62UJVrzdp4DLazRpAkg4DiWWV0pyuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jwLiZ+/wz41d7we35I9apZwe+GBWElVUZm8P5i27B2BtFU5jYFayqwL6nIFI+t9YfAUbJVCtZ8m2Agfl39KABby+V7KsumpQe5o8xbJb9Avndu06Dtk6y67W0WBTzpkm6O0K88Ky9fy3YlLltevbOvMYe+XmEzihGhdD9Mc+9HA= Received: by 10.141.205.10 with SMTP id h10mr529352rvq.1197410456590; Tue, 11 Dec 2007 14:00:56 -0800 (PST) Received: by 10.141.37.3 with HTTP; Tue, 11 Dec 2007 14:00:56 -0800 (PST) Message-ID: <2949641c0712111400y70361e32nb46fdbda02c4e8@mail.gmail.com> Date: Tue, 11 Dec 2007 20:00:56 -0200 From: "Alaor Barroso de Carvalho Neto" To: freebsd-questions@freebsd.org In-Reply-To: <20071211212447.GA1562@basement.net> MIME-Version: 1.0 References: <2949641c0712110853i6db025d5s71ae18c7e2f14a45@mail.gmail.com> <20071211212447.GA1562@basement.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:01:06 -0000 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 > 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 > 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 : > 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.