From owner-freebsd-isp@FreeBSD.ORG Wed Jan 14 14:06:41 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19A6016A4CE; Wed, 14 Jan 2004 14:06:41 -0800 (PST) Received: from correo.tid.es (tidos.tid.es [193.145.240.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7729E43D45; Wed, 14 Jan 2004 14:06:16 -0800 (PST) (envelope-from igf@tid.es) Received: from conversion-daemon.tid.hi.inet by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) id <0HRI004012G1RD@tid.hi.inet>; Wed, 14 Jan 2004 23:06:15 +0100 (MET) Received: from tid.es (localhost [127.0.0.1]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HRI00HE42QEVK@tid.hi.inet>; Wed, 14 Jan 2004 23:06:14 +0100 (MET) Received: from [213.9.244.25] by tid.hi.inet (mshttpd); Wed, 14 Jan 2004 23:06:14 +0100 Date: Wed, 14 Jan 2004 23:06:14 +0100 From: ISAAC GELADO FERNANDEZ To: "Crist J. Clark" Message-id: <3354de336433.3364333354de@tid.es> MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.18 (built Jul 28 2003) Content-type: text/plain; charset=iso-8859-1 Content-language: es Content-transfer-encoding: QUOTED-PRINTABLE Content-disposition: inline X-Accept-Language: es Priority: normal cc: freebsd-isp@freebsd.org cc: freebsd-hackers@freebsd.org cc: nbari@unixmexico.com Subject: Re: Routing Networks X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 22:06:41 -0000 ----- Mensaje original ----- De: "Crist J. Clark" Fecha: Mi=E9rcoles, Enero 14, 2004 10:06 pm Asunto: Re: Routing Networks > On Wed, Jan 14, 2004 at 08:43:37AM +0100, Isaac Gelado wrote: > > Nicol?s de Bari Embr?z G. R. escribi?: > > >Hi all, I need some help routing or making Nat on a LAN. > > > > > >I have something like this: > > > > > > > > > I N T E R N E T > > > ----------------- > > > ^ ^ > > > | | > > >fxp0 public IP public IP > > > | | > > > FreeBSD server LINUX server > > > | | > > >dc0 192.168.10.1 | > > >dc1 192.168.1.1 ^ 192.168.1.3 > > > ^ | ^ > > > | | | > > > | | | > > > ---------------- > > > | Switch/Hub | > > > ---------------- > > > | | > > > ------------------ ----------------- > > > | LAN A | | LAN B | > > > | 192.168.10.2-254 | | 192.168.1.4-100 | > > > ------------------ ----------------- > > > > > > > > >What i want to do is that a computer on LAN A with an IP on the=20 > range of=20 > > >192.168.10.2-254 can ping, telnet, ssh, etc. to a computer on=20 > LAN B > > >"192.168.1.X". > > > > > >How can i solve this problem, is this is a route or Nat problem ? > >=20 > > I think it is a route problem. You must add next static route: > >=20 > > - On the linux machine route all incoming packets with dest=20 > addr=20 > > 192.168.10.x to 192.168.1.1 > >=20 > > It shouldn't be necesary a static route on the freebsd machine=20 > since it=20 > > has a network device with an addr of LAN B. >=20 > This is correct. Things can get from LAN A to LAN B just fine in this > picture. The problem is that machines on LAN B won't be able to get > back to LAN A (i.e. your pings go from A to B, but the pongs never get > back from B to A). You'll have to touch that Linux box or touch the > routes on everything on LAN B to route 192.168.10.0/24 through > 192.168.1.1. >=20 > > Of course you must run a=20 > > route daemon in both machines (I supouse it's running now since=20 > they are=20 > > working as gateways) and the previous route must be added to the=20 > route=20 > > daemon running on the linux machine. >=20 > OK now here is the problem. Why does he need a routing daemon? I saw > no mention of RIP, OSPF, or any other dynamic routing protocol. Looks > like it's all static routes to me. Sorry, I was mistaken. You only need that FreeBSD machines redirects packets from one network interface to the other as Crist says. Regards > --=20 > Crist J. Clark | =20 cjclark@alum.mit.edu > | =20 cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | =20 cjc@freebsd.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org"