开发者

Site to Site VPN detection iPhone/iPad

开发者 https://www.devze.com 2023-03-02 11:57 出处:网络
In our app, we need to detect if the开发者_运维技巧 user is connected to VPN network or not. When the VPN is configured on the iPhone or iPad, we are able to detect it using the reachability API kSCNe

In our app, we need to detect if the开发者_运维技巧 user is connected to VPN network or not. When the VPN is configured on the iPhone or iPad, we are able to detect it using the reachability API kSCNetworkReachabilityFlagsTransientConnection flag. However, how do we detect if the iPhone or iPad is connected to a site-to-site VPN. In this case, no configuration will be required on the client side as the VPN connection exists between two sites and the iPhone/iPad is just behind one of the site. Please suggest if you know of any solution for this.


Hetal, do you have a way to look at their source IP address? If so, ensure you have a current list of your VPN address blocks and check to see whether the device source IP is in the block.

0

精彩评论

暂无评论...
验证码 换一张
取 消