Faced with such a problem: we have an ip-PBX connected to router Mikrotik rb750.(current firmwire 3.09)
Our ISP has set strict conditions - service information should go to the ip-address 184.108.40.206
through 5060 port, and voice traffic to ip-address 220.127.116.11 on ports 9000-12000.
This PBX itself is not capable to work like that.
So it was decided to make a SIP-server on ip 18.104.22.168 and redirect all packages going to port 5060 to the 22.214.171.124 ip.
NAT rules were set to following:
ip firewall nat
add action = dst-nat chain = dstnat disabled = no dst-address = 172.29.35.36 \
dst-port = 0-65535 protocol = udp to-addresses = 192.168.61.1
add action = dst-nat chain = dstnat disabled = no protocol = udp src-address = \
192.168.61.1 src-port = 5060 to-addresses = 126.96.36.199 to-ports = 5060
add action = masquerade chain = srcnat comment = "Added by webbox" disabled = no \
out-interface = ether1-gateway to-addresses = 0.0.0.0
But in the "Connections" we can see that the packages are still going to the *.77 ip.
Can you please point us to any mistakes in these rules and if it is possible provide the correct decision for our conditions?
Big thanks in advance.