Page 1 of 1

OpenVPN iphone mobileconfig no connection

Posted: Sun Jul 05, 2020 2:05 pm
by Miro
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

Re: OpenVPN iphone mobileconfig no connection

Posted: Sat Jul 11, 2020 11:25 am
by Miro
Someone? Please!

Re: OpenVPN iphone mobileconfig no connection

Posted: Mon Jul 13, 2020 4:04 pm
by erich1899
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?

Re: OpenVPN iphone mobileconfig no connection

Posted: Tue Jul 14, 2020 5:34 am
by Miro2
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.

Re: OpenVPN iphone mobileconfig no connection

Posted: Tue Jul 14, 2020 5:59 am
by erich1899
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 ?

Re: OpenVPN iphone mobileconfig no connection

Posted: Tue Jul 14, 2020 6:03 am
by Miro2
The SSID‘s of the WiFi’s should trigger the VoD.

Known WiFi = no vpn
Unknown WiFi = vpn