From: Andrea Rossato <mailing_list@istitutocolli.org>
To: netfilter@lists.netfilter.org
Subject: Re: how to forward packets to another gateway, if i'm one
Date: Tue, 17 Dec 2002 17:07:09 +0100 [thread overview]
Message-ID: <3DFF4BAD.6080306@istitutocolli.org> (raw)
In-Reply-To: <ISPFE7vXn10A5fpk965000657df@mail.takas.lt>
Saulius Menkevicius wrote:
> Now, I want to make some traffic that comes from some client and
> that should go through gateway 10.0.0.1 to be forwarded to 10.0.0.2
> (without any changes). The need is to make the forwarding transparent
> to both 10.0.0.2 and the client.
in 10.0.0.1
ip rule add from YOUR_CLIENT [to DESTINATION] table fbsd.out
ip route add default via 10.0.0.2 dev $DEV table fbsd.out
I think this should do the job (for more information http://lartc.org/)
you create a routing table (fbsd.out) that will use 10.0.0.2 as gateaway
for packets comming from your client.
I did not test this config, since I'm marking packets in the FORWARD
chain of the mangle table and use
ip rule add fwmark to route them.
hope this helps.
andrea
prev parent reply other threads:[~2002-12-17 16:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-06 17:28 how to forward packets to another gateway, if i'm one Saulius Menkevicius
2002-12-17 14:00 ` Marcello Scacchetti
2002-12-17 15:16 ` Ben Russo
2002-12-17 16:07 ` Andrea Rossato [this message]
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=3DFF4BAD.6080306@istitutocolli.org \
--to=mailing_list@istitutocolli.org \
--cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.