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

    Time schedule for captive portal

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 2.0k 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.
    • H
      hendasa
      last edited by

      Hello,
      It is my first post in this forum, and thanks to every one for the help.
      I am using pfSense in work and I would like to allow some hosts only  to use internet between 12h00 and 13h00.
      I would like to know if this option is possible in captive portal.
      if captive portal is service, I would like to know the command line to activate and deactivate it, then I can use cron to do this automaticly.
      regards.

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        You can do this by using radius as an authentication backend rather than the built in users.

        1 Reply Last reply Reply Quote 0
        • H
          hendasa
          last edited by

          Thanks for your help;
          I installed FreeRadius 1.1.8 package,
          I set up the online time for a  test  like ! "WK1200-1300", when I tested, I remarked that access to Internet is only allowed betwen 12h00 and 13h00, but if a user validated his access during that time, he can continue access to internet even after 13h00.
          Is there any solution to cut the access at 13h00
          thanks.

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            @hendasa:

            Thanks for your help;
            I installed FreeRadius 1.1.8 package,
            I set up the online time for a  test  like ! "WK1200-1300", when I tested, I remarked that access to Internet is only allowed betwen 12h00 and 13h00, but if a user validated his access during that time, he can continue access to internet even after 13h00.
            Is there any solution to cut the access at 13h00
            thanks.

            Hi,

            first you should use freeradius2 package instead because it is actively maintained and it supports much more features than freeradius1.
            second if you choose "Wk" then this is from monday till friday. Try with "Al1200-1300" which as far as I know means "every day".
            third: If you do not want to disable CP but blocking internet is enough the just create a shedule and set this shedule for a firewall rule which blocks/allows traffic.

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