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

    OpenVPN - Times

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 600 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.
    • hugoeyngH
      hugoeyng
      last edited by

      Hello.

      How can I determine time ranges when a user can or cannot stay connected to the VPN?

      1 Reply Last reply Reply Quote 0
      • noplanN
        noplan
        last edited by noplan

        hook me up on this one !
        out of the blue:
        time based firewall rule (allow traffic from --> to time) ?

        See Dokumentation here
        https://docs.netgate.com/pfsense/en/latest/firewall/firewall-rule-schedules.html

        hugoeyngH 1 Reply Last reply Reply Quote 0
        • hugoeyngH
          hugoeyng
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • hugoeyngH
            hugoeyng @noplan
            last edited by

            @noplan Thank You for the answer.
            A time based firewall rule will cause effect over all users.
            I would like to allow or not each user indvidually.

            1 Reply Last reply Reply Quote 0
            • Y
              YannTKO
              last edited by YannTKO

              Hello,
              For my kids, I gave static IP for their devices, created aliases and made a rule with a schedule.

              Edit: I'm using VLAN (with DHCP server) and I'm talking about ISP VPN connection. Not pfsense as VPN server.

              Netgate SG-3100 23.09.1
              Unifi UAP: 1x FlexHD + 2x nanoHD + 1x AC-IW | Unifi USW: 1x16-PoE Gen2 + 4x US-8-60W | Cloudkey Gen2 Plus
              1 x NUC8i7BEH 32Go - ESXI 8 (Pfsense + many VM)

              1 Reply Last reply Reply Quote 0
              • noplanN
                noplan
                last edited by

                @hugoeyng
                my suggestion a quick n dirty one

                A)
                use in openVPN
                d60e993d-cbed-4236-83d2-ed5bc436c142-grafik.png

                B)
                follow this post to assign static IPs for your vpn-clients
                noPlans qNd answer in post on this formum (https://forum.netgate.com/topic/152171/openvpn-and-static-ip-for-all-clients/8)

                C)
                put these assigned IP adresses into an alias

                D)
                create a firewall rule with this new alias

                E)
                use the information from the documetation in this post to schedule the rule
                link here --> https://docs.netgate.com/pfsense/en/latest/firewall/firewall-rule-schedules.html

                i will test it today, and keep u posted,
                if anyone got a better idea lets share and improve

                nP

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