From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Fedyk Date: Sat, 07 Apr 2001 01:32:31 +0000 Subject: Re: [LARTC] Masquerading as a certain IP Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Thu, Apr 05, 2001 at 02:23:12PM -0000, worm@dkik.dk wrote: > Hi, > > > I was just wondering if there's any way to specify what something is > > masqueraded AS. > > Yes, it is described in the ip-cref documentation which is distributed with the > ip program. As far as I remember it is done by setting up special NAT rules > which NATs to the local address that you want to use for masqgrading. Ahh, but this is not MASQ, which deals with multiple MASQed hosts on the local lan. You would have to be more specific on how you want to distribute the traffic. Here's an example: src lan dest port 80 mark 1 on incoming chain mark 1 use table 5 ip ro add default via gw src ip table 5 this would put outgoing traffic on the ip you specify. Note that this won't work on traffic generated by the gateway computer. Also, this is untested, YMMV. Mike _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/