OpenVPNAdapter icon indicating copy to clipboard operation
OpenVPNAdapter copied to clipboard

Demo App Required

Open NasrullahKhan opened this issue 5 years ago • 2 comments

I tried to implement OpenVPNAdapter for two days still not able to connect. It will be good if you add demo project so newbie can connect easily>

NOTE: I followed one of medium article. but still unable to connect to. I think the main issue i'm facing in .ovpn file

should i added file account.txt path next to "auth-user-pass" or it's not necessary.. i tried all the ways but still not connecting. if auth-user-pass need username and password how we will pass into it? or the library will to it itself?

i also added keychainwrapper for providerManager.passwordReference

FINAL NOTE: i implemented IKEv2 and IPSec in project. i have knowledge of configuration. but .ovpn is confusing thing. .ovpn is working fine on OpenVPN connect app by importing file.

NasrullahKhan avatar Jan 08 '20 06:01 NasrullahKhan

Now added logs in network extension. i found error in following lines

let properties: OpenVPNProperties do { properties = try vpnAdapter.apply(configuration: configuration) NSLog("\(#function): vpnAdapter.apply success") } catch { NSLog("\(#function): vpnAdapter.apply error = \(error.localizedDescription)") completionHandler(error) return }

The error is "Failed to apply OpenVPN configuration"

i don't know why i'm getting this error

me .ovpn file is like this

client remote XXXXXXXXXXXXXX 4443 proto udp comp-lzo mssfix persist-key persist-tun dev tun auth SHA256 auth-user-pass tls-client .........bla blah Can you please help.

NasrullahKhan avatar Jan 08 '20 09:01 NasrullahKhan

Hi

I am facing the same issue. it will great if one provide a demo app.

I kept a few logs in PacketTunnelProvider Class

None of the logs is printing

Thanks

bikeebh avatar Jan 25 '20 18:01 bikeebh