OpenVPN iphone mobileconfig no connection

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Miro
OpenVpn Newbie
Posts: 2
Joined: Sun Jul 05, 2020 1:47 pm

OpenVPN iphone mobileconfig no connection

Post by Miro » Sun Jul 05, 2020 2:05 pm

Hi,
i need some help with a mobileconfig file for ios devices. The instructions and templates from several webpages don´t work for me.
The OpenVPN Connetion App works properly, but i need the ondemand functionality of the mobileconfig file.

The server is a Pi 4 4GB with a fresh Raspberry Pi OS with desktop (May 2020) and is uptodate.
The log from the OpenVPN server shows no errors or connection attempts, so the iphone (X)
doesn't even reach the server.

Maybe some one can provide me a working mobileconfig file as a template, of course without personal data.

greeting
Miro

Miro
OpenVpn Newbie
Posts: 2
Joined: Sun Jul 05, 2020 1:47 pm

Re: OpenVPN iphone mobileconfig no connection

Post by Miro » Sat Jul 11, 2020 11:25 am

Someone? Please!

erich1899
OpenVpn Newbie
Posts: 8
Joined: Fri Jul 10, 2020 9:03 am

Re: OpenVPN iphone mobileconfig no connection

Post by erich1899 » Mon Jul 13, 2020 4:04 pm

Hi Miro,
i had a working mobileconfig since iOS App 3.2.0 - which version do you use?

Do you have a specific domain that should trigger the vpn-connection?

Miro2
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 14, 2020 5:29 am

Re: OpenVPN iphone mobileconfig no connection

Post by Miro2 » Tue Jul 14, 2020 5:34 am

Hi erich,

i use the iOS version 13.5.1 and have no specific domains but i will use the VoD for in/secure WiFi’s.

erich1899
OpenVpn Newbie
Posts: 8
Joined: Fri Jul 10, 2020 9:03 am

Re: OpenVPN iphone mobileconfig no connection

Post by erich1899 » Tue Jul 14, 2020 5:59 am

As far as i understood VoD needs some kind of trigger - in my case it is my local domain.

Code: Select all

<dict>
<key>Action</key>
<string>EvaluateConnection</string>
<key>ActionParameters</key>
<array>
<dict>
<key>Domains</key>
<array>
<string>mydomain.local</string>
<string>*.mydomain.local</string>
</array>
<key>DomainAction</key>
<string>ConnectIfNeeded</string>
</dict>
</array>
</dict>
What triggers your VoD ?
Leaving home-WiFi ?

Miro2
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 14, 2020 5:29 am

Re: OpenVPN iphone mobileconfig no connection

Post by Miro2 » Tue Jul 14, 2020 6:03 am

The SSID‘s of the WiFi’s should trigger the VoD.

Known WiFi = no vpn
Unknown WiFi = vpn

Post Reply