diff --git a/roles/vpn/templates/mobileconfig.j2 b/roles/vpn/templates/mobileconfig.j2
index b22bfa8..6d54233 100644
--- a/roles/vpn/templates/mobileconfig.j2
+++ b/roles/vpn/templates/mobileconfig.j2
@@ -37,6 +37,8 @@
{% endif %}
InterfaceTypeMatch
WiFi
+ URLStringProbe
+ http://captive.apple.com/hotspot-detect.html
Action
@@ -47,6 +49,8 @@
{% endif %}
InterfaceTypeMatch
Cellular
+ URLStringProbe
+ http://captive.apple.com/hotspot-detect.html
{% else %}