• Redirection url trimmed "/"

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    E
    This has been fixed on 2.0.3 the only way to fix is to gitsync there. On 2.1 just go to a newer snapshot.
  • Just another voucher printing script

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Self signup ?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    N
    perhaps something like that? http://doc.pfsense.org/index.php/FreeRADIUS_2.x_package#CaptivePortal_Self-Registration:FreeRADIUS.2B_MySQL
  • Captive Portal Problem (looping authentication page)

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    M
    NO its not I just not pasted the whole results. Also will it resolve the issue of 2.0.2 ? I will do your suggestion and give feedback, TIA @bardelot: Instead of using gitsync to upgrade 2.0.2 to 2.0.3 you should use the built in firmware upgrade feature as gitsync does not update the binary files. You can get update files and full 2.0.3 test images here [1]. Is it the complete output of the "ipfw show" command? There are no default rules. [1] http://forum.pfsense.org/index.php/topic,58203.0.html Edit: Moved my post from the duplicate topic in the "2.1 Snapshot Feedback and Problems" board.
  • Captive Portal fails regularly after upgrading from 2.0.1 to 2.0.2

    Locked
    43
    0 Votes
    43 Posts
    28k Views
    M
    hi, its not working for me, im using mac address to pass via portal and its not working, the only thing that works is that when you put the ip address of the said station. Can anyone help ?
  • Replace captive portal IP with FQDN

    Locked
    8
    0 Votes
    8 Posts
    10k Views
    M
    Might be an old top lsense, but still hadn't figured it out :) Thanks for sharing! I'll give it a try.
  • Pfense Captive Portal on WLAN controller?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    C
    Depends, what does your infrastructure look like now?
  • Wiki / doc update for vouchers?

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    P
    Beautiful, thanks.
  • Hotspot success setup?

    Locked
    16
    0 Votes
    16 Posts
    8k Views
    N
    @fsantaana: (…) Right now i'm trying to find out 2 things- how to convert the user name entered to all lowercase and then submitted to the CP page. I'm trying to play around with the forms on the default window but always manage to send a blank username to the CP/Freeradius for authentication. Take a look here. RADIUS offers this by default: http://onlamp.com/pub/a/onlamp/excerpt/radius_5/index1.html?page=5 lower_user and lower_pass To eliminate case problems that often plague authentication methods such as RADIUS, the FreeRADIUS developers have included a feature that will attempt to modify the User-Name and User-Password attributes to make them all lowercase; this is done either before an authentication request, after a failed authentication request using the values of the attributes as they came, or not at all. Clearly setting the lower_user directive to after makes the most sense: it adds processing time to each request, but unless this particular machine normally carries a high load, the reduced troubleshooting time is worth the extra performance cost. However, a secure password often makes use of a combination of uppercase and lowercase letters, so security dictates leaving the password attribute alone. Usage: lower_user = [before/after/no]; lower_pass = [before/after/no] Suggestion: lower_user = after; lower_pass = no nospace_user and nospace_pass Much like the lower_user and lower_pass controls, these directives preprocess an Access-Request packet and ensure that no spaces are included. The available options are the same: before, after, or no. Again, the most obvious choice is to set nospace_user to after to save helpdesk time. Some administrators have a tendency to not allow spaces in passwords; if this is the case, set nospace_pass to before (since there is a system-wide policy against spaces in passwords, testing a request as-is is not required). Usage: nospace_user = [before/after/no]; nospace_password = [before/after/no] Suggestion: nospace_user = after; nospace_password = before @fsantaana: And trying to see if i can get per user idle timeout instead of a Global timeout. If you have any ideas let me know ! Idle Timeout on CP is user based as far as I know. If there isn't any traffic for that user more than idel timeout then this user gets disconnected. If the user is initiating traffic then the idle timeout will be reset and is starting counting again from beginning. Hard Timeout on CP is user based, too but it kicks the user when time is over and user needs to reconnect. CP offers a checkbox "Enable Session-Timeout from RADIUS". You can set this individual for every user and this seems to be the same as the CP hard timeout but could be set independent so every user has a different timeout. –- edit --- Loweruser and lower pass seems to be out to date in freeradius 2.x - you should test this if it works or not. Another possibility could be to use the policy.conf file of freeradius. It does the same with MAC addresses. No matter which format the NAS sends the MAC address, lowercase, uppercase, with ":" or with "-" at the end all MACs look like: 11-22-aa-bb-55-66 To check this look at this wiki: http://wiki.freeradius.org/guide/Mac-Auth#Plain-Mac-Auth For MAC addresses already implemented in freeradius –> settings --> "Enable Plain-MAC-Auth"
  • PFSense202 and FR2 won't work together (in my box)

    Locked
    10
    0 Votes
    10 Posts
    2k Views
    N
    @Mark: Solved my problem. The client I tried used a different DNS-Server than the PFSenses LAN-Interface. The CP doesn't seem to use a static route to redirect the client to the login page, it just replies all DNS requests with the portal's IP-address. If you use another DNS, you never get there… Could you perhaps add a line to the docs that the DNS-Server used for CP/Radius has to be the pfSense itself? I've seen a note one should use DHCP, but I think this is optional as long as the DNS entry shows to pfSense. Thank you for your help! You wrote in your first post: CP is working fine with Vouchers and local user databases. So I assume that CP worked without RADIUS. The solution you provided is independent from freeradius. The DNS of the clients must always be the LAN's IP address - no matter if CP uses local user database, RADIUS or something else.  :)
  • 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,
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.