[Help] Port Forwarding with public IP "only with haproxy, socat.."

Hi, I need some advice… I’ve been trying to find where I can. We have a server/client application and we need to run it. On the tested servers we connected but it was not a Mikrotik, on the server we would need to run the system goes behind Mikrotik, The problem is that classically the user does not connect, but we found that if we use “haproxy” or “socat” with this parameter, the user connects to the server.

Could you please advise where we have a bug? Or what to look for?

Parameters: server ~ # socat -T 600 UDP4-LISTEN:51515,reuseaddr,fork UDP4:xx.xx.xx.xx:51515

Why do we connect through these applications but not otherwise? Thank you

https://mikrotik.com/consultants

Isn’t this what NAT does? With “hairpin” part added? Something like this:

/ip/firewall/nat
add chain=dstnat action=dst-nat protocol=udp dst-port=51515 to-addresses=xx.xx.xx.xx
add chain=srcnat action=masquerade protocol=udp dst-port=51515 dst-address=xx.xx.xx.xx

Damn, saw this post too late. :wink: