OpenVPNAdapter | C wrapper for OpenVPN library | iOS library
kandi X-RAY | OpenVPNAdapter Summary
kandi X-RAY | OpenVPNAdapter Summary
OpenVPNAdapter is an Objective-C framework that allows to easily configure and establish VPN connection using OpenVPN protocol. It is based on the original openvpn3 library so it has every feature the library has. The framework is designed to use in conjunction with NetworkExtension framework and doesn't use any private Apple API. Compatible with iOS and macOS and also Swift friendly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of OpenVPNAdapter
OpenVPNAdapter Key Features
OpenVPNAdapter Examples and Code Snippets
Community Discussions
Trending Discussions on OpenVPNAdapter
QUESTION
I am trying to connect VPN using OpenVPNAdapter
but the PacketTunnelProvider
isn't called from the controller. What am i missing here?
Controller.swift
...ANSWER
Answered 2021-Jun-04 at 05:08You haven't mentioned anything about how you are testing network extension. You should attach a Network extension process before running your project for debugging. Then only network extension methods will trigger for debug.
QUESTION
I am making an app that activates a VPN connection based on OpenVPN, retrieves a certificate from the database, and opens a tunnel using NEPacketTunnelProvider
and NetworkExtension
.
I used the following repository, and now my VPN is working fine.
But the problem is that I want to allow only one app to use this VPN when enabled (WhatsApp precisely), and I want to restrict all other apps of using it.
On Android it's possible by giving the bundle identifier of the allowed apps to the PackageManager
.
Can you please help me?
This is my PacketTunnelProvider
class:
ANSWER
Answered 2021-Feb-28 at 20:35As an engineer from Apple said:
The way to do it is to use Per-App VPN. See the Per-App VPN On Demand section in the NETunnelProviderManager documentation.
With NEPacketTunnelProvider on macOS (as of 10.15.4) you can set this up yourself with NEAppRule. A very generic example of setting up Safari to trigger the VPN would be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install OpenVPNAdapter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page