OpenVPN ignores connected WiFi and uses cellular data
Posted: Mon Aug 12, 2013 4:19 am
I discovered a problem about the VPN on demand / auto reconnect thing (not sure it is OpenVPN or iOS problem)
The VPN seems to ignore the connected Wifi connection, and keep using cellular data.
I discovered this by connecting my iPhone 5 with LTE to a super slow wifi network, and using auto-connect OpenVPN profile, which also routes all my iPhone traffic via the VPN server.
However, despite the super slow wifi network, the speed test (use speedtest app) of my iPhone 5 still reaches the LTE level, which is quite impossible. The only reason is that it is still using my LTE connection while I am connected to Wifi.
It happen when iOS / OpenVPN "auto reconnects" the VPN, this problem does not appear if I trigger the connection myself in OpenVPN or iOS Settings app.
The detail testing steps are as follow:
Pre-requisite:
a) OpenVPN server or client profile will route all traffics via VPN server: push "redirect-gateway" or redirect-gateway in client
b) OpenVPN Connect in iOS will reconnect itself
c) A wifi network with large speed difference with your iPhone
i) either a very slow one (ADSL connection)
ii) or a very fast one (Optic Fiber one which goes over 100Mbps and a fast router)
Testing steps:
1) Connect iPhone to WiFi
2) Connect iPhone to OpenVPN server
3) Do the speed test (take note that it is the WiFi speed)
4) Open Settings app, switch off WiFi
5) Switch on WiFi, connect back to the same WiFi network
6) Wait VPN auto-connect itself
7) Do the speed test again (take note that it is not the WiFi speed this time, it is your cellular data speed!)
The VPN seems to ignore the connected Wifi connection, and keep using cellular data.
I discovered this by connecting my iPhone 5 with LTE to a super slow wifi network, and using auto-connect OpenVPN profile, which also routes all my iPhone traffic via the VPN server.
However, despite the super slow wifi network, the speed test (use speedtest app) of my iPhone 5 still reaches the LTE level, which is quite impossible. The only reason is that it is still using my LTE connection while I am connected to Wifi.
It happen when iOS / OpenVPN "auto reconnects" the VPN, this problem does not appear if I trigger the connection myself in OpenVPN or iOS Settings app.
The detail testing steps are as follow:
Pre-requisite:
a) OpenVPN server or client profile will route all traffics via VPN server: push "redirect-gateway" or redirect-gateway in client
b) OpenVPN Connect in iOS will reconnect itself
c) A wifi network with large speed difference with your iPhone
i) either a very slow one (ADSL connection)
ii) or a very fast one (Optic Fiber one which goes over 100Mbps and a fast router)
Testing steps:
1) Connect iPhone to WiFi
2) Connect iPhone to OpenVPN server
3) Do the speed test (take note that it is the WiFi speed)
4) Open Settings app, switch off WiFi
5) Switch on WiFi, connect back to the same WiFi network
6) Wait VPN auto-connect itself
7) Do the speed test again (take note that it is not the WiFi speed this time, it is your cellular data speed!)