I created a working mobilconfig file of my openhab configuration and VPN on demand works well for accessing my stuff via the hostname.
But I also configured "DisconnectOnIdle" like:
Code: Select all
<key>AuthenticationMethod</key>
<string>Certificate</string>
<key>OnDemandEnabled</key>
<integer>1</integer>
<key>DisconnectOnIdle</key>
<integer>1</integer>
<key>DisconnectOnIdleTimer</key>
<integer>60</integer>
<key>OnDemandRules</key>
<array>...</array>
I also checked the option "battery saver" in the settings of the OpenVPN App.
Do you have any idea?