srcnat behaviour

good day!

i have RB 532A router. i have a server behind the router and i need to do srcnat to external mysql server.
i have created srcnat rule and i can get the connection from my application to mysql server. still when i
tried to use mysql console client at the same time, i get connection timeout . so i can have only one connection
on router for this srcnat rule. the next connection stays in SYN_SENT state. is it normal behaviour?
is there a trick to use many connections on this rule simultaneously?

masquerade is solving this problem , i can use many connections, but is there something wrong with srcnat ?


thanks

edmunds

well, i think, in srcnat’s ‘to-ports’ you set only one port. so when one connection is established, that port is busy =) set to-ports=0-65535