• images from file manager not showing

    12
    0 Votes
    12 Posts
    1k Views
    GertjanG

    @kiokoman said in images from file manager not showing:

    of course not there is a specific section on the Captive portal to load images,

    Right.
    It's here :

    19678267-ca36-41e5-8f58-f2bd9b96c538-image.png

    Check out this :

    d55e67a6-8f49-4909-a7ec-a669a89cb0fc-image.png

    Got it ? You see the first "check" : "Use custom captive portal page
    Enable to use a custom captive portal login page" ?

    It's not clear if @exofio is using the default, build in login page - which has an optional replaceable background and logo image, or if he is using a self-made login 'html' page.

  • 0 Votes
    2 Posts
    2k Views
    F

    I might say obvious things, but did you have a look to the documentation ? It has been updated recently

    https://docs.netgate.com/pfsense/en/latest/captiveportal/captive-portal-configuration.html

  • SAML Authentication

    4
    0 Votes
    4 Posts
    2k Views
    GertjanG

    Well, it seems supporting LDAP - which is supported by pfSense.

    Never heard from "shibboleth" related to pfSense ....
    A forum or Google search confirms.

    Edit : there is one : https://forum.netgate.com/topic/60524/cp-authenticating-to-idp-via-saml !

  • A couple of usability issues come to mind

    6
    0 Votes
    6 Posts
    734 Views
    GertjanG

    I agree totally.

    People that use devices to connect to the Internet are aware of the fact that an capital X and small case x are not always the same.

    I know - again : we as a company still receive, ones in a while, mails in all capitals - or all lower case. Better yet : check out this forum, you will find the same thing.

    Btw : forcing whatever is entered as a user name to capital ? No big deal.
    Find line 216 in /usr/local/captiveportal/index.php

    Here it is :

    $auth_result = captiveportal_authenticate_user($user, $passwd, $clientmac, $clientip, $pipeno, $context)

    Surround $user with "strtoupper" like this :

    $auth_result = captiveportal_authenticate_user(strtoupper($user), $passwd, $clientmac, $clientip, $pipeno, $context)

    This will force whatever the user entered, to capitals.

    True : when pfSense updates, you will have to redo this edit - ones or twice a year.
    A small shell script that starts when pfSense reboots could do this for you.

  • Images in the captive portal are blocked

    11
    0 Votes
    11 Posts
    2k Views
    E

    thank you. i am adding the school's default background.

  • (SOLVED) PFS 2.4.4 Captive Portal not auto redirecting

    5
    0 Votes
    5 Posts
    631 Views
    S

    @Gertjan separating LAN and WAN works! great Sir! thank you!

  • Logo and Background images missing

    4
    0 Votes
    4 Posts
    894 Views
    GertjanG

    @exofio said in Logo and Background images missing:

    i cant upload due to img limit size 10mib.. what to do?

    Serious ?
    An index landing page that weights over 10 mega ???
    If you really have to, put the videos, images and other big resources in separate files, and link to them from the main index login page.
    Note : None of the files can be bigger then 10 M.
    Also : everything you upload will be stored into the config.xml file.

  • Caching image on external captive portal page

    5
    0 Votes
    5 Posts
    4k Views
    E

    i uploaded the file to var/db/... what code will i use to call it on html file?

  • (SOLVED) Captive portal looping

    4
    0 Votes
    4 Posts
    1k Views
    awebsterA

    @Gertjan said in Captive portal looping:

    The 'login' page and nearly identical 'login-error' page are not stored in /var/db/cpelements.

    Thanks for the tip, that was indeed the source of the problem. An older login page was uploaded (at some point in the past) to the captive portal error page.

  • Can't generate Vaucher

    5
    0 Votes
    5 Posts
    575 Views
    P

    @jimp I found the problem, in the Voucher config page, I entered the server ip, the port and the username and password. And it gave me those errors.
    But if I let them blank, the Local Database being on the localhost, everything work perfectly now.

    Thanks

  • One account ONLY for one device on the captive portal

    2
    0 Votes
    2 Posts
    514 Views
    F

    @ontzuevanhussen said in One account ONLY for one device on the captive portal:

    one account for one device, but does not disconnect the account that was previously logged.

    not sure i quite understand...you mean you want to allow only one login per user, and block additional logins attempts using an error page?

    if yes :

    pfSense does not natively support this feature. since you seems to be using freeradius, you could nevertheless add some freeradius setting (like simultaneous-Use : 1) to prevent an user to log in more than once. keep in mind that this kind of freeradius setting is not compatible with "reauthenticate users" for obvious reasons...

    also,

    independently of "is this technically possible", you should not do this. pfSense is using a MAC address&IP address couple to identify an user. for privacy reasons, a device may change them randomly over time. once its MAC or IP has changed, a device will face the login page again but won't be able to login anymore...is that really what you want?
  • Change Notification on Captive Portal Login Page

    3
    0 Votes
    3 Posts
    881 Views
    ontzuevanhussenO

    @free4 Ok, I found it. Thank you so much friend..
    Annotation 2019-08-18 163737-.jpg

  • How To Configure FreeRadius on pfsense with Unifi AC Pro?

    2
    0 Votes
    2 Posts
    947 Views
    NogBadTheBadN

    @ontzuevanhussen

    What are you trying to do?

    Have you registered the aps in freeradius or the controller, it needs to have the aps registered.

    Try running rasdniff -x from the pfSense cli, it might give you a clue.

    https://docs.netgate.com/pfsense/en/latest/captiveportal/using-captive-portal-with-freeradius.html

  • No internet access when user restarts device after connected to CP

    10
    0 Votes
    10 Posts
    910 Views
    F

    @ssattannae you are welcome

    if after further testing you still think that the patch is really fixing your problem...then don't hesitate to make a thumbs up on https://github.com/pfsense/pfsense/pull/4042 and/or make a small comment "friendly bump, this pull request resolve a very impactful problem..."

    The patch and pull request are ready since a while (2.4.4-p2)...the current stable release is 2.4.4-p3 and the pull request is not merged yet...

  • [HOWTO] Captive portal + FreeRADIUS + local MySQL user friendly single step

    154
    0 Votes
    154 Posts
    107k Views
    GertjanG

    @Nova9 said in [HOWTO] Captive portal + FreeRADIUS + local MySQL user friendly single step:

    Maybe the .js files aren't loading properly?

    Use the right button of your mouse.
    Every browser will give you the possibility to see the 'html source of the web page.
    You'll be seeing in a split second if resource files like css and js files are not load, most of the time because they have another file on the system name.

    Btw : The subject "Captive portal + FreeRADIUS + local MySQL user friendly single step:" is a rather big project.
    Nothing something that can be pulled of 'ASAP'.
    Using an old pfSense version gives you a new feature : you created a security time bomb.

  • Radius or voucher authentication on same captive portal.

    7
    0 Votes
    7 Posts
    3k Views
    T

    @Trel said in Radius or voucher authentication on same captive portal.:

    Here's an example multi-method login page.
    It's probably overkill for anything you're trying to do though.

    multicappor.txt

    Can I please have a copy of the code?

  • freeradius just stop working

    8
    0 Votes
    8 Posts
    2k Views
    K

    i had two different urls in, one disable the freeradius and the other did not. i used both of them and that was the result i observed. with the url that is not disabling the radius i am also redirected to the redit URL.

  • CP with Freeradius and MySQL - fixed number of concurrent logins per user

    Locked
    6
    0 Votes
    6 Posts
    6k Views
    C

    @jhochwald

    @jhochwald said in CP with Freeradius and MySQL - fixed number of concurrent logins per user:

    @EMWEE:

    Anyone got a solution for this problem? I cant figure it out.

    I need a solution were a username can use 2 MAC's maximum. So one user can register his phone and laptop on the same account.

    The Solution is easy:
    Open /usr/pbi/freeradius-amd64/etc/raddb/sql/mysql/dialup.conf (or i386 if you run this) and search for the following:

    #simul_count_query = "SELECT COUNT(*) \                             #FROM ${acct_table1} \                             #WHERE username = '%{SQL-User-Name}' \                             #AND acctstoptime IS NULL"

    Change it to:

    simul_count_query = "SELECT COUNT(*) \                             FROM ${acct_table1} \                             WHERE username = '%{SQL-User-Name}' \                             AND acctstoptime IS NULL"

    As you can see it works fine:

    [2.1.5-RELEASE][root@hotspot.test.lan]/root(24): radtest USER PASS 172.16.1.1:1812 0 Start1234 Sending Access-Request of id 199 to 172.16.1.1 port 1812 User-Name = "USER" User-Password = "PASS" NAS-IP-Address = 192.168.1.1 NAS-Port = 0 Message-Authenticator = 0x00000000000000000000000000000000 rad_recv: Access-Reject packet from host 172.16.1.1 port 1812, id=199, length=68 Reply-Message = "\r\nYou are already logged in - access denied\r\n\n" [2.1.5-RELEASE][root@hotspot.test.lan]/root(25):

    Please note: You must configure the Accounting Table in Service/FreeRADIUS: SQL
    If you do not use your SQL Server for, the feature will not work.

    P.S.: I configured it on a group base, but it works also per user.

    Hi, i cant find this path /usr/pbi/freeradius-amd64/etc/raddb/sql/mysql/dialup.conf (or i386 if you run this)
    i am running pfsense 2.4.4-RELEASE-p3 (amd64)
    i am looking to limit the logins per user to 2, without a third login kicking out the first one.
    kindly guide me through please.

  • Captive Portal Hard Limits

    20
    0 Votes
    20 Posts
    2k Views
    T

    @Gertjan Great! I think I saw that code somewhere.

    Will start with this one. Thanks a lot @Gertjan.

    If anyone has other ideas that can make this happen, please do add some lines here :)

  • Captive Portal Upload and Download Limit

    2
    0 Votes
    2 Posts
    156 Views
    GertjanG

    Put them on another LAN/OPTx interface ?!
    Or, use FreeRadius, which gives a per user upload and download limit - although I guess the MAC added users all still handled by the captive portal main setting. I never tried this.

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.