From owner-freebsd-questions Mon Dec 3 9:46:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hemi.metrotv.com (hemi.metrotv.com [66.100.208.35]) by hub.freebsd.org (Postfix) with SMTP id 7A65A37B436 for ; Mon, 3 Dec 2001 09:46:03 -0800 (PST) Received: (qmail 40079 invoked by uid 1009); 3 Dec 2001 17:48:31 -0000 Received: from powerstroke.metrotv.com (HELO ?192.168.1.43?) (66.100.208.34) by hemi.metrotv.com with SMTP; 3 Dec 2001 17:48:31 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Mon, 03 Dec 2001 11:46:57 -0600 Subject: Re: WAN routing question From: Eric Long To: Nick Rogness Cc: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit 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 12/3/01 11:32 AM, Nick Rogness at nick@rogness.net wrote: > 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. Yes, this is how things are configured. > In the MN BSD box, the default gateway should be 66.100.208.34. Actually, it's 66.100.208.33, but I forgot to include this in my original diagram, my apologies. 66.100.208.33 is also a Savvis-supplied router (the same physical box as the WAN router, just a different NIC). > You should also have the following route: > > # route add -net 192.168.2.0 192.168.1.1 -netmask 255.255.255.0 Yep, have that, too. > 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. This may be where the problem lies. My traceroutes from the CA LAN to any public IP appear to stop at the MN Savvis router. Unfortunately I do not have access to these routers so I will have to contact Savvis about it. > Everything else should work. You will need NAT to be running on > the MN BSD box though. Yep, running NAT as well. -Eric > > >> 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message