I need help setting up hairpin NAT. I have a PPPoE Connection, named Out with No-IP dynamic DNS (let’s say test.ddns.net) and I have set up port forward for my FreePBX. I need hairpin NAT for the roaming clients, in & out of LAN. These are the NAT rules I have now:
No, I redirect the port for security reasons, WAN Port 6050 → LAN Port 5060
What NAT rules do I have to set up for hairpin NAT so that I can access my FreePBX from LAN & WAN using the dynamic dns hostname test.ddns.net?
as for dynamic DNS, as long as the traffic can reach your router, the current NAT rule should work as it’s got in-interface=Out
turning off SIP helper in IP - Firewall - Service Ports, SIP
PS: mikrotik has it’s own DDNS which is very handy, IP → cloud, enable DDNS
As per solar77, the below rule is wrong, the standard port for SIP on internet is 5060, how will other SIP providers, etc know that they must now point to your PBX on port 6050?
Many SIP clients allows you to specify the signalling port so you can use other ports than 5060.
However a simple port scan on the public IP will expose your PBX, the other post has got some useful tips. Use VPN or at least Access List to restrict access to your PBX