Community discussions

MikroTik App
 
in4ni
Member Candidate
Member Candidate
Topic Author
Posts: 191
Joined: Thu Dec 09, 2004 4:22 am
Location: Jax, Fl USA

VPN for Voice

Thu Mar 20, 2014 12:24 am

Today I installed an IP PBX at a clients location and estableshed a PPTP VPN tunnel at the remote location, Data flows perfect however the phones dont work properly. For some reason the PBX thinks that all the phones connected through the VPN are coming from the same IP address. The PBX Shows all the phones having the IP address of the Mikrotik interface. any Ideas why this is happening?

Thank you
 
huntah
Member Candidate
Member Candidate
Posts: 287
Joined: Tue Sep 09, 2008 3:24 pm

Re: VPN for Voice

Thu Mar 20, 2014 12:41 am

I think you masquerade trafiic from phones over PPTP..

add a Firewall NAT rule before masquerade like this:
/ip firewall nat
add chain=srcnat comment="Route Local to Remote VPN" dst-address=\
    192.168.12.0/24 src-address=192.168.10.0/24
Hope this helps.. if not post config export..
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: VPN for Voice

Thu Mar 20, 2014 12:45 am

Today I installed an IP PBX at a clients location and estableshed a PPTP VPN tunnel at the remote location, Data flows perfect however the phones dont work properly. For some reason the PBX thinks that all the phones connected through the VPN are coming from the same IP address. The PBX Shows all the phones having the IP address of the Mikrotik interface. any Ideas why this is happening?

Thank you
Because you probably use NAT masquerading from Local to remote PPTP [and also from remote to local?],
you must routing instead of natting.
eg:
remote pbx = 2.3.4.5
remote PPTP IP = 1.1.1.1/29
local PPTP IP = 1.1.1.2/29
local ip range = 192.168.1.0/24

on local you must add this route
destination=2.3.4.5 gateway=1.1.1.1

on remote side you must add:
destination=192.168.1.0/24 gateway=1.1.1.2

and you have done without natting any.
 
in4ni
Member Candidate
Member Candidate
Topic Author
Posts: 191
Joined: Thu Dec 09, 2004 4:22 am
Location: Jax, Fl USA

Re: VPN for Voice

Fri Mar 21, 2014 1:08 pm

rextended, your suggestion did the trick


Thank you

Who is online

Users browsing this forum: BenceLK, TeWe, vagrik and 189 guests