We have an office with two VOIP devices, a Cisco SPA942 and a Linksys PAP2, behind an RB951G running v5.24. Both devices are able to get provisioned over port 80 but are failing to register over ports 5060 & 5061. What we are noticing in the firewall connections window is that the devices are not using random source ports for the communication but are both trying to use port 5060 or 5061. This is occurring whether the SIP service port is enabled or disabled. NAT keep-alives are enabled on the VOIP devices, but NAT mapping is not, though we have tried enabling it without any success. Why isn’t the NAT mapping working properly on the MikroTik?
The connections tab shows the original non-NATed IP/port so presumably the devices are using whichever ports they have been set to use. Do you have SIP logs showing the attempt? If you Torch the external interface do you see bidirectional traffic on the SIP ports?
OK - but can you see that the IP traffic has been src NATed outbound? If there is no return traffic at all then it sounds as if the target host is never responding.
If possible I suggest that you check if these phones register when connected via some other connection. There appears to be no return traffic from the SIP server. It would be useful to know if they register when connected elsewhere in case the problem is not RouterOS related.
Have another look with torch and show the IP numbers. Perhaps there is something wrong with the traffic leaving such that it cannot be returned by the SIP server.
There is no change if I increase the Torch timeout to 60 seconds - the same connections appear. This issue only started occurring after we switched the firewall at the office. Previously, they were using a Netgear ProSafe which was also NATing, and the VOIP devices did not have any trouble behind that firewall. Now with the MikroTik we have this really irritating issue.
Nothing? Nobody has any idea why this is occurring? It does not make sense for the issue to be upstream since there was previously a NATing firewall that did not cause any problems.
If you are getting no return traffic from the SIP server then it is entirely possible that it doesn’t like something but the inbound traffic that it is seeing. It is hard to get a full picture from the screenshots.
Incidentally your firewall rules show no filters on the forward chain which is not causing this problem but which is a security concern.