From: Richard Liu <richardliu@ms1.techarea.org>
To: Henrik Nordstrom <hno@marasystems.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: How to change source port in MASQUERADE mode?
Date: Sat, 01 Oct 2005 01:13:35 +0800 [thread overview]
Message-ID: <433D723F.1060403@ms1.techarea.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0509301356110.19019@filer.marasystems.com>
Henrik Nordstrom 提到:
Thanks for your mail,
But --to-port parameter cannot get tuple port result like "50000+1000"
I found a way for this situation.
in file ip_MASQUERADE.c
we can change
mr->range[0].min,
mr->range[0].max
and set
mr->range[0].flags = IP_NAT_RANGE_PROTO_SPECIFIED;
for some special purposes.
but I don't know does it have other effects to the netfilter?
> On Fri, 30 Sep 2005, Richard Liu wrote:
>
>> I want change tuple source port in MASQUERADE module.
>
>
> --to-ports option to MASQUERADE (or SNAT if not dynamic IP assignment).
>
>> But I want to the src port be changed in some conditions like this.
>> src:GA:50000+1000 src:SA:1000
>> dst:DA:23 dst:DA:23
>
>
prev parent reply other threads:[~2005-09-30 17:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-30 4:36 How to change source port in MASQUERADE mode? Richard Liu
2005-09-30 11:58 ` Henrik Nordstrom
2005-09-30 17:13 ` Richard Liu [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=433D723F.1060403@ms1.techarea.org \
--to=richardliu@ms1.techarea.org \
--cc=hno@marasystems.com \
--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.