OpenVPNAdapter icon indicating copy to clipboard operation
OpenVPNAdapter copied to clipboard

Not Connected

Open khatri6168 opened this issue 4 years ago • 5 comments

Hello i am try to connect openVPN but not connected. can you please tell me how to call this PacketTunnelProvider class methods. i am using this code (https://medium.com/better-programming/how-to-build-an-openvpn-client-on-ios-c8f927c11e80)

And i am use to same username, password and .openVPN file in openVpn app so it will be connected.

Can you please help me hoe to connect in my code..

IMG_C01F62F1DE48-1

khatri6168 avatar May 26 '20 11:05 khatri6168

Add 'setenv CLIENT_CERT 0' to the ovpn configuration file.

DrHazemAli avatar Jun 02 '20 22:06 DrHazemAli

Thank You @DrHazemAli

But i am open this .ovpn file in OpneVpn iOS app so it's running perfectly.

khatri6168 avatar Jun 03 '20 05:06 khatri6168

@DrHazemAli same issue iam facing for openVPn it is not connecting have you found any solution for that

sudarvizhi3055 avatar Jun 15 '20 09:06 sudarvizhi3055

Hi guys,

Logs and stepwise debugging are your friends. Use NSLog to output messages. Although, you won't see them in Xcode, you can use Console.app on your Mac to monitor log messages in realtime. Check thoroughly openvpn log, it may give you a clue. To debug the extension step by step you can use this workaround.

ss-abramchuk avatar Jun 16 '20 06:06 ss-abramchuk

Hi @ss-abramchuk i have debugged my code my getting this error 2020-06-16 12:56:34.248889+0530 VPN.lat[1003:229417] [Process] kill() returned unexpected error 1 in my vpn server there is no user name and password like this where do i get this let options: [String : NSObject] = [ "username": "vpnbook" as NSString, "password": "6hm7hcb" as NSString ]

the file client.ovpn have some keys where do i get this and all that its my doubts

sudarvizhi3055 avatar Jun 16 '20 07:06 sudarvizhi3055