• Awesome Captive Portal Page Material UI

    22
    2 Votes
    22 Posts
    17k Views
    M

    thanks @Gertjan!!
    Sort of figured that out after posting. Made a custom captive-portal suit, which I'm going to put that in github, for anyone likes to replace the stock pages.

  • Usertransfer in HA-Modus

    3
    0 Votes
    3 Posts
    478 Views
    F

    hi,
    I finally made a patch for it !

    I am now looking for testers (even if you are not using High Availability). Could anyone install this patch on a development Server (2.5.0) and give me some feedback?

    Here is how to install it :

    Install the patch package Create a new patch. In "URL/Commit ID", enter https://patch-diff.githubusercontent.com/raw/pfsense/pfsense/pull/4150.diff . Let the default settings in the "Patch Application Behavior" section (Path Strip Count : 2, etc...) Fetch and apply the new patch. After installing, reboot your pfSense. After installing the patch, if you wish to use High Availability for captive portal : Configure High Availability normally using System->High Avail. Sync menu. Configure XMLRPC sync on the primary node only, as it would be done for a normal configuration on the secondary node, please go to Services->Captive Portal->(your zone)->High Availability and configure backward synchronization.

    How it works / Behavior

    When using HA,

    In normal situation (both nodes UP), captive portal users and vouchers are synchronized between nodes. If the primary node become unreachable, secondary node become master and continues to run the captive portal If the primary node switch back from backup to master, it tries to refresh connected users from the secondary (and now backup) node. If the secondary node leave then re-join the cluster, users will NOT be synchronized on the backup node. Users have to be manually synchronized from Captive Portal->Your CP zone->High Availability in such situation.

    What this patch is NOT / Limitations

    This patch aims to sync connected users, and in-use/expired vouchers. Allowed IP addresses/hostnames/MACs synchronization are out of scope. This patch is designed to handle a failure from the primary node, not from the secondary one. Because of the very way HA is implemented on pfSense, a failure on the secondary node would have some bad effects for the cluster. In the case of the captive portal, the effects would be some slowness when performing an user (dis)connection.
    This issue is not specific to captive portal, and is due to how how XMLRPC sync works in pfSense. The workaround to this issue is to manually un-check Captive Portal in HA settings when secondary node leaves the cluster. RADIUS accounting also works fine with HA, but per-user data consumption is not synchronized between nodes.

    Developer notes / technical info

    This patch implement a new XMLRPC endpoint, pfsense.captive_portal_sync. It was necessary to implement this endpoint because of bi-directional synchronization (using pfsense.restore_config_section is causing many problems, such as triggering a DHCP server restart every time an user get connected)

    Please don't hesitate to comment if you have questions/feedback to share ! ☺

  • Disconnetct!

    26
    0 Votes
    26 Posts
    2k Views
    C

    @free4 i really appreciate your effort on this !

  • multiwan for future pfsense

    11
    0 Votes
    11 Posts
    847 Views
    F

    @chanrio13 please read my previous post

    I am myself using the captive portal in a multi wan configuration ...so..it's already supported

  • Captive Portal ERR_SSL_PROTOCOL_ERROR

    11
    0 Votes
    11 Posts
    3k Views
    R

    @rm I do see two"system_generate_nginx_config" nested ifs...

  • staff account without ticket #solved

    17
    0 Votes
    17 Posts
    2k Views
    johnpozJ

    If its yours - I might steal it, I like it a lot ;)

    But it would sound better if said in French I think ;) Love to use it on a call when dealing with some of my French speaking colleagues ;)

  • Bug with CP "connected"

    3
    0 Votes
    3 Posts
    448 Views
    C

    @free4 thanks alot for this

    applying this patch has solved the issue

    https://github.com/pfsense/pfsense/compare/RELENG_2_4_4...Augustin-FL:fix-reconfig-for-2-4-4.diff

  • Captive Portal w/ freeradius (and vouchers) problem

    6
    1 Votes
    6 Posts
    2k Views
    B

    Hello sir @Gertjan, thank you so much. I it works really great. It saves my day :). VERY MUCH APPRECIATED.

  • No Local user database in pfsense 2.4.4p3 release? Can't use vouchers.

    3
    0 Votes
    3 Posts
    429 Views
    B

    sir @free4 thank you so much. Thumbs up

  • Asking to enter vaucher when changing to another vlan

    6
    0 Votes
    6 Posts
    755 Views
    F

    @phdemartin yes,
    given your usage, pfsense seems to not be the appropriate captive portal tool for your usage. pfsense does not support cross-vlan captive portal

    I would recommend you to look into other appliances dedicated to captive portal (such as PacketFence)

  • "One for all" authentication

    3
    0 Votes
    3 Posts
    429 Views
    R

    @Gertjan: Thanks, I'll try!

  • Ultimate Chrome and Firefox browsers do not authenticate

    7
    0 Votes
    7 Posts
    726 Views
    johnpozJ

    Are the devices that are going to use this captive portal under your control where they can bet set to trust your CA? If not this is good use of ACME certs..

    Your own CA only makes sense when you control the devices that will be accessing the sites using certs signed by your CA.

    And yeah the mentioned new 825 day limit can bite you if your certs are newer..

  • Captiv portal tuning

    8
    0 Votes
    8 Posts
    1k Views
    L

    @heper
    Faced this.
    There is user user1 who has access to the portal through the group
    Active Directory. So, if the browser’s registration page doesn’t
    enter the password, the user is successfully registered on the portal.

    On pfsense Diagnostics \ Authentication everything works correctly.
    What's wrong?

  • GPDR Complaints

    10
    0 Votes
    10 Posts
    959 Views
    N

    @virusbcn Instead of routers you could use vlans and managed switches.
    You can have all vlans coming in to pf (cluster?) and assigning them different subnets
    With one subnet assigned to each appartment its easier to log things.
    Otherwise, hunting mac addresses will become a nightmare.
    (unless you have an onboarding procedure where macaddresses are "let in"
    (and then you have win10 changing mac addresses randomly, for "security")

    So its dhcp and pflogs, probably logged to an external syslog.

  • Custom logout page

    6
    0 Votes
    6 Posts
    1k Views
    W

    @Gertjan Hello, could you give me an example php, I am not really an expert in php and html, tried in all cases and I can not get it. I look forward to your help. Thank you.

  • Voucher remaining time

    11
    0 Votes
    11 Posts
    2k Views
    GertjanG

    @walter_leon said in Voucher remaining time:

    @Gertjan Could you publish your php code that you managed to work ??, Thanks..

    What code to make work what ?

    If it's he remaining voucher time, I never wrote any code for that.
    I rarely use vouchers and if I use them, it's marked on the voucher : "this voucher works for x hours". I'll leave it up to the user to "calculate" the end time.
    Better yet ; I probably wouldn't hand over a voucher to some one (a kid ?) who couldn't do that ....

  • Show time remaining in captive portal, in pfsense (but with vouchers).

    2
    0 Votes
    2 Posts
    296 Views
    GertjanG

    See https://forum.netgate.com/topic/147410/custom-logout-page/5

    ( and stop svp posting the same question in several threads )

  • How to display voucher remaining time?

    5
    0 Votes
    5 Posts
    2k Views
    GertjanG

    See https://forum.netgate.com/topic/147410/custom-logout-page/5

  • IP whitelisting

    3
    0 Votes
    3 Posts
    447 Views
    senseivitaS

    @Gertjan Thank you so much for the link and the explanation.

    I was using the book as a reference; I always forget the troubleshooting sections on the website that are packed with useful stuff.

    Thanks again !

  • Captive portal problem under high load

    5
    0 Votes
    5 Posts
    2k Views
    C

    hi dboe732 do you resolve your problem ?

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