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:
But I don't work, the connection is still established after 10 min when I closed all the App on iOS, even after having my iPhone in Standby for 15mins.
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?