• Popup window from remote CGI?

    Locked
    1
    0 Votes
    1 Posts
    990 Views
    No one has replied
  • CP user/voucher logging in squid

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    M
    look at this thread http://forum.pfsense.org/index.php/topic,58234.0.html
  • 0 Votes
    3 Posts
    2k Views
    N
    ขอบคุณมากครับ (Thank you very much)  ;D
  • IOS 6 issues

    Locked
    8
    0 Votes
    8 Posts
    8k Views
    E
    @regonius: Hi, I've been fiddling about with this issue too with my two IOS devices. My custom captive portal (CP) is working fine on the macbook, but still not on IOS6. On IOS6, upon connecting to the WiFi, a hotspot login page slides up from the bottom, if safari cannot reach the site www.apple.com/library/test/success.html The solution proposed by dhatz is to make safari believe it can reach above site by redirecting to a local file providing the same response. You can achieve the same result by adding "www.apple.com" to the allowed hostnames under Services > Captive Portal, Allowed Hostnames tab, field Hostname. However, if the hotspot login page does not pop up anymore, you will need to authenticate with Safari. If you open e.g. App Store before authenticating, an error message will be shown "Cannot connect to iTunes Store". Coming back to your question about how to do an internal redirect: Connect to your pfSense box via SSH (instructions on how to set up SSH see here: http://doc.pfsense.org/index.php/HOWTO_enable_SSH_access Modify the system.inc file and add an additional rule. The filesystem is mounted as read-only, so we have to remount it as read-write. See http://doc.pfsense.org/index.php/Remount_embedded_filesystem_as_read-write /etc/rc.conf_mount_rw cd /etc/inc vi system.inc Enable line numbers in vi (:set nu) Line 741 contains the following: $captive_portal_rewrite = "url.rewrite-once = ( "(.captiveportal.)" => "$1", "(.*)" => "/index.php?redirurl=$1" )\n"; There are two rules, separated by comma: ("<regex>" => "<relative-uri>") It basically means: If the webserver receives a request which matches the regular expression => redirect to the new target. For a description on what url.rewrite-once does, see the Lighttps wiki under http://redmine.lighttpd.net/projects/1/wiki/Docs_ModRewrite We now want to store locally what ever we would get under www.apple.com/library/test/success.html. dhatz is proposing to store it as a file named "apple-success.html". Name it to your liking, but it should contain the following: <title>Success</title>Success, and the new rewrite rule must match the filename. We can upload the file via WebGUI, Services > Captive Portal, File Manager tab. pfSense will rename the file automatically to "captiveportal-apple-success.html", store it in /var/db/cpelements/ and create a symlink with the same name in /usr/local/captiveportal/ Now let's add our new redirect rule as the first of the three, so that it reads as follows: $captive_portal_rewrite = "url.rewrite-once = ( "^/library/test/success.html$" => "/captiveportal-apple-success.html", "(.captiveportal.)" => "$1", "(.*)" => "/index.php?redirurl=$1" )\n"; Save the file and exit vi with ":x", remount the filesystem as readonly (/etc/rc.conf_mount_ro) and exit ssh. pfSense will now trick the IOS6 devices and pretend to have an internet connection. There will be no hotspot login page, unless you misspelled the rule or the filename, then the hotspot login page will still slide up from the bottom, but show a "404 - Not Found" error. Hope that helps Best regards regonius</relative-uri></regex> Hi, thank you for your most detailed explanation, it was most helpful. I followed your steps, tested both the internal redirect and the walled garden approach, both solutions work perfectly as they should. I'm aware of the limitation you mentioned; opening any other application than Safari (e.g. the App store, that you mentioned), that requires Internet access, results in errors when attempting to connect. I added apple.com to Captive's Allowed hostnames in the first place, which didn't work; I didn't know that I should add www.apple.com instead. Thank you very much for your kind help, best regards, elektroljub
  • Manually Remove Captive Portal

    Locked
    6
    0 Votes
    6 Posts
    4k Views
    X
    Rebuilt the server and everything is fine. Whatever it was, something did not go right with the upgrade to 2.0.2 I'm running 2.0.2 now, and it's working very well.
  • Captive portal users automatic deletion

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    E
    IT will not allow them to login but not delete them.
  • Php5-gd for pfsense 2.0.1 captive portal captcha

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    jimpJ
    No, we don't use GD for anything like that on pfSense, so it's not something we include.
  • Captive Portal Clients change password by themselves

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    B
    @OttNorml: That's too bad!!! :( Why is this feature missing/ why was it removed? I guess you are using 2.1 then? Actually ermal wasn't saying that the feature is only available in 2.0, it is available since 2.0. You just have both options, either building your own fancy page where the users can change their password using the code that I showed or by using the built-in feature that ermal mentioned. Just create a new group in the User Manager and add the members that should be able to change their password. Save it and click on Edit again. Now you can assign privileges, the one you're looking for is "WebCfg - System: User Password Manager page". - You could also directly set the user's privilege but using a group is useful when having more than a handful of accounts. Your users can now use the normal pfSense webgui and are redirected to the change password site (if it is the only privilege they have).
  • Problems in CP after update to 2.0.2

    Locked
    8
    0 Votes
    8 Posts
    3k Views
    K
    see anything??? I'll try on 2.0.1…
  • Create Captive Portal for company

    Locked
    24
    0 Votes
    24 Posts
    7k Views
    G
    You know what I figured it out. Thanks,
  • Can I import voucher rolls?

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    V
    Yes, duplicating the configuration without using the config file is exactly what I am doing. I have had no captive portal problems in 2.0.1 haven't upgraded any of my routers with a captive portal from 2.0.1 to 2.0.2 yet. I checked the memory using the BIOS' own diagnostic tools and also using Memtest. I checked the disk using SpinRite (the whole disk so not just the recovery option). I am positive the disk and the memory are not the issue. The fan seems to be in order - I guess the machine is just done after nine years of service. Thanks for your help. The duplication is now complete; I'll replace the old machine for my new clustered system this Saturday.
  • Captive Portal on VLANS.

    Locked
    3
    0 Votes
    3 Posts
    8k Views
    C
    @HappyChubbs: I did some research and found out that you can not have the parent interface assigned to anything. This is no longer true, hasn't been for at least a couple years. Your problem sounds like what happens when you block access to your DNS servers with the portal.
  • Pfsense author Openid ( google apps )

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    S
    You can use cloudessa (it is free) www.cloudessa.com - its is a RADIUS server that uses Google Apps as backend and then authenticate to WiFi using WPA2-Enterprise/802.1X
  • Captive portal swallowing / on redirect

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    GertjanG
    Hummm. Good details here. I guess you found this http://forum.pfsense.org/index.php/topic,56812.msg303237.html#msg303237  ;) edit: Better yet: it's in the oven : https://github.com/bsdperimeter/pfsense/commit/f89afb4765f317a532cb71f3b3883e8f897cfebb and will be served when ready.
  • Block or expire one voucher code?

    Locked
    16
    0 Votes
    16 Posts
    6k Views
    B
    @elratt0r: The php error came from an invalid initialized array. See attached patch. Kind regards Michael Thanks, made a pull request on github.
  • CP with Prepaid Timer !!

    Locked
    10
    0 Votes
    10 Posts
    4k Views
    N
    @fsantaana: Does the built-in freeradius2 package allowing pausing of the timer or must this be done through a MySQL database for the accounting? This must be done through CP (disconnect) or the user itself (CP logout window). So when a user authenticates the CP sends an accounting start packet with the time. freeradius is counting the time transferred from CP to freeradius. If CP sends an accounting stop packet, the freeradius is stopping counting. accounting stop is in general send when the user disconnects from CP. The user can force that with the "logout window". The time counting used by freeradius is just counting the time the user is really connected. Using a voucher is different - there you start a countown with the first connection - no matter if connected or not.
  • Captive portal User self registration

    Locked
    7
    0 Votes
    7 Posts
    11k Views
    K
    Give it a try…...& let me know your result. http://forum.pfsense.org/index.php/topic,57260.0.html
  • Captive Portal not working - No redirection to splash page - No Internet

    Locked
    11
    0 Votes
    11 Posts
    37k Views
    L
    Thanks for you help. In my DCHP service on pfsense, i put a dns server address, so that clients get this dns address. But solution is to drop this dns address in dhcp service configuration for this interface and enable dns forwarder.
  • Cp/freeradius db files type?

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    N
    It seems that it is something special for freeradius. I found this on the web: > Looking at that debug, where exactly is it resetting the counter ?   The "counter" module is resetting the counter. > In the db.daily ?  Because it's not resetting in SQL.   Yes, the counter module doesn't say it's using SQL. > Also what is the db.daily ?  How do you read that file ?   You don't.  Its used by the counter module to keep it's count. > What I'm trying to achieve here is to get mysql to reset the counters > its doing, and then start a new row if possible. > Within the table radacct.  AcctInputOctets AcctOutputOctets. > Is it possible to do this ? > Does the counter actually do that ?   You want sqlcounter.   Alan DeKok. http://freeradius.1045715.n5.nabble.com/sql-counter-clarification-and-issues-td2741790.html
  • Routed network - Captivate Portal

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    T
    @Nachtfalke: Yes, it is. Could you point me to, what a solution might be?  :)
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.