OBiTALK Community

General Support => Installation and Set-Up (Devices) => Topic started by: Nukechaser on November 04, 2019, 11:25:31 AM

Title: VPN configuration help Obihai 1022
Post by: Nukechaser on November 04, 2019, 11:25:31 AM
Hello!

I have successfully configured and have been using OpenVPN with my home router.

My cellphones, iPad,  and laptop have no problem connecting to my home VPN server and surfing the web from there as well as connecting to my FreePBX server as extensions on my PBX.

For those devices, it is easily setup using a client app. However, I'm stuck with one part of the configuration via ObiTALK. The last line of the OpenVPN Client configuration field is trying to point to where the "client.ovpn" file is located.  Is has a default of ${USERDIR}/vpn/client.ovpn

I understand this is indicating that the file "client.ovpn" is within a folder called "vpn", but the ${USERDIR} is what is confusing me.

To what does ${USERDIR} refer?  C:\  and therefore C:\vpn\client.ovpn is what I need to create so that ObiTALK can grab it and upload it and then push it to my 1022 phone upon submit/reboot?

Or am I to create a \vpn\client.ovpn instance somewhere else?

To say it another what, what exactly, would one enter into the last box of the OpenVPN Client section under WAN Settings of System Management?  I've tried everything I can think of, but I don't think my .ovpn configuration file is being uploaded to the phone.

(http://F:%5CDocuments%5CPictures%5Cscreenshot%5Cscreenshot.28.jpg)

Thanks for any help...

Title: Re: VPN configuration help Obihai 1022
Post by: drgeoff on November 04, 2019, 12:34:37 PM
The Admin Guide (https://www.obitalk.com/info/documents/admin_guide/OBiPhoneAdminGuide.pdf) does not mention VPN but page 42 of the Admin Guide has this:

The default values for the two certificate paths are ${USERDIR}/certs/ca.pem and ${USERDIR}/certs/client.pem where ${USERDIR} represents the root of the user data folders in the Internal drive, which can be accessed from the phone GUI: Main MenuSettingsStorageDevice (use the < and > keys to select Internal)
Title: Re: VPN configuration help Obihai 1022
Post by: Nukechaser on November 04, 2019, 02:18:43 PM
THANK YOU!

That was the hint I needed!

Using the same methodology as mentioned in the "certificate paths", I navigated to the internal memory area and created a new folder called "vpn".

I then plugged a USB thumbdrive into the phone, and again using the phone's GUI, navigated to the USB drive where I had copied my client.ovpn file.

I then clicked the soft key to "copy" the client.ovpn file and it prompted me where I wanted to "paste" it.

I again navigated to the internal memory area, into the newly created "vpn" folder, and then pasted the client.ovpn configuration file into it.

Upon reboot it successfully connected to my FreePBX server via the VPN service.

Thanks again, your tip is just what I needed to figure out what they meant by ${USERDIR}.