From owner-freebsd-hackers Thu Jan 22 05:20:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA11640 for hackers-outgoing; Thu, 22 Jan 1998 05:20:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from schubert.promo.de (schubert.Promo.DE [194.45.188.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA11531 for ; Thu, 22 Jan 1998 05:19:58 -0800 (PST) (envelope-from stefan@promo.de) Received: from stefan.promo.de (stefan.Promo.DE [194.45.188.81]) by schubert.promo.de (8.8.8/8.8.8) with SMTP id OAA04201; Thu, 22 Jan 1998 14:16:48 +0100 (MET) Date: Thu, 22 Jan 1998 14:18:26 +0100 From: "Stefan Bethke" To: "John M Vinopal" , hackers@FreeBSD.ORG Subject: Re: routing by protocol Message-ID: <389863.3094467506@stefan.promo.de> X-Mailer: Mulberry Demo (MacOS) [1.4.0a1, s/n Evaluation] X-Licensed-To: Unlicensed - for evaluation only MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk --On Don, 22. Jan 1998 3:01 Uhr -0800 "John M Vinopal" wrote: > What I'd like to do is redirect all outgoing requests to WWW servers > to go out the isdn line. Ie: rdr 0.0.0.0:80 -> tun1. I've thought > of a number of ways to do this; all are horrible hacks. > > * have an external proxy server with a static route through the proper > interface. Actually, this what I use at home. > * dedicate a seperate machine as a proxy server internally with a default > route out. This has the added advantage of letting you fetch any http or ftp url through the ISDN line, not only port 80. You could also bind your squid's outgoing ports to tun1, so that outgoing traffic will take the default route (through the leased line), but incoming will go to tun1's address, and thus will go through the ISDN line. Because you'll probably will receive more than you send, and http requests are usually quite small, this should work quite nicely. (As long as you are not afraid of asymmetric routes :-) At least, this doesn't require any hacks. Stefan -- Stefan Bethke Promo Datentechnik | Tel. +49-40-851744-18 + Systemberatung GmbH | Fax. +49-40-851744-44 Eduardstrasse 46-48 | e-mail: stefan@Promo.DE D-20257 Hamburg | http://www.Promo.DE/