All of lore.kernel.org
 help / color / mirror / Atom feed
* Does Redirect/NAT change the destination port of reverse tuple ?
@ 2008-02-29 10:49 Nishit Shah
  2008-02-29 11:29 ` Jan Engelhardt
  2008-02-29 11:52 ` Pascal Hambourg
  0 siblings, 2 replies; 8+ messages in thread
From: Nishit Shah @ 2008-02-29 10:49 UTC (permalink / raw)
  To: netfilter-devel

Hi,
	I have following iptable rule in system.

	iptables -I PREROUTING -t nat -p tcp --dport 443 -j REDIRECT
--to-ports 3128
	kernel - 2.6.16.13

	I am using following scenario for load testing

	192.168.206.200 -----> 192.168.121.125 	-----> 	72.14.223.83
	Client			iptables/proxy server		server

	and I am getting following entry through conntrack binay as well as
in /proc/net/ip_conntrack

	[NEW] tcp 6 120 NONE src=192.168.206.200 dst=72.14.223.83
sport=63423 dport=443 packets=1 bytes=48 [UNREPLIED] src=192.168.121.125
dst=192.168.206.200 sport=3128 dport=46873 packets=0 bytes=0 id=28187887

Now here original and reverse tuples are --> 
	Original tuple 192.168.206.200:63423->72.14.223.83:443
	Reply tuple    192.168.121.125:3128->192.168.206.200:46873

So, here destination port of reverse tuple is 46873. Is it correct ?

Rgds,
Nishit Shah


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

end of thread, other threads:[~2008-03-01 12:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 10:49 Does Redirect/NAT change the destination port of reverse tuple ? Nishit Shah
2008-02-29 11:29 ` Jan Engelhardt
2008-02-29 12:00   ` Nishit Shah
2008-02-29 12:04     ` Jan Engelhardt
2008-02-29 12:13       ` Nishit Shah
2008-02-29 11:52 ` Pascal Hambourg
2008-02-29 12:34   ` Nishit Shah
2008-03-01 12:22     ` Pascal Hambourg

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.