Blokada stops other VPNs when opened - Swift blokada

Steps to reproduce

  1. Verify Blokada is not active and not in the list of recents (i.e. not in memory)
  2. Start any VPN
  3. Open Blokada

Expected behaviour

Blokada opens, the other VPN stays active

Actual behaviour

The other VPN stops and no VPN is started (not even Blokadas)

Configuration

  1. Blokada version 4.4.4

  2. Device model OnePlus 3T

  3. Android version / ROM OxygenOS, Android 9

Asked Oct 26 '22 11:10
avatar Ch4t4r
Ch4t4r

11 Answer:

Blokada uses the VPN API. Because the underlaying operation system (Android) allows only one app to utilise the VPN API, one of them will crash. Expected behaviour.

1
Answered Nov 26 '19 at 18:18
avatar  of peterroth
peterroth

Yeah, but there is no need for Blokada to try to start a VPN if it is opened without clicking on the activate button - especially if it then goes ahead and doesn't even really start itself. Karol asked me to create an issue here.

1
Answered Nov 26 '19 at 18:20
avatar  of Ch4t4r
Ch4t4r

I can confirm this happens to me too. For the past month or so, I've been wondering why both my OpenVPN and WireGuard clients for my self hosted VPN servers would seemingly disconnect randomly.

It turns out that simply dragging my notification shade down to reveal the Blokada quick tile is enough to trigger the disconnection of the currently running VPN client. I figured it out when I noticed that the quick tile was rapidly changing from "Active" to "Disabled" whenever I pulled the notification shade down even though Blokada itself was not running.

Samsung Galaxy S10+ running OneUI 1.1. November security patch

1
Answered Nov 27 '19 at 18:34
avatar  of mattbxd
mattbxd

This is not a bug, you can only have one VPN (proxy) running at a time, and Blokada is built like a proxy (even if it is not tunneling the traffic through another IP-server).

You can either use the built-in feature to tunnel traffic (VPN) of Blokada (not free..) Similar solutions (AdGuard) work in the same way, and also won't allow other VPNs from running.

1
Answered Dec 24 '19 at 00:38
avatar  of eladkarako
eladkarako

The VPN tunnel shouldn't be claimed at the app start up, only when ad filtering or Blokada Tunnel is activated. However it seems it isn't so, @eladkarako

1
Answered Dec 24 '19 at 04:29
avatar  of peterroth
peterroth

Thanks @peterroth, I can successfully have Blokada working in the background (setting: keep-alive icon - ON, ad-blocking - OFF), while another VPN, runs. As soon as I enable Blokada ad-blocking the little 🔑︎ icon from the previous VPN connection is removed, and after few moments the 🔑︎ icon returns (for Blokada) as expected.

as for the reversed order (launching Blokada after another VPN connection has established), I haven't been disconnected, until I've activated the Blokada's ad-blocking.

I'm setting Blokada to have "keep alive icon", and "aggressive start", but turned off the "blocking on the start", this way I can quickly switch from Blokada to another VPN by switching ON/OFF Blokada's ad-blocking along (it keeps on running in the background).

Have you tried to make sure the ad-blocking is set to be manually activated?

Ps. Although on my device Samsung J400F Android 9, the VPN implementation seems OK (set by demand).

Your device or operation-system version (under Android 7), might request the VPN exclusively, due to this permission (android manifest):

        <service android:name="tunnel.Service" android:permission="android.permission.BIND_VPN_SERVICE">
            <intent-filter>
                <action android:name="android.net.VpnService"/>
            </intent-filter>
        </service>

As far I can remember binding android.net.VpnService on older versions of Android brings up the VPN dialog everytime, disconnecting the previous connection immediately, so it might be a difference in implementation in different Android versions.

1
Answered Dec 24 '19 at 10:03
avatar  of eladkarako
eladkarako

It's kinda hard to read trough your comment as I don't seem to understand how most of it is related.

Binding the VPN service is required to even be able to run a VPN. It does not bring up the dialog automatically, it has to be started from the Intent returned from VpnService.prepare(context). Also Android 9 is > Android 7.

1
Answered Dec 24 '19 at 10:13
avatar  of Ch4t4r
Ch4t4r

nice Post

https://dailykeygen.com

1
Answered Oct 03 '22 at 08:10
avatar  of Maira Rafiq
Maira Rafiq

<a href="https://dailykeygen.com/droidkit-crack/" > https://dailykeygen.com/droidkit-crack/ </a>

Amazing site

1
Answered Oct 03 '22 at 08:10
avatar  of Maira Rafiq
Maira Rafiq

https://dailykeygen.com/

Amazing site

1
Answered Oct 03 '22 at 08:10
avatar  of Maira Rafiq
Maira Rafiq

Nice Post

<a href="https://crackvilla.net/wireshark-crack/">Wireshark Crack</a>

<a href="https://crackvilla.net/firefox-crack/">Firefox Crack</a>

<a href="https://crackvilla.net/driver-magician-lite-crack/">Driver Magician Lite CracK</a>

<a href="https://crackvilla.net/vivaldi-crack/">Vivaldi Crack</a>


1
Answered Oct 26 '22 at 11:10
avatar  of ddgb xyz
ddgb xyz