Community discussions

MikroTik App
 
sebus504
newbie
Topic Author
Posts: 29
Joined: Thu Mar 29, 2012 10:30 pm

Voip server behind NAT

Fri Aug 08, 2014 11:44 pm

Hello,I will describe the patient:

ether4 - wan
ether 6 - lan

on LAN interface is server voip with address 192.168.5.222 ports 8100-8200 and 192.168.5.223 with ports 5060

chain=srcnat action=masquerade out-interface=ether4

chain=dstnat action=dst-nat to-addresses=192.168.5.222 to-ports=8100-8200 protocol=udp
in-interface=ether4 dst-port=8100-8200

chain=dstnat action=dst-nat to-addresses=192.168.5.223 to-ports=5060-5061 protocol=udp
in-interface=ether4 dst-port=5060-5061

when calling from gsm everything is ok, but when I'm logged into another network and voip calling for it breaks the connection. Nat probably not working properly. Enter the public ip but wants to get out local ip.

I hope it is clearly written.
 
User avatar
lordkappa
Member Candidate
Member Candidate
Posts: 133
Joined: Wed May 16, 2012 1:53 pm
Location: Vancouver, Canada

Re: Voip server behind NAT

Sat Aug 09, 2014 11:08 pm

Try using action=netmap instead of dst-nat.

Who is online

Users browsing this forum: Florian, johnson73, sindy and 75 guests