VPNStatus icon indicating copy to clipboard operation
VPNStatus copied to clipboard

IgnoredSSIDs does not work

Open bmansvk opened this issue 2 years ago • 1 comments

I am using VPNStatus version 1.4 with following config:

% defaults read org.timac.VPNStatus
{
    AlwaysConnectedRetryDelay = 30;
    IgnoredSSIDs = "MyWifi";
    IgnoredVPNs = "Work,Little Snitch,Tailscale Tunnel";
    Services =     (
                {
            AlwaysConnected = 1;
            Identifier = "468EFCE5-A03A-46DB-9700-4E05D92F342C";
        }
    );
}

The test procedure:

  1. connect to OtherWifi -> VPN is connected
  2. switch to MyWifi -> VPN still connected Or:
  3. disconnect from Wifi -> VPN disconnected, no other connection available
  4. connect to MyWifi -> VPN connected

Running Ventura 13.4 and IKEv2.

bmansvk avatar Jun 07 '23 18:06 bmansvk

Thanks for the bug report!

  • Regarding you steps 1 and 2: If you switch from one WiFi (OtherWifi) where the VPN is connected to another WiFi (MyWifi), the VPN won't automatically be disconnected. Do you have in practice this use case with 2 different WiFi?

  • For the steps 3 and 4, that is indeed not the expected behavior. If you are not connected to the WiFi and connect to "MyWifi", VPNStatus shouldn't automatically connect to the VPN. I just tried to reproduce this issue and can't reproduce it.

Note that the SSIDs are case-sensitive, can you please double-check that you used the correct SSID? Alternatively, you could try to print wifi.ssid to see what is the WiFi SSID seen by VPNStatus: https://github.com/Timac/VPNStatus/blob/8fe60978d8647caaecd2f26462200f07819ba96e/Common/ACConnectionManager.m#L233

Timac avatar Jun 11 '23 14:06 Timac