From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Thomas Rosenstein <thomas.rosenstein@creamfinance.com>
Cc: Arturo Borrero Gonzalez <arturo@netfilter.org>,
Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: Change source or destination for packets arriving locally (for Direct Server Return)
Date: Wed, 13 Sep 2017 12:10:05 +0200 [thread overview]
Message-ID: <20170913101005.GA2661@salvia> (raw)
In-Reply-To: <E2AE9F76-4DD3-4DB2-8AB9-BA179BB1A046@creamfinance.com>
On Wed, Sep 13, 2017 at 11:36:56AM +0200, Thomas Rosenstein wrote:
> Hi,
>
> I have to check it out, but in the mean time I already wrote my small
> iptables plugin to rewrite the dst-addr.
>
> let's call it pre-alpha:
>
> https://github.com/creamfinance/dstwrite
Did you try packet field mangling?
https://wiki.nftables.org/wiki-nftables/index.php/Mangle_packet_header_fields
You need a Linux kernel >= 4.10.
Syntax is simple, eg.
ip daddr set 1.2.3.4
next prev parent reply other threads:[~2017-09-13 10:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-12 6:00 Change source or destination for packets arriving locally (for Direct Server Return) Thomas Rosenstein
2017-09-13 9:34 ` Arturo Borrero Gonzalez
2017-09-13 9:36 ` Thomas Rosenstein
2017-09-13 10:10 ` Pablo Neira Ayuso [this message]
2017-09-13 13:23 ` Thomas Rosenstein
2017-09-13 13:34 ` Arturo Borrero Gonzalez
2017-09-13 14:14 ` Thomas Rosenstein
2017-09-13 14:32 ` Arturo Borrero Gonzalez
2017-09-13 14:36 ` Thomas Rosenstein
2017-09-13 14:40 ` Thomas Rosenstein
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=20170913101005.GA2661@salvia \
--to=pablo@netfilter.org \
--cc=arturo@netfilter.org \
--cc=netfilter@vger.kernel.org \
--cc=thomas.rosenstein@creamfinance.com \
/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