From owner-freebsd-net@FreeBSD.ORG Sat Nov 8 17:51:36 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 AA5C516A4D0 for ; Sat, 8 Nov 2003 17:51:36 -0800 (PST) Received: from ints.mail.pike.ru (ints.mail.pike.ru [195.9.45.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50FD543FAF for ; Sat, 8 Nov 2003 17:51:34 -0800 (PST) (envelope-from babolo@cicuta.babolo.ru) Received: (qmail 89773 invoked from network); 9 Nov 2003 02:05:16 -0000 Received: from babolo.ru (HELO cicuta.babolo.ru) (194.58.226.160) by ints.mail.pike.ru with SMTP; 9 Nov 2003 02:05:16 -0000 Received: (nullmailer pid 98774 invoked by uid 136); Sun, 09 Nov 2003 01:53:28 -0000 X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <1068252022.523087.89843.nullmailer@cicuta.babolo.ru> To: "."@babolo.ru Date: Sun, 9 Nov 2003 04:53:27 +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: <1068342808.056984.98773.nullmailer@cicuta.babolo.ru> cc: Drew Tomlinson 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: Sun, 09 Nov 2003 01:51:36 -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 both servers share the same content. Sorry, my English is bad