From owner-freebsd-questions Mon Dec 3 9:32:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id ABB5C37B417 for ; Mon, 3 Dec 2001 09:32:40 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id fB3HWcO63562; Mon, 3 Dec 2001 11:32:38 -0600 (CST) (envelope-from nick@rogness.net) Date: Mon, 3 Dec 2001 11:32:38 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Eric Long Cc: freebsd-questions@FreeBSD.ORG Subject: Re: WAN routing question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Dec 2001, Eric Long wrote: > I have a WAN routing question. First, the setup is the following: > > (using Savvis for internet access and the private link between our two > offices located in different states) > > > --- > > 192.168.1.0/24 LAN > | > -------------------------------- > | 192.168.1.4 66.100.208.34 | FreeBSD 4.4-STABLE box in MN > -------------------------------- > | | > | `----- INTERNET > | > | > ------------------ > | 192.168.1.1 | Savvis WAN Router in MN > ------------------ > | > WAN > | > ------------------ > | 192.168.2.1 | Savvis WAN Router in CA > ------------------ > | > ------------------ > | 192.168.2.4 | FreeBSD 4.4-STABLE box in CA > ------------------ > | > 192.168.2.0/24 LAN > > > --- > > I want to route internet traffic from the LAN in CA over the WAN link > and through the Internet connection in MN. How should routing be done > so that internet-bound traffic from the LAN in CA gets routed to the > MN office and out ot the Internet? > All machines in the 192.168.2.0 network should have a default gateway of 192.168.2.1 Which I'm assuming you have because you can ping machines in MN. In the MN BSD box, the default gateway should be 66.100.208.34. You should also have the following route: # route add -net 192.168.2.0 192.168.1.1 -netmask 255.255.255.0 And of course in the MN Savvis router (192.168.1.1), set the default gateway to be 192.168.1.4. You should already have a route for 192.168.2.0/24 to go through the CA Savvis Router. Everything else should work. You will need NAT to be running on the MN BSD box though. > I'm to the point where I can ping workstations in CA from MN and vice > versa, but am unclear as to how the routing should be configured so > that Internet-bound traffic from CA gets routed to MN's Internet > connection. > Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message