From: Antoine Souques <corum@via.ecp.fr>
To: netfilter@vger.kernel.org
Subject: Re: How to do PAT based on source IP adress and port ?
Date: Sun, 18 Jul 2010 01:13:17 +0200 [thread overview]
Message-ID: <4C42390D.8020900@via.ecp.fr> (raw)
In-Reply-To: <AANLkTikEVBlk2beBQ0ZUg308udyaZ-_yWOQpvhRlZ6J7@mail.gmail.com>
Le 17/07/2010 23:30, Thomas Elsgaard a écrit :
> Hi
>
> I am wondering how i can get iptables to do a PAT based on source IP address?
>
> Traffic from 10.5.1.0/24 towards UDP port 69 should be mapped to port
> 20000 instead of port 69
> Traffic from 10.5.2.0/24 towards UDP port 69 should be mapped to port
> 20001 instead of port 69
>
> Is this possible with iptables?
>
> Thomas
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Hi,
With iptables (almost) everything is possible. You should look around
the target SNAT
next prev parent reply other threads:[~2010-07-17 23:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-17 21:30 How to do PAT based on source IP adress and port ? Thomas Elsgaard
2010-07-17 23:13 ` Antoine Souques [this message]
2010-07-17 23:21 ` Antoine Souques
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=4C42390D.8020900@via.ecp.fr \
--to=corum@via.ecp.fr \
--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 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.