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 nat rules for outgoing sip traffic. The diagram below:
ip_phone(gigaset a510) → [eth4:192.168.0.0/24]Mikrotik(192.168.0.1)[eth1:Public,StaticIP]--[wan:95.xxx.xxx.66]Zyxel Keenetic[eth1:192.168.0.250]<-Asterisk
Mikrotik Environment:
One subnet, DHCP,NAT:192.168.0.0/24
MIkrotik local address:192.168.0.1
IP Local address: 192.168.0.251
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.xxx.xxx.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.xxx.xxx.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 out rdp connectivity and i was surprised, 'cause there are no either nat or firewall rules, but rdp works for PC in local and works for PC in to another place over internet. I dont get it, why rdp is works and sip isn’t (with and w/o sip helper)