Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    block internet until the user logs into open vpn.

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 2 Posters 620 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      querichelli55
      last edited by

      Hello guys.

      There is a way to block internet navigation until user logs into OpenVPN? We're in a pandemic situation and I need to force all employees to connect in openvpn.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        I take it these users are remote? What OS(es) are they using - you control the device they are using, ie they do not have local admin rights?

        Or are these users behind pfsense - and you want to block them from using internet unless they connect to vpn running on pfsense?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        Q 1 Reply Last reply Reply Quote 0
        • Q
          querichelli55 @johnpoz
          last edited by querichelli55

          @johnpoz they're remote, using windows10.
          I'll set up a VPN in PfSense cause I have a monitoring software running in my business network, so I can check what my employees are doing.
          But, I need a way to force them to connect in VPN before they can navigate on internet, or force OpenVPN to automatically connect when turning on Windows.

          That's needed because my monitoring software only works on lan.

          I prefer to block navigation outside VPN, but if its not possible, the second option is ok too.

          Can you help me with this doubt?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Well that question would prob be better suited for a windows forum to be honest.. You prob have better luck with something like the cisco anyconnect sort of vpn that can be forced to be always connected sort of thing.

            openvpn can be run as a service and I guess always be set to run.. But not sure about forcing it where the user couldn't stop it, especially if they have admin rights.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • Q
              querichelli55
              last edited by

              hmm ok, thank you.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.