Good day! I’m from Russia, so my language is not good enough. Anyway, here is the deal. I have Mikrtoik 951-2n and i need to create a few rules for sip traffic to my another place, where Asterisk installed. The diagram below:
ip_phone(gigaset a510)-[eth4:192.168.0.0/24]Mikrotik(192.168.0.1)[eth1:Public,StaticIP]--Zyxel Keenetic-Asterisk
Mikrotik Environment:
One subnet, DHCP:192.168.0.0/24
MIkrotik local address:192.168.0.1
eth1-publicip (31.xxx.xxx.71/26 mask)
bridge:wlan+eth2
eth3-5: slave-local, master eth2
The side, where Asterisk placed is configured right, 'cause ip phone was tested from temporary place and it works fine, before it was placed in Mikrotik environment.
So i make a few rules and it doesn’t work. I mean, i haven’t see ip phone’s registration on Asterisk.
0 chain=srcnat action=src-nat to-addresses=95.161.150.66 to-ports=5060
protocol=udp src-address=192.168.0.251 dst-port=5060 log=no
log-prefix=“”
1 chain=dstnat action=dst-nat to-addresses=192.168.0.251 protocol=udp
src-address=95.161.150.66 src-port=5060 log=no log-prefix=“”
2 chain=srcnat action=masquerade to-addresses=0.0.0.0 out-interface=ether1
log=no log-prefix=“”
Then i decided check rdp connectivity and i was surprised, 'cause there are no any nat rules, but rdp income to local and outcome to another place over internet is works. I dont get it, why rdp is works and sip isn’t (with and w/o sip helper)