Community discussions

MikroTik App
just joined
Topic Author
Posts: 1
Joined: Tue Jun 28, 2022 12:03 pm

NAT between PBX and voip provider

Tue Jun 28, 2022 12:20 pm

I replaced a Fritzbox with a Routerboard. In my LAN I have a grandstream UCM6202 PBX. The PBX has a sip-connecting to my voip-provider. Registration is OK. We can receive invound calls without any problem, but incoming calls are dropped after 32 seconds. We don't have the problem when connected through the Fritzbox.

This is our configuration:
/interface bridge
add admin-mac=DC:2C:6E:21:E4:3C arp=proxy-arp auto-mac=no comment=defconf name=bridgeLocal
/interface vlan
add interface=ether1 name=vlan6 vlan-id=6
/interface pppoe-client
add add-default-route=yes allow=pap disabled=no interface=vlan6 keepalive-timeout=60 name=pppoe-out1 password=password use-peer-dns=yes
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=vpn_pool ranges=
add name=dhcp_pool ranges=
/ip dhcp-server
add address-pool=dhcp_pool disabled=no interface=bridgeLocal name=dhcp-lan
/ppp profile
set *0 bridge=bridgeLocal dns-server=, local-address=vpn_pool remote-address=vpn_pool use-encryption=yes
set *FFFFFFFE bridge=bridgeLocal local-address=vpn_pool remote-address=vpn_pool
/interface bridge port
add bridge=bridgeLocal comment=defconf disabled=yes interface=ether1
add bridge=bridgeLocal comment=defconf interface=ether2
add bridge=bridgeLocal comment=defconf interface=ether3
add bridge=bridgeLocal comment=defconf interface=ether4
add bridge=bridgeLocal comment=defconf interface=ether5
add bridge=bridgeLocal comment=defconf interface=ether6
add bridge=bridgeLocal comment=defconf interface=ether7
add bridge=bridgeLocal comment=defconf interface=ether8
add bridge=bridgeLocal comment=defconf interface=ether9
add bridge=bridgeLocal comment=defconf interface=ether10
/interface l2tp-server server
set enabled=yes ipsec-secret=l222vp use-ipsec=yes
/interface list member
add interface=ether1 list=WAN
add interface=bridgeLocal list=LAN
add interface=pppoe-out1 list=WAN
/interface pptp-server server
set default-profile=default enabled=yes
/ip address
add address= interface=bridgeLocal network=
add address= interface=ether1 network=
/ip dhcp-server network
add address= dns-server=, gateway=
/ip dns
set allow-remote-requests=yes servers=
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN src-address=
add action=src-nat chain=srcnat disabled=yes dst-address= dst-port=443 protocol=tcp src-address= to-addresses= to-ports=443
add action=dst-nat chain=dstnat comment=smtp dst-port=25 in-interface-list=WAN protocol=tcp to-addresses= to-ports=25
add action=dst-nat chain=dstnat dst-port=443 in-interface-list=WAN protocol=tcp to-addresses= to-ports=443
add action=dst-nat chain=dstnat comment=sip disabled=yes dst-port=5060 in-interface-list=WAN protocol=tcp to-addresses= to-ports=5060
add action=dst-nat chain=dstnat comment=sip dst-port=5060 in-interface-list=WAN protocol=udp src-address= to-addresses= to-ports=5060
add action=dst-nat chain=dstnat comment=sip disabled=yes dst-port=5061 in-interface-list=WAN protocol=tcp to-addresses= to-ports=5061
add action=dst-nat chain=dstnat comment=sip dst-port=5061 in-interface-list=WAN protocol=udp src-address= to-addresses= to-ports=5061
add action=dst-nat chain=dstnat dst-port=10000-20000 in-interface-list=WAN protocol=udp src-address= to-addresses= 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 sip-direct-media=no
set udplite disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip service
set telnet address=
set ftp disabled=yes
set www address=
set ssh address=
set api address=
set winbox address=
set api-ssl address=
/ppp secret
add name=XXXXXXX password=XXXXXXXX service=l2tp
/system clock
set time-zone-name=Europe/Amsterdam
/system logging
add disabled=yes topics=dhcp
Anyone have an idea what's going wrong?

Who is online

Users browsing this forum: ft897d and 4 guests