Bypass VPN traffic to specific site.

Hi folks, is it possible to bypass VPN traffic for a specific website?

I found that it can be done via excludeRoutes in NEPacketTunnelNetworkSettings, but this array requires a list of IP addresses instead of domains.


Thank you!

If you’re working with a packet tunnel provider (or one of the built-in VPN transports) then the answer is, essentially, no. Packet-based VPN uses a destination IP address routing model, and thus you can only include and exclude traffic based on its destination IP address. Thus you can’t exclude a DNS name, at least in the general case, because other names might map to the same IP address.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

We have also encountered the same problem, have you solved it?


email: 97633475@qq.com

Bypass VPN traffic to specific site.
 
 
Q