Skip to content

Trusted Network Detection #21

Open

Description

@PeterMcCaldon-aps

the VPNutil gives us the option to ignore SSID's but it would be nice if it could also ignore specific network ranges or ideally if it detects an internal resource (ping or https connection)

Activity

  1. Timac commented on Aug 12, 2022

    @Timac
    Owner

    Interesting. I assume that you never want to connect to the VPN if a ping to a resource success or fail?
    Do you have a more precise example?

  2. PeterMcCaldon-aps commented on Aug 12, 2022

    @PeterMcCaldon-aps
    Author
  3. Timac commented on Aug 12, 2022

    @Timac
    Owner

    @PeterMcCaldon-aps Thanks for the clarification. Such a feature could be implemented in VPNStatus. As a first idea, I would most likely change -(BOOL)shouldPreventAutoConnectOnCurrentSSID to return the BOOL asynchronously in a block. The block would then asynchronously execute [neService connect]; if the resource is available.

    The function shouldPreventAutoConnectOnCurrentSSID could be expanded to not only check for the SSIDs to be ignored but also test if the resource is available. Finally a preventConnectIfResourceDetected function containing the list of resources to check could be added similar to ignoredSSIDs:

    -(NSArray<NSString *> *)ignoredSSIDs
    {
        NSString *ignoredSSIDsString = [[NSUserDefaults standardUserDefaults] stringForKey:kServiceIgnoredSSIDsKey];
        return [ignoredSSIDsString componentsSeparatedByString:@","];
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions