From owner-freebsd-questions@FreeBSD.ORG Sat Jun 12 11:37:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5C4116A4CE for ; Sat, 12 Jun 2004 11:37:51 +0000 (GMT) Received: from gladiator.trusc.net (gladiator.trusc.net [196.22.225.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6907343D1D for ; Sat, 12 Jun 2004 11:37:51 +0000 (GMT) (envelope-from leon@trusc.net) Received: from [196.25.37.18] (helo=morpheus.trusc.net) by gladiator.trusc.net (Exim 4.24 #0 (FreeBSD 4.7)) protocol: esmtp id 1BZ6oD-000P0M-HJ for ; Sat, 12 Jun 2004 13:36:25 +0200 Received: from [192.168.255.25] (helo=leonlap) by morpheus.trusc.net (Exim 4.34 #0 (FreeBSD 4.7)) protocol: esmtp id 1BZ6nz-000D7X-Id ; Sat, 12 Jun 2004 13:36:16 +0200 From: "Leon Botes" To: "'Thompson, Jimi'" Date: Sat, 12 Jun 2004 13:36:17 +0200 Organization: Trusc Technologies (Pty) Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRPxuqOD/6Op5xAT+CZGVTfdYHPnAABY6KAACkn2xA= In-Reply-To: <4B3F673172B98D449EBCC3BE8316F52403BA1718@exch4.elcsb.net> X-Spam-Score: 0.0 (/) Message-Id: X-Spam-Score: 0.0 (/) cc: freebsd-questions@freebsd.org Subject: RE: Routing question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: leon@trusc.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 11:37:52 -0000 Greed the static route for E is best. But how do you add a route that applies only to connections coming into C or D Route add (if source from net C then use interface A) ?? Adding failover would be an even bigger bonus. -----Original Message----- From: Thompson, Jimi [mailto:JimiT@mail.cox.smu.edu] Sent: 11 June 2004 18:12 To: leon@trusc.net Subject: RE: Routing question Leon, This is possible, but will require you to run static routes so that you can manually manage the connections. You should be able to set the routing metrics so that all your traffic from client D goes to B and if they want email, B will have to have the appropriate records to send them back to E, which is a remarkably BAD idea. Your better bet would be put in a static route with a lower routing metric than the Internet connection (say 2) from D to E for a specific IP/range so that they can get to the mail server without going out to the Internet to do so. Give the Internet connection a routing metric of 3. The same applies for C. This way, for the IP/range that you specify for the mail server(s), your email traffic from these guys will go straight to the mail server without traversing the Internet first. The next part depends on how you want to manage the Internet connections. Do you want Customer C to use D's Internet connection if Customer C's connection fails and vice versa? If so then you put a route in your routing table and give that a really high metric (like 90) from C to B and the same for D to A. Give their "normal" connection a really low metric (like 3) and their traffic will go out the "preferred" connection unless that connection fails or becomes really congested. If you don't want them to be able to use each other's connections EVER, just don't add a route for it at all. HTH, Jimi -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Leon Botes Sent: Friday, June 11, 2004 10:15 AM To: freebsd-questions@freebsd.org Subject: Routing question I have a box with 5 nics. Cal them A,B,C,D,E. A & B are different internet connections. E is a connection to a mail server on a public /29 C & D are connections for 2 differnet client networks. Is it possible to have all traffic coming in via C sent to a default gateway on A's network and all traffic coming in via D sent to a default gateway on B's network. And secondly will both client networks be able to see the E/29? If so how? Thanks Leon _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"