From: Patrick McHardy <kaber@trash.net>
To: Amin Azez <azez@ufomechanic.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] iptables gateway match
Date: Fri, 01 Jun 2007 18:52:00 +0200 [thread overview]
Message-ID: <46604EB0.9080302@trash.net> (raw)
In-Reply-To: <46604D8B.7030507@ufomechanic.net>
Amin Azez wrote:
> This adds a gateway match to iptables that lets you match against the
> routed ipv4 gateway, it's very useful for SNAT if you want to avoid
> replicating your routing in your SNAT table.
>
> e.g.
>
> iptables -t nat -A POSTROUTING -m gateway --nexthop 172.16.1.1 -j SNAT
> --to-address 172.16.1.5
> iptables -t nat -A POSTROUTING -m gateway --nexthop 192.168.1.1 -j SNAT
> --to-address 192.168.1.25
I'm wondering whether we really need a new match for this. It should
be possible to do the same using routing realms and the realm match.
next prev parent reply other threads:[~2007-06-01 16:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 16:47 [PATCH] iptables gateway match Amin Azez
2007-06-01 16:52 ` Patrick McHardy [this message]
2007-06-01 19:36 ` Amin Azez
2007-06-03 17:10 ` Patrick McHardy
2007-06-02 11:38 ` Henrik Nordstrom
2007-06-02 16:56 ` [PATCH] xt_gateway match Jan Engelhardt
2007-06-02 16:56 ` [PATCH] xt_gateway match (kernel) Jan Engelhardt
2007-06-02 17:08 ` [PATCH] xt_gateway match (kernel,2) Jan Engelhardt
2007-06-02 16:57 ` [PATCH] xt_gateway match (iptables) Jan Engelhardt
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=46604EB0.9080302@trash.net \
--to=kaber@trash.net \
--cc=azez@ufomechanic.net \
--cc=netfilter-devel@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.