Timac / VPNStatus

VPNStatus, a replacement for macOS builtin VPN Status
https://blog.timac.org/2018/0719-vpnstatus/
MIT License
221 stars 31 forks source link

IgnoredSSIDs does not work #24

Open bmansvk opened 1 year ago

bmansvk commented 1 year ago

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.

Timac commented 1 year ago

Thanks for the bug report!

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