]> git.ipfire.org Git - thirdparty/strongswan.git/commit
android: Install a blocking TUN device until the VPN is established
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Jun 2018 15:14:17 +0000 (17:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 3 Jul 2018 09:31:39 +0000 (11:31 +0200)
commitfe1f143277256ca4e0d3a22d860cb27e6aa50dc5
tree69b4d3ae14d7d5e506afd9ba2ca5a9eb23eed350
parent99cc2d82d4c64947c0ae938f0479f0356ff2f355
android: Install a blocking TUN device until the VPN is established

It's reinstalled when reconnecting (or during error recovery) and
eventually uninstalled after disconnecting.

Only on Android 5+, otherwise we'd block our fetcher (and Android 4.4 is
stupid in regards to overlapping TUN devices anyway).

Note that Android 8's blocking feature blocks everything that passes by
the VPN, so this only works when tunneling everything (i.e. neither subnets,
nor apps can be excluded from the VPN if that feature is enabled).
src/frontends/android/app/src/main/java/org/strongswan/android/logic/CharonVpnService.java