Community discussions

MikroTik App
 
johnnybui
just joined
Topic Author
Posts: 1
Joined: Sat Apr 16, 2022 7:09 pm

Help NAT different port

Sat Apr 16, 2022 7:19 pm

Hello,
I am looking for a way to NAT mask port and local port, please help me.
Eg :
/ip firewall nat add chain=dstnat dst.adress=123.212.112.1 protocol=udp dst-port=1234 action=dst-nat to-addresses=192.168.100.2 to-ports=5060
/ip firewall nat add chain=dstnat dst.adress=123.212.112.1 protocol=udp dst-port=10000-20000 action=dst-nat to-addresses=192.168.100.2 to-ports=10000-2000

I have created on my device as above, if the call is from the internal to the outside, there is no problem, but when using the app from the external network to make calls through the switchboard, after about 10-15 seconds will be disconnected.

I cannot find the cause of this problem.

Please help me!

Thank you very much!

Who is online

Users browsing this forum: Ahrefs [Bot], freemannnn, GoogleOther [Bot], Semrush [Bot], vbkp and 76 guests