All of lore.kernel.org
 help / color / mirror / Atom feed
* asymmetric port translation?
@ 2006-04-27  7:51 Antanas Masevicius
  0 siblings, 0 replies; only message in thread
From: Antanas Masevicius @ 2006-04-27  7:51 UTC (permalink / raw)
  To: netfilter

Hello,

while trying to run SIP client under linux NAT i see following ip_conntrack 
table:

udp      17 174 src=192.168.10.10 dst=84.12.0.18 sport=5060 dport=5060 
packets=1551 bytes=1075989 src=84.12.0.18 dst=84.12.134.21 sport=5060 
dport=5060 packets=3665 bytes=1067143 [ASSURED] mark=0 use=1
udp      17 173 src=192.168.10.10 dst=84.12.0.18 sport=23192 dport=36048 
packets=168 bytes=10220 src=84.12.0.18 dst=84.12.134.21 sport=36048 
dport=1024 packets=114 bytes=8810 [ASSURED] mark=0 use=1
udp      17 27 src=84.12.0.18 dst=84.12.134.21 sport=36048 dport=23192 
packets=40 bytes=2610 [UNREPLIED] src=84.12.134.21 dst=84.12.0.18 
sport=23192 dport=36048 packets=0 bytes=0 mark=0 use=1

sport 5060 gets mapped to sport 5060 on outgoing IP 84.12.134.21, but in 
next line sport 23192 gets mapped to 1024 port, later, when my rtpproxy 
84.12.0.18  tries to send to 23192  - gets UNREPLIED.

my box:
linux version: 2.6.16.9
iptables v1.2.11

natting is performed with:

iptables -A POSTROUTING -s 192.168.10.0/24 -d 0/0 -p all -t nat -j 
SNAT --to-source 84.12.134.21

is it a normal PAT behaviour? I am not sure, but it seems that older 
versions of linux/iptables didn't exposed such behaviour.
Is there workaround for such thing? Maybe it is related with usage of higher 
ports - strange that 5060 always gets mapped correctly.
This box isn't loaded so there is no port shortage.

regards,
Antanas Masevicius 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-27  7:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27  7:51 asymmetric port translation? Antanas Masevicius

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.