Time schedule for captive portal



  • 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.



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



  • 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.



  • @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.


Log in to reply