OpenVPN and FreePBX 13


(Claudio Pelosi) #1

There is a step by step tutorial to use openVPN is FreePBX

I saw that the dir / etc / openvpn exists but is empty …

I saw that already exists in init need to start it …

But I want to find documentation to configure


(Addison Burnside) #2

You need to copy the sample server configuration to /etc/openvpn/server.conf

Then all of your configuration will be done in that file. You’ll need to create your ca, keys, cert and dh file and point to them in the server.conf
Can you link to the tutorial you are following?


(Claudio Pelosi) #3

I’m still following any tutorial

You can recommend a suitable tutorial?


(Addison Burnside) #4

What phones are you trying to use?


(Claudio Pelosi) #5

Grandstream normally, I would actually be able to use any phone behind a router openVPN I was thinking about that now supports Asus openVPN


(Claudio Pelosi) #6

then made

attaching the need for those facing the thing for the first time

after installing …

to configure it first:

Create key in / etc / openvpn /
openvpn --genkey --secret key.txt

Then create configuration files in / etc / openvpn / here example

secret /etc/openvpn/key.txt
table 10
verb 3
mute 10
dev tap
ifconfig 10.23.24.1 255.255.255.252
log append /var/log/openvpn.log

then start example:
openvpn --config /etc/openvpn/server.conf

client side all the same but you have to indicate server ip and send the key …

good job :slight_smile:


(Mamadou Ndiaye) #7

Hi,
I have a freepbx 14. My setup gives me an empty VPN file when I download. From your post, it looks like I have to manually setup openvpn. Would you please give more detail on the setup.
Thank you


(Claudio Pelosi) #8

let’s try

yum install pptp

modprobe ppp_mppe

vi /etc/ppp/peers/pptpserver

file content:
pty “pptp 62.94.218.225 --nolaunchpppd”
name claudio
password paisa2009
remotename PPTP
require-mppe-128

to start pptp:
pppd call pptpserver

to stop pptp:
killall pppd

Once the VPN is active, insert the appropriate routing table, for example:
/ sbin / route add -net 192.168.17.0 netmask 255.255.255.0 gw 192.168.17.1


(system) closed #9

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.