From owner-freebsd-questions Wed Jun 14 11:23:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.sdca.home.com (ha1.rdc1.sdca.home.com [24.0.3.66]) by hub.freebsd.org (Postfix) with ESMTP id E69D937B785 for ; Wed, 14 Jun 2000 11:23:50 -0700 (PDT) (envelope-from RaymundoVega@home.com) Received: from home.com ([24.5.252.61]) by mail.rdc1.sdca.home.com (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000614182349.NBMQ25048.mail.rdc1.sdca.home.com@home.com>; Wed, 14 Jun 2000 11:23:49 -0700 Message-ID: <3947CDB5.6FF35CE7@home.com> Date: Wed, 14 Jun 2000 11:23:49 -0700 From: "Raymundo M. Vega" X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: CNNet Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routing with Freebsd References: <4.3.2.7.2.20000614105606.00b0ebf0@cnnet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG CNNet wrote: > > Hi could someone help me with a routing problem. I have to network cards in > a freebsd 4 machine this is my rc.conf file: > > # This file now contains just the overrides from /etc/defaults/rc.conf > # please make all changes to this file. > > # -- sysinstall generated deltas -- # > gateway_enable="YES" > network_interfaces="ed0 lo0" > ifconfig_ed0="inet 207.229.6.9 netmask 255.255.255.0" > defaultrouter="207.229.6.9" > hostname="ua3.foo.com" > ifconfig_ed2="inet 192.168.1.45 netmask 255.255.255.0" > network_interfaces="ed2 ed0 lo0" > defaultrouter="207.229.6.9" > hostname="private.foo.com" > router_enable="YES" > > What am I doing wrong, i have a internal network that will point to > 192.168.1.45 as there gateway. I assume that hosts in 192.168.1.x see each other and that you have access from the gate to the Internet. If this is true, then the problem is that hosts in the Internet do not know how to reach network 192.168.1 and what you need is natd (network address translation), there are several postings about the setup and configuration of natd, look in the archives. good luck raymundo > > The gateway to the 207.299.6.9 class is 207.229.6.1 > > Basicall all internal ips will go to this machine and this machine lets > them out on the internet > > Thanks in advance email address is cnnet@cnnet.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message