Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IgnoredSSIDs does not work #24

Open
bmansvk opened this issue Jun 7, 2023 · 1 comment
Open

IgnoredSSIDs does not work #24

bmansvk opened this issue Jun 7, 2023 · 1 comment

Comments

@bmansvk
Copy link

bmansvk commented Jun 7, 2023

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
Copy link
Owner

Timac commented Jun 11, 2023

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:

CWInterface *wifi = [[CWWiFiClient sharedWiFiClient] interface];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants