A vpn app contains such a plugin, plus the required user interface to login/configure the service. The user downloads the app, configures it providing credentials (or gets auto configured through a MDM) and then the vpn network appears in Settings, among the other VPNs created with a builtin protocol like IPSec.
The vpn plugin is obviously sandboxed with the minimum possible privileges.
This is a WWDC video explaining it: https://developer.apple.com/videos/play/wwdc2015/717/
This is a blog post with a tutorial: http://www.hideme.io/blog/en/ios-9-vpn-api-network-extension...
This is the entry point for the official documentation for all kind of network plugins, of which VPN is one: https://developer.apple.com/documentation/networkextension
Edit: actually after reading your link, it appears Network Extension is supported by macOS as well? That would be great news, if vendors would also update their apps to use it.
But macOS doesn't have a tun/tap device. It needs kernel drivers to create one.
In either case, my main gripe is with Cisco AnyConnect, not OpenVPN. Cisco AnyConnect is very popular, I haven'd had any client use OpenVPN, though many do use IPsec.
https://support.apple.com/en-us/HT201533
The legit apps are mostly VPN policy/configuration managers. You give them permission to hook into the built in consumer and business level VPN capabilities built into iOS without giving them ability to MITM all the traffic on the device.
Mostly the apps give you tools to select the edge / country you want to connect to, whether you want DNS ad blocking, and a way to use App Store subscriptions to pay for VPN. They can also give you easy on/off 3D Touch or widgets, or show you dashboards of usage.
You can use an app to create a VPN profile then remove the app, it’s not needed. You can also load VPN profiles other ways, without an app.
So what do these VPN apps actually do? Are they just a front-end for some service, but the phone still uses IPsec? If that is the case I assume you can configure IPsec manually?
Can someone explain? A link to some technical document would be amazing.
Thank you!