From: "Lars Noodén" <lars.nooden@gmx.com>
To: Linux Netfilter Users List <netfilter@vger.kernel.org>
Subject: Re: snat with dynamic ip address
Date: Thu, 29 Feb 2024 12:29:29 +0200 [thread overview]
Message-ID: <876fa728-85e6-4793-a66b-15bea255c659@gmx.com> (raw)
In-Reply-To: <d819f6e1-6c09-41f1-aac4-542a39f45c75@at.encryp.ch>
On 2/29/24 12:19, seentr@at.encryp.ch wrote:
> Have you tried masquerade? Seems like it is what you are looking for.
Thanks. Masquerade was it.
/Lars
table ip nat {
chain postrouting {
type nat hook postrouting priority srcnat; policy accept;
ip saddr 172.16.3.0/24 oifname "wlan0" masquerade;
}
}
prev parent reply other threads:[~2024-02-29 10:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-29 10:10 snat with dynamic ip address Lars Noodén
2024-02-29 10:19 ` seentr
2024-02-29 10:29 ` Lars Noodén [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=876fa728-85e6-4793-a66b-15bea255c659@gmx.com \
--to=lars.nooden@gmx.com \
--cc=netfilter@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).