All of lore.kernel.org
 help / color / mirror / Atom feed
* How to change source port in MASQUERADE mode?
@ 2005-09-30  4:36 Richard Liu
  2005-09-30 11:58 ` Henrik Nordstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Liu @ 2005-09-30  4:36 UTC (permalink / raw)
  To: netfilter-devel

Hi,
I have a question about change tuple source port.
I have a nat device, and I want this device can change tuple source port
in some special conditions (not always).

I want change tuple source port in MASQUERADE module.

for example:
    Destination                Gateway                Source
    DA(Ipaddr):Port          GA:Port                SA:Port

In Masquerade modules
                                    src:GA:1000           src:SA:1000
                                    dst:DA:23               dst:DA:23

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

I am tracing source few days, but I still don't know which function
allocate tuple source port.
Does anyone can give me some hints, I am very appreciate.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-30 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.