TIPS Remote Extension - OpenVPN

Robmillerlight

New Member
Joined
Sep 1, 2016
Messages
2
Reaction score
0
Hi,

My IncrediblePBX 2.11 install has been working great, but now that I'm trying to add three remote cellphone extensions via OpenVPN I'm having trouble figuring out how to do it. My IncrediblePBX is on a Pi 2, and since the Pi has limited processing power I've installed OpenVPN on my Windows 7 Pro 64-bit PC (which I leave running all the time, same NAT'd network).

I've searched Google and this forum but I'm still at a loss - could someone please help me understand how to set this part up? I've read that I'll need to setup three 'clients' in OpenVPN, one for each extension - but I don't understand how to do this, nor how Asterisk will see and access those three clients separately through the single IP address of the PC. Does this mean that I have to setup each OpenVPN client with a different port? Or does it mean that I have to run three instances of OpenVPN on the PC, each with it's own different port? If so, how do I do that (I don't even know how to run multiple instances).

Many thanks for any assistance!
 

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
Setting up OpenVPN Server on the Pi is probably the simplest thing to do, and should be fine even on a Pi2.

If you insist on Windows, there is way to much variability to give definitive answers and I've never setup OpenVPN Server on Windows (actually surprised at that).

In general, the OpenVPN Server will assign clients to a vpn subnet - the default sample config is usually 10.8.0.0/24. The Windows PC then becomes a router between your network and the vpn subnet.

You will need to set up a route on the Pi for 10.8.0.0/24 pointing to the local IP of the Windows PC, and the PC should then handle the routing to the VPN endpoints. Alternatively you could add a route for 10.8.0.0 on your gateway router(pointing to the PC), but that introduces an unnecessary hop unless you have vpn clients the whole LAN needs access to.
 

Robmillerlight

New Member
Joined
Sep 1, 2016
Messages
2
Reaction score
0
I'll look into those suggestions - thank you both.

I just found a Ward Mundy article in which his very first suggestion for remote extensions is to "install another Incredible PBX at the remote site so the two servers can be linked with IAX connections between the servers making connectivity between the systems totally transparent."

Since this is his preferred method it indicates that an IAX connection is as secure as VPN; does this also mean that setting up an IAX phone at the remote extension by itself (without an additional PIAF server) would work just as well? It's certainly a lot easier than a remote PIAF installation plus a phone, and also seems a heck of a lot easier than the incredibly tedious VPN scenario.

Any thoughts?
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

The instructions for building an OpenVPN server are at http://www.bbc.co.uk/news/technology-33548728, I've used and verified them as accurate, and work for OSX (use Tunnelblick), Android and IOS (use OpenVPN client). An unusual topic for the BBC but welcome all the same. I used Ubuntu 14,04, but the instructions will not vary dramatically for other Linux distributions.

Joe
 

Members online

Forum statistics

Threads
25,825
Messages
167,849
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top