I am very frustrated with the problems I have with my Mikrotik Router and VoIP. The RB3011 hast connected a Vigor V120 modem which is used for setting up the internet connection. There is src NAT as well as some firewall rules. Now I wanted to use VoIP by sipgate behind the NAT in my home network but I cannot get it running. I tried two VoIP Clients one softphone called "PhonerLite" and a FritzBox 7490. Both of them cannot register there number towards the SIP Provider. The sip helper is already disabled in the "Service Ports" section.
Browsing the web as well as normal internet usage works as expceted. My provider gives my a public IPv4 address, so there is no Dual Stack lite NAT between my IP and the public internet.
What I have tried so far:
- Open UDP ports 3478, 5060-5066, 7077-709 and 10000-20000
- Forward them to the VoIP Client, currently 192.168.0.110
- SIP Helper is disabled
I am not sure if I have to add filter rules in the forward chain if I open a port by using dstnat in the NAT? Is it enough to just do a destination nat on the specific port?
Please help me, I don't know how to solve this problem
Here is my config:
Code: Select all
/ip firewall filter
add action=accept chain=forward comment=VoIP dst-address=192.168.0.110 \
dst-port=5060 in-interface-list=ListPPPoE_Intf protocol=udp
add action=accept chain=forward comment=VoIP dst-address=192.168.0.110 \
dst-port=3478 in-interface-list=ListPPPoE_Intf protocol=udp
add action=accept chain=forward comment=VoIP dst-address=192.168.0.110 \
dst-port=10000-20000 in-interface-list=ListPPPoE_Intf protocol=udp
add action=accept chain=forward comment=VoIP connection-nat-state=dstnat \
in-interface-list=ListPPPoE_Intf
add action=accept chain=input comment="ALLOW all ICMP" protocol=icmp
add action=accept chain=input comment=\
"ACCEPT established and related packets on INPUT" connection-state=\
established,related
add action=drop chain=input comment="DROP all from WAN" in-interface-list=\
ListPPPoE_Intf
add action=accept chain=forward comment=\
"Accept established and related packets on FORWARD" connection-state=\
established,related
add action=drop chain=forward comment="DROP all invalid packets" \
connection-state=invalid
add action=drop chain=forward comment="Drop all packets arriving at the WAN in\
terface and traversing the router towards the LAN, unless there's a explic\
it dst-nat rule matching it, i.e. a port forwarding from the router to an \
inside host." connection-nat-state=!dstnat connection-state=new \
in-interface-list=ListPPPoE_Intf
/ip firewall nat
add action=masquerade chain=srcnat comment="NAT Inexio WAN" \
out-interface-list=ListPPPoE_Intf
add action=dst-nat chain=dstnat comment="VoIP FritzBox" dst-port=3478 \
in-interface-list=ListPPPoE_Intf protocol=udp to-addresses=192.168.0.110 \
to-ports=3478
add action=dst-nat chain=dstnat dst-port=5060-5066 in-interface-list=\
ListPPPoE_Intf protocol=udp to-addresses=192.168.0.110 to-ports=5060-5066
add action=dst-nat chain=dstnat dst-port=7077-7109 in-interface-list=\
ListPPPoE_Intf protocol=udp to-addresses=192.168.0.110 to-ports=7077-7109
add action=dst-nat chain=dstnat dst-port=10000-20000 in-interface-list=\
ListPPPoE_Intf protocol=udp to-addresses=192.168.0.110 to-ports=\
10000-20000
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set udplite disabled=yes
set dccp disabled=yes
set sctp disabled=yes