From owner-freebsd-net@FreeBSD.ORG Fri Nov 7 16:38:33 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E341316A4CE for ; Fri, 7 Nov 2003 16:38:33 -0800 (PST) Received: from ints.mail.pike.ru (ints.mail.pike.ru [195.9.45.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4288743FF2 for ; Fri, 7 Nov 2003 16:38:32 -0800 (PST) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 50240 invoked from network); 8 Nov 2003 00:52:09 -0000 Received: from babolo.ru (HELO cicuta.babolo.ru) (194.58.226.160) by ints.mail.pike.ru with SMTP; 8 Nov 2003 00:52:09 -0000 Received: (nullmailer pid 89844 invoked by uid 136); Sat, 08 Nov 2003 00:40:22 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <022501c3a491$e46bf780$6e2a6ba5@lc.ca.gov> To: Drew Tomlinson Date: Sat, 8 Nov 2003 03:40:22 +0300 (MSK) From: "."@babolo.ru X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <1068252022.523087.89843.nullmailer@cicuta.babolo.ru> cc: freebsd-net@freebsd.org Subject: Re: Routing With Two ISPs? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2003 00:38:34 -0000 [ Charset windows-1252 unsupported, converting... ] > I have a 4.8 box serving as a gateway with two connections to the > Internet. Is there some way to set the box up so that packets are > routed out through the same interface from which they arrived? For > example, if a connection is initiated on port 80 from a packet arriving > on one interface, is there a way to make the outgoing packets from my > web server use that same interface as a gateway instead of the default > interface? > > Any suggestions appreciated. It's easy IMHO Each external iface with it's own natd, each forwards 80 port incoming to two http servers with different IP or port. outgoing traffic can be forwarded to appropriate natd via ipfw rules depending on src IP or port