barbayrak / vpnmanager Goto Github PK
View Code? Open in Web Editor NEWiOS Cocoa Framework for VPN Connection Wrapper
License: MIT License
iOS Cocoa Framework for VPN Connection Wrapper
License: MIT License
CocoaPods can't find VPNManager, Is there something wrong ?
I coulden't config it , I didn't realize what is the id (you wrote "UNIQUE ID") and whats groupName as well.
//Create your VPN Account and configurations
let vpnAccount = VPNAccount(id: "UNIQUE ID", type: VPNProtocolType.IKEv2, title: "TITLE SEEN IN SETTINGS", server: "IP HERE", account: "bd2147240ab2471d", groupName: "Group Name Of Your VPN", remoteId: "Remote IP Address(Same most of the time)", alwaysOn: true)
and I got following error :
"Configuration Invalid"
here is my config line:
var vpnAccount = VPNAccount(id: "1", type: VPNProtocolType.IKEv2, title: "TITLE SEEN IN SETTINGS", server: "xxx.xx.xxx.xxx", account: "xxxxx", groupName: "{My_BUNDLE_ID}", remoteId: "xxx.xx.xxx.xxx", alwaysOn: true)
and I config pass and secret code like below:
//Set your account password and secret
vpnAccount.passwordRef = "xxxxxx".data(using: .utf8)
//If you are using IPSec you can use this in order to set secret
vpnAccount.secretRef = """
MIIFQjCCAyqgAwIBAgIIeB6GOr0OS80wDQYJKoZIhvcNAQEMBQAwPzELMAkGA1UE
BhMCVVMxEzARBgNVBAoTClZQTiBTZXJ2ZXIxGzAZBgNVBAMTElZQTiBTZXJ2ZXIg
Um9vdCBDQTAeFw0xOTAxMjAyMDMwMzJaFw0yOTAxMTcyMDMwMzJaMD8xCzAJBgNV
BAYTAlVTMRMwEQYDVQQKEwpWUE4gU2VydmVyMRswGQYDVQQDExJWUE4gU2VydmVy
IFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDCDBZiI+BN
o2O1cwGiikcmj3P++Ce0n/7iVjJwEqex6J7mt9Ei3xRnEhJIOEglPJMURTGH61jw
......
QH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUHBH3UqueIcsxYc73oHc6qhe6
zQIwDQYJKoZIhvcNAQEMBQADggIBAIZBArrhE5MrA0i63is1bj6vlmpBfTIbA8AV
dTGdITDZcg+90jQoMqXaru1XBX/FNvIV9kydZdgezGE4B7mOngOP6XdJwESh/vdo
p7CXyyj9uByIlA70NizU+pTYeKequFvcxZYG99340SMxOl99mDdLFy8tkMQczLOA
jJlrz9CjiGo4Xsk1pxPnRb0qTLboen+vTukHrQAcUaaUySFF3e1q1xez1atF1wfr
7T3LyRJU5zvKD1izor0mA3/tnCZwHYKQ5Vgl2ZR/k4H+9/73F7rNUEhnYmK6aKeF
4pZgM9XFg5yfxfvZDEa4pLOKmWkGc6mOpyWuhNVotd9gG/YD2Sr8KCgyxKdmQFJp
g6cNWUGVHH+pE7R3kTku2WZjZjIUeAYZdU7sQyo+h6JvQPCaIj7YKIe8FsCpCBn1
7iEPuLIWxN4bGJtDbCxA/16YBEBBZ4mKYk51/v0YaLIrJhpqoyOXrS3QVXr9XoWC
Nx9iG39KzhCCsBT2aMDG5rc9O6KpVmD2xkr2VEq7S6NqI6/dA/49Sot9pBtDtBXc
U4Yqeart5YXLigwZ2cPOATEmv6SNIlp68eUVNK/sPg4gvdYbe6Or+0kBiScCKcH3
shfuLOjSTEIcedpQEy7bPttf8j64KZ4N7I9cut0Jelfww2K5QmNizytxgLBUQtad
zK6JxIWr
""".data(using: .utf8)
Hey @barbayrak
I'm having an issue while defining a delegate for the VPNManager.
let manager = VPNManager.shared
manager.delegate = self
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.