I'm using NEVPNProtocolIKEv2 to configure NEVPNManager:
func connect(userName: String, passwordReference: Data, serverAddress: String) async throws {
let vpn = NEVPNManager.shared()
try await vpn.loadFromPreferences()
let pc = NEVPNProtocolIKEv2()
pc.serverAddress = serverAddress
pc.authenticationMethod = .none
pc.username = userName
pc.passwordReference = passwordReference
pc.useExtendedAuthentication = true
vpn.protocolConfiguration = pc
vpn.isEnabled = true
try await vpn.saveToPreferences()
try await vpn.loadFromPreferences()
try vpn.connection.startVPNTunnel()
}
Is there a parameter I can modify so that the IP address of the client appears different every few minutes?
Is there a parameter I can modify so that the IP address of the client appears different every few minutes?
Not on the client side. When using a built-in VPN transport like IKEv2, the IP address is controlled by the VPN server. You’ll have to see if your VPN server has a way to force regular IP address renegotiations.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"