Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Masquerading as a certain IP
Date: Sat, 07 Apr 2001 01:32:31 +0000	[thread overview]
Message-ID: <marc-lartc-98660720630716@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98643418406475@msgid-missing>

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

<repeat>

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/

  parent reply	other threads:[~2001-04-07  1:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-05  1:41 [LARTC] Masquerading as a certain IP Joel
2001-04-05  8:27 ` Deepak singhal
2001-04-05  8:57 ` Guy Van Den Bergh
2001-04-05 14:23 ` worm
2001-04-07  1:32 ` Mike Fedyk [this message]
2001-04-07  5:37 ` Christian Worm Mortensen
2001-04-07  8:44 ` bill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98660720630716@msgid-missing \
    --to=mfedyk@matchmail.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox