• Captive Portal with LDAP Active Directory

    9
    0 Votes
    9 Posts
    2k Views
    A

    @ahsunh Thank you for the reply Sir. I already solve the problem. Thanks again. God bless!

  • LDAP login + User Group

    3
    0 Votes
    3 Posts
    850 Views
    LinkPL

    @aspiringnetworkadmin You should probably start your own thread instead of hijacking @beavermml's thread.

  • Pfsense 2.6.0

    Moved
    1
    0 Votes
    1 Posts
    463 Views
    No one has replied
  • Voucher sync to branch offices

    1
    0 Votes
    1 Posts
    444 Views
    No one has replied
  • Captive Portal + LDAP Implementation

    5
    0 Votes
    5 Posts
    1k Views
    A

    @pierrelyon Sir may I ask what version of pfsense are you using? I also have the same issue. I mean I have ADDS LDAP on my server and bind it on my pfsense. Then implement Captive portal user authentication with ADDS LDAP but it won't work. I am using pfsense 2.6.0.

    If you are using v2.6.0, may I know Sir what did you do to make it work? TIA!

  • PfSense 2.6.0 Captive Portal with AD LDAP

    1
    0 Votes
    1 Posts
    499 Views
    No one has replied
  • Differentiate between authenticated user and non authenticated.

    1
    0 Votes
    1 Posts
    694 Views
    No one has replied
  • New session doesn't create unique Acct-Session-Id

    5
    0 Votes
    5 Posts
    1k Views
    G

    oh my logic was poor - all the users sessions will have that same 'unique' ID.

    Not sure it matters though.

  • Changes to Captive Portal in 2.6.0?

    5
    0 Votes
    5 Posts
    1k Views
    A

    @dansgul Hi Sir sorry to interrupt.

    We have the same problem Sir and I already apply 'Fix Captive Portal handling of non-TCP traffic after login' the Reboot my pfsense but still don't work.

    This is my case Sir.

    "I really need help with my issue. I have a Active Directory LDAP and I bind it on my pfsense(Working good) then I configure my Captive Portal on my pfsense.

    My problem is after I login my user credentials(LDAP AD) I can't access internet. BUT if I disable my Captive Portal my internet is working good and I can browse any sites.

    P.S. My DNS and DCHP is on my window server."

  • Captive Portal Setup in PfSense With LDAP

    1
    0 Votes
    1 Posts
    390 Views
    No one has replied
  • Captive Portal certificate issues

    14
    0 Votes
    14 Posts
    2k Views
    GertjanG

    @rm said in Captive Portal certificate issues:

    I might be out of luck.

    You have a certificate, so you have( you rent ) a domain name.
    Depending on the registrat you have, you can use the acme.sh pfSense package to obtain a domain name for your portal https access : no more need for Comodo, no more need to install the cert each year.

    Let's say you domain name is "my-network.tld".
    use acme to ask for a certificate with these two SANs :
    pfsense.my-network.tld
    portal.my-network.tld

    Now you can use this cert for the GUI access, and the captive portal access.
    I presume you access your captive portal from 192.168.2.0/24 and this interface will got grant access to the pfSEnse GUI. A captive portal 'should' be using its won interface, and this should not be LAN ( It is possible, true )
    The standard LAN 192.168.1.0/24 has access to the pfSEnse GUI.

    Un check OCSP stapling ( before you request a cart ) and issue solved.

    @rm said in Captive Portal certificate issues:

    MY test site seems accessible so hopefully the CA hosts above will be reachable

    Be careful. OSCP requests from a browser are cached by the browser. So when it seems to work, the info used was available locally. When the cache times out, the request is made again.

  • External login page authentication

    4
    0 Votes
    4 Posts
    898 Views
    GertjanG

    @guntery

    Like https://www.youtube.com/watch?v=RS0nMVxPznY ?

    It's not as simple as the classic local auth with the build in captive portal web server.
    I've tried it ones, long time ago, just to see how it works and if I could make it work.

    See also here : https://forum.netgate.com/topic/137979/what-happened-to-pre-authentication/2

  • Minor error

    2
    0 Votes
    2 Posts
    720 Views
    jimpJ

    Looks wrong to me but code in that area is already being overhauled significantly and is going to be irrelevant soon, so it may be moot.

  • Captive Portal stopped working suddenly

    8
    0 Votes
    8 Posts
    1k Views
    GertjanG

    @michmoor said in Captive Portal stopped working suddenly:

    .... for that.

    Not needed. And ok anyway.

    @michmoor said in Captive Portal stopped working suddenly:

    but the symptoms are the same as others reported

    Just for me, to check, to what forum messages are you referring to ?

    What you can do at any time if you suspect an issue :
    Don't reboot yet.

    Inspect with 'ipfw' the tables guestwifi_auth_up and guestwifi_auth_up
    Every MAC + IP must correspond with this list :

    aa7fb9cd-2abe-43a2-91ef-044990b9c5d9-image.png

    If you see in the GUI a connected client that is not present in the two ipfw tables, there is an issue.

    @michmoor said in Captive Portal stopped working suddenly:

    I did have the option "Preserve users database" checked.

    This means that, upon boot, the list ( the data base file where all the connected users are stored )is used to create the corresponding entries in the two tables guestwifi_auth_up and guestwifi_auth_up.
    At that moment, the devices using their MAC, and the IP, can pass.
    If, for example, the device changed it's IP, well, the, yeah, it's blocked. But the client should be able to login again.

    @michmoor said in Captive Portal stopped working suddenly:

    Once I unchecked that and rebooted it

    This is what was the default behaviour in the past.
    Upon boot, the ipfw tables guestwifi_auth_up and guestwifi_auth_up. are empty, and the "connected users database" ( this file : /var/db/captiveportalcpzone1.db, an PHP SQLite file ) is reset to zero (zero file length ).

    Btw : please confirm : You have installed the System_patches pfSense package, and activated the path I mentioned above ?
    If not, pfSense 2.6.0 (and CE probably) is pretty broken. And not for the last days or so, but since you upgraded to 2.6.0 or 22.01.
    I do think you did, as :

    @michmoor said in Captive Portal stopped working suddenly:

    00999 1719125 469279395 allow tagged 1

    Looks like you did, but I'm not sure.

    Also : if everything was working fine before, and nothing changed (no major upgrades) then the issue is most probably 'not pfSense' or the settings. Something else changed.

  • Captive portal Radius Mac authentication

    6
    0 Votes
    6 Posts
    2k Views
    GertjanG

    and, update also pfSense itself, it' "2.6.0" these days.

    When done, see this thread : https://forum.netgate.com/topic/171351/needed-configuration-for-captive-portal-mac-authentication-using-freeradius-macs-tab/2?_=1649259637873 which looks like your question "Needed Configuration for Captive portal MAC Authentication using Freeradius MACs tab".
    I'm not sure that what has been said over there is also valid for old version like 2.5.2.
    Maybe it is. Maybe not.

  • 0 Votes
    3 Posts
    2k Views
    D

    @danicavini
    Thanks, i will try it !

  • 0 Votes
    3 Posts
    960 Views
    L

    @gertjan Thanks for the reply, I know this is a old version... We have a quite long qualification process

    I have already tried the radiusd -X some time ago but it was so verbose that I didn't find anything usable. I will give it another go and continue searching for a fix

    Thank you again !

  • How tracking a user

    2
    0 Votes
    2 Posts
    830 Views
    GertjanG

    @kapvcop said in How tracking a user:

    for example, User, Mac-address xxx, on that date, connected to the service

    Go have a look at Status > System Logs > Authentication > Captive Portal Auth

    @kapvcop said in How tracking a user:

    I don't know if it is possible, for example, to force the person to use his email to validate her entry

    pfSense permit you to create your own login page, a html file that can contain also PHP.
    Store the email as the :

    <input name="auth_user" type="text">

    so the mail will also get logged.

    Be aware : IPs can be forged, like the MAC, and very often people don't type in their email address correctly, or use something else ;)

    edit :

    There is a way to validate the email address.
    Make your own login page ( the "Portal page contents" - see Captive portal settings), and ask for the mail. Hide the password on this page so the user can't enter one except his mail address. When the user validates, the login will fail, and the error login page ( "Auth error page contents" ) will get shown.
    On this page the portal user sees the email again, and can now enter a challenge code.

    I advise you to use the FreeRadius page, so you can store the email and the randomly generated challenge code in the back end SQL database. This challenge code will be the password that the suer should receive by mail, and will get asked on the second, error page ( "Auth error page contents" ).
    So, yeah, use the FreeRadius package, so you don't have to interface with the internal pfSense user manager.

    Be aware : you will have to modify a pfSense script file ( this one /etc/inc/captiveportal.inc ).
    And worse, you have to know how to add rules into ifw, the firewall used by pfSense for the captive portal. The thing is : when the user initially connects to the portal, everything is blocked. You will have to open ports : 110 (POP),143 (IMAP) ,993 (IMAPS) and 995 (POPS).
    Have a look here.
    You also need the manual of ipfw used by FreeBSD..

    Inform the user that only mail clients are supported, not web mail access, as web mail would imply that you have to open port 443, as this is the port every https web servers uses. Doing that will render you captive portal useless.
    With these 4 ports open, clients can receive the mail you've send with pfSense upon first page validation, to get the challenge code.

    Implement this and consider that you passed a above average firewall admin exam.

    Take note : upon pfSense update, the "/etc/inc/captiveportal.inc" will get overwritten. You will have to re implement your "ipfw rule creation" where you aloow ports TCP 110,143,993 and 995 (probably a PHP line or two).
    Be assured, yu can use PHP? it's worlds most simplistic scripts language, and looks like BASIC that everybody used in the eighties/nineties.

  • Captive Portal blocking white listed MAC addresses in 2.5.0

    23
    0 Votes
    23 Posts
    4k Views
    A

    @gertjan As always, thanks for the response and thoughts.

    Since we were still having issues we did move to 22.01 (aka 2.6.0) last night since (a few hours before you responded) since I saw substantial changes to captive portal. I did see the UDP/ICMP issue and applied the system patch too.

    The issue only comes up every couple weeks so we'll have to give it time to see if it keeps happening.

    I appreciate the warning on the limiters. We do use them, but can live without them for a while.

    --Andrew

  • Macbook and Captive Portal

    3
    0 Votes
    3 Posts
    893 Views
    ?

    Thanks a lot for the tip
    Regards
    Pierre

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