• Bypass Captive portal

    15
    0 Votes
    15 Posts
    9k Views
    jahonixJ

    @comeback1106:

    I get this  squid does not work with CP, but how can resolve this.

    You can! Get the pfSense and squid sources from Github and start coding.

  • Change CP authentication type by time of day

    5
    0 Votes
    5 Posts
    920 Views
    J

    So I never got that process in the OP to work.
    It seems that all config data is stored in the XML config file, changing the HTML files on disk doesn't do anything.

    I then tried  some other hack that involved disabling the captive portal and then re-enabling it using cron. That didn't work either.

    I just wanted a normal captive portal login during the day, and after hours, a simple page showing the AUP and a button to accept it and get online.

    But this did:

    Install and configure freeradius; create 2 users, one for normal guest access, one for after-hours access. The normal account has a password we change periodically and only give to known guests. The after-hours account has a simple password, but is restricted in radius to only be allowed to login after hours. Configure captive portal to use radius for authentication. Create custom captive portal login screen with a bit of javascript which hides an entire DIV. During the day it shows a DIV containing the normal captive portal login form. After hours, it hides that DIV and displays another one which shows a different login form, using the after-hours username/password as hidden fields, and a plain ACCEPT button. In morning, I reboot the firewall to boot everyone who might be using the after-hours login still off the guest network.

    Since the after-hours radius user is restricted to certain login hours, even if someone does a view source and gets the account info, it won't help them.

    Only downside is it relies on the time on the client being correct, but I'm willing to live with that.

    I can post the source of the captive portal login page if anyone is interested.

  • Landing Page doesn't redirect

    10
    0 Votes
    10 Posts
    1k Views
    DerelictD

    When all users show as unauthenticated, your custom CP code is broken.

    That is how all users appear when the No Authentication mode is used.  Your custom page can just have them, for example, click a terms and conditions checkbox and press Access the Internet.

    It's a perfectly valid config but there's no login name to put with the CP entry so it uses unauthenticated.

  • Issue with login (event 13) using radius server from NPS

    2
    0 Votes
    2 Posts
    3k Views
    O

    Ok, well problem solved.

    Issue was i didn't put the proper interface on pfsense cp & and nps radius client…

    Had to be all LAN, even though CP is to be used on the wifi... :P Login from AD works now.

  • Potential Bug in Captive Portal pfSense 2.2 when used with CARP

    4
    0 Votes
    4 Posts
    1k Views
    M

    Dear Jim,

    adding the IP to the allowed addresses does solve the problem - thank you very much! I wonder why I did not find this based on intuition, but the answer is also somewhat obvious: This was not required in the previous version and thus, one does not think about it.

    Regards,

    Michael

  • External captive portal authentication

    6
    0 Votes
    6 Posts
    5k Views
    D

    It just does NOT work that way. Please, actually read on how this works. I already linked it here: https://forum.pfsense.org/index.php?topic=93479.msg518607#msg518607

  • How to check who are currently logged in ?

    4
    0 Votes
    4 Posts
    610 Views
    P

    Sorry for not making this clear: im using the local user not radius for authentication

    Thank you for pointing me to the right section .. i can see who are logged in now. Much appreciated.

  • Can i set up my WLAN Network with this picture ?

    11
    0 Votes
    11 Posts
    1k Views
    DerelictD

    I would not use VLAN 1 (I'd use all untagged ports on, say VLAN 2 through 4094) but that looks much better if replacing the existing firewall with pfSense is not an option and you just want to use captive portal.

  • Unable to access web interface after adding user

    7
    0 Votes
    7 Posts
    762 Views
    O

    Thank you guys. I will take a look.

  • Cannot generate Vouchers

    10
    0 Votes
    10 Posts
    1k Views
    GertjanG

    This html code https://github.com/pfsense/pfsense/blob/master/usr/local/www/services_captiveportal_vouchers.php#L510
    is present in your browser ?
    Line "510" is executed ?

    A browser cache problem ?
    The image file $g['theme']}/images/icons/icon_plus.gif => /themes/pfsense_ng/images/icons/icon_plus.gif exists ? It has the correct owner and rights ?

  • Pfsense 2.2\. Captive Portal IPv6 Issue

    4
    0 Votes
    4 Posts
    1k Views
    D

    No, nothing changed in the past 58 days  ::)

  • 0 Votes
    4 Posts
    2k Views
    U

    Thanks. I manage to figure that out  :)

  • How does CP block internet access?

    5
    0 Votes
    5 Posts
    1k Views
    R

    Oh, I am so sorry. I should mentioned it before. Mine is 2.1.5-RELEASE
    And I found correct command.

  • Facebook, Twitter Apps Mobile cant redirect to Captive Portal

    2
    0 Votes
    2 Posts
    711 Views
    DerelictD

    No.  Captive portals have to be navigated with a web browser.

    Break the internet on purpose and you sometimes break the internet.

  • Captive Portal pass through for all possible users

    15
    0 Votes
    15 Posts
    4k Views
    M

    I can live with that.  Nothing good ever comes easily.  Thanks, Derelict!

  • Radius Authentication + Captive Portal + Mac Auth

    3
    0 Votes
    3 Posts
    2k Views
    C

    Fixed:

    I had multiple routes behind a VPC and behind an elastic IP.  the Elastic IP handled incoming, but the outgoing went through an invisible nat outbound.

    The server would answer on the EIP, but the response was sent through a different public IP,

    AWS doesn't allow hard binding to the public IP< so that was out of the question.  I remove the ECS away from the VPC and assigned the EIP to itself, and gave it another interface for database access.

    Problem resolved.

  • Help captive portal from scratch ver 2.2.2

    3
    0 Votes
    3 Posts
    634 Views
    GertjanG

    @chris4916:

    1 - Providing your WAN IP (furthermore this IP being in the RFC1918 range, meaning not being your real external IP) is useless and not required

    Very true.
    But be aware for that a new kind of user that exists: the one that checks

    Block private networks
    When set, this option blocks traffic from IP addresses that are reserved for private networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as well as loopback addresses (127/8).  You should generally leave this option turned on, unless your WAN network lies in such a private address space, too.

    and
    uses a IP WAN like 192.a.b.c (or 10.a.b.c) as WAN  ;D

  • Captive Portal, freeradius2 and Active Directory Auth

    5
    0 Votes
    5 Posts
    4k Views
    D

    CP + proxy -> completely broken. Plus, completely off-topic in this thread.

  • Fresh installed pfsense 2.2 - captive portal crashed.

    13
    0 Votes
    13 Posts
    3k Views
    D

    I removed the three installed packages ( freeradius2 , syslog-ng and vHosts ) and the error is gone.
    Then I installed the packages one at a time and restarted pfSense, after I installed the package vHosts (v. 0.7.5) the error reappeared.

    pfSense has detected a crash report or programming bug. Click here for more information. ... Crash report details: PHP Errors: [24-Apr-2015 16:21:22 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2216 [24-Apr-2015 16:21:28 Europe/Rome] PHP Strict Standards:  Non-static method PEAR::isError() should not be called statically in /etc/inc/captiveportal.inc on line 2229

    Follow the lines of code in the file captiveportal.inc ( from 2216 to 2236 ) where the error occurs

    2216    if (PEAR::isError($racct->start())) { $retvalue['acct_val'] = 1; $retvalue['error'] = $racct->getMessage(); // If we encounter an error immediately stop this function and go back $racct->close(); return $retvalue;         }         // Send request         $result = $racct->send();         // Evaluation of the response         // 5 -> Accounting-Response         // See RFC2866 for this. 2229 if (PEAR::isError($result)) {     $retvalue['acct_val'] = 1;     $retvalue['error'] = $result->getMessage();         } else if ($result === true) {     $retvalue['acct_val'] = 5 ;         } else {     $retvalue['acct_val'] = 1 ;       }

    I think the package VHosts ver. 0.7.5 must be updated to work with the new version of PHP 5.5.23

  • Import and sync users from AD to pfSense

    2
    0 Votes
    2 Posts
    1k Views
    GertjanG

    Writing a small PHP file that parses a CSV file, and imports it in local user manager.
    The CSV is the exported user list from your AD.

    Syncing password might be the only issue where one has to think.

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