• Automatically Expire Vouchers via script outside of pfsense

    2
    0 Votes
    2 Posts
    449 Views
    F
    @dragon9981 said in Automatically Expire Vouchers via script outside of pfsense: non-used but issued vouchers to be no longer valid. Well that's quite simple : just delete the vouchers roll then create it again?
  • Need help on Max Daily Session Attribute

    7
    0 Votes
    7 Posts
    4k Views
    viktor_gV
    FreeRADIUS SQL backend counter feature: https://redmine.pfsense.org/issues/10871
  • Captive portal one step log in

    3
    0 Votes
    3 Posts
    391 Views
    GertjanG
    Hi, FreeRadius is better integrated these days, and can be installed as a pfSense package. You'll be needing a MySQL (MariaDB) SQL server. This one doesn't (should not) run on pfSense. If you're capable of running and maintaining** these these two, you're pretty close to redoing a bit the code used in the project, as html, ccs and PHP. These 3 had their rocket science status removed in the late nineties. The problem with big addons is .... they only work for a couple of months. As soon as pfSense updates, chances are that something breaks. The author should solve the issue as soon as possible. This means he should be using a portal himself. Which means he already knows that an animal called "RGBD" really exist. When you run a captive portal, you should apply this rule " keep it simple ". Not doing so means : Very soon, you will not be doing what you are doing right now. pfSense is a security device, not some nicely coloured gadget. If updates exist, you install them. If the installed code is personalized which this kind of addons, admins tend to stop updating. And that's another way of going out of business with a lot of buzz. ** FreeRadius and MySQL are not "set them and forget them" type of services. Btw : I guess you do understand that the nearly identical question "Can I use the user's Facebook account to login in into my portal ?" vanished. Some English company did woke up a lot of people. And Facebook changes it's API every week or so. edit : almost forgot : this method is still allowed !
  • CP with voucher code only

    2
    0 Votes
    2 Posts
    210 Views
    S
    hi thanks from Calvin Bui for this post, i found a way to create a login page that show only voucher filed. i change this particular code to : <div class="form-group"> <input name="auth_voucher" type="text" placeholder="Voucher" class="form-control"> </div> <input name="auth_pass" type="text" class="hidden" value="password"> <input name="redirurl" type="hidden" value="captiveportal-success.html"> <input class="btn btn-lg btn-success btn-block" name="accept" type="submit" value="I Agree">
  • Session Timeout not working

    3
    0 Votes
    3 Posts
    569 Views
    R
    Hello. Thanks for the feedback. I managed to solve by creating a record in the radcheck table, with the information of Session-Timeout and Idle-Timeout. Only then does pfSense disconnect expired users. Gracias.
  • Radius MAC authentication

    3
    0 Votes
    3 Posts
    533 Views
    I
    @viktor_g Hi Victor! The webui certificate has < 398 days but the Freeradius certificate is 10 years. I will try setting up a new Freeradius cert with < 398 days lifetime to see if that resolves the issue. Thank you!
  • Allowed-hostnames not working.

    7
    0 Votes
    7 Posts
    1k Views
    johnpozJ
    @ghassen said in Allowed-hostnames not working.: I have disabled both the DNS Resolver and Forworder if that's what you mean. And then how is client on your captive portal suppose to look up www.google.com then? Do you hand them external dns that you allow through captive portal? @Gertjan stated - working dns is a MUST for captive portal to function. Where does pfsense point for dns? When it finds the ip for www.google.com better hope it matches what the client finds when it does query.. Pointing to different dns can exacerbate problems with mismatch of IPs..
  • User can login with different VLAN on Captive Portal.

    6
    2
    0 Votes
    6 Posts
    426 Views
    ontzuevanhussenO
    Ok, I am done. I am using OpenLDAP for Authentication Servers. Now everything work fine. This is my configuration: [image: 1596858477703-screen-shot-2020-08-08-at-10.44.17.png] [image: 1596858486188-screen-shot-2020-08-08-at-10.44.28.png] [image: 1596858496660-screen-shot-2020-08-08-at-10.44.54.png] [image: 1596858966491-screen-shot-2020-08-08-at-10.55.38.png] Now user 'direktur' can login to Captive Portal 'Direksi' but can't login to Captive Portal 'Dokter'. [image: 1596858652841-screen-shot-2020-08-08-at-10.49.05.png] [image: 1596858667483-screen-shot-2020-08-08-at-10.49.16.png]
  • One Voucher Per Device

    147
    1 Votes
    147 Posts
    49k Views
    W
    @Gertjan I have two systems both 2.5-dev version . second system is up to date always. I keep an eyes on all updates and bug fixes (redmine) everyday i am testing both system in different ways. second system i didn't apply any patch and people can reuse voucher on other device so they get disconnected from old Aug 3 13:00:03 logportalauth 38072 Zone: campco - CONCURRENT LOGIN - TERMINATING OLD SESSION: 9478394944, 7c:78:7e:4d:1c:43, 10.10.21.188 Moving soon to FreeRADIUS base solution which has no issue with concurrent logins. I have already done initial testing in production environment.
  • 0 Votes
    3 Posts
    559 Views
    H
    @Gertjan said in Newbie need help to merge pfSense Captive Portal with old Linksys WRT54GL hotspot feature: @ha11oga11o said in Newbie need help to merge pfSense Captive Portal with old Linksys WRT54GL hotspot feature: Also on router i have WiFiDog and Chillispot. But my problem is that i dont know what to use as redirect page to pfSense machine. The "page to redirect" etc does not concern pfSense at all. You'll be using the hotspot's facilities of the AP, there is nothing to be done on pfSense. If you set up the AP on the WAN side of pfSense, the question is even less relevant, as the traffic isn't seen by pfSense. For help about the hotspot's (DDWRT) : see their forum. I don't know what Chillispot is, neither Wifidog. You can also transform your WRT54GL as a simple AP - I'm using several of these Linksys/Cisco routers, with the DDWRT firmware - and activate the portal on pfSense. In that case, I strongly advise you to use a dedicated interface on pfSense (a third interface) for the portal, leaving the LAN for trusted devices - and the OPT1 interface for the non trusted devices, as are portal users by default. I you choose to use pfSense for the portal management, start by looking up the Youtube site on the Internet. Then locate the Netgate channel, and see (several times) the Captive portal and DNS videos. When done, a portal can be set up in less then 10 minutes. Remember : keep it simple at first. Well, you definitely pointed me right way. I do want that pfSense is handling portal and WiFi just to be "radio" device for that. Thank you.
  • MS AD

    2
    0 Votes
    2 Posts
    335 Views
    mohkhalifaM
    Dear @soheil-amiri No need to use freeradius in pfSense. Just deploy MS Radius Server and integrate it with pfSense and send your own attributes and that's the best way I'm using.
  • CP Issue longer hours of timeout

    4
    0 Votes
    4 Posts
    588 Views
    C
    I have reviewed and its true its timing out on correct hour. however i think it has something to do with timezone since I changed the timezone. captive portal login uses the default timezone and co timeout uses the system timezone. lol
  • captive portal settings not saved

    captive portal save error
    7
    1
    0 Votes
    7 Posts
    2k Views
    viktor_gV
    Issue created: https://redmine.pfsense.org/issues/10798
  • 0 Votes
    5 Posts
    1k Views
    C
    @Gertjan Okey, thanks. I will do that.
  • Number of voucher per roll

    2
    0 Votes
    2 Posts
    162 Views
    GertjanG
    There might be a 'pfSense' limit, but you will not find it out. Handling a voucher roll with thousands voucher needs a special way to handle used and unused vouchers. Will that be you using a print out and a pencil ? Some excel sheet that you maintain by hand ? When things get messy, it might be easier to remove the roll, ans start using another one. Btw : the bit numbers determine the seed, so there will be a limit for sure.
  • DHCP Stop Working when captive Portal is enabled

    3
    0 Votes
    3 Posts
    474 Views
    GertjanG
    The ipfw firewall rules, put in place when the captive portal is activated, start with some rules letting through DHCP traffic. It's part of the default rule set. When a device is hooked up, can you see DHCP traffic (DHCPDISCOVER) in the pfSense DHCP logs ? If not, NIC is bad, cable is bad, or some switch device between user and pfSense. Btw : you should keep LAN for admin purposes, and use a second interface - OPT1 - for the portal. If remote admining is needed, use OpenVPN @wakasavan said in DHCP Stop Working when captive Portal is enabled: As long as captive portal enabled no Internet at all. That's what a portal should be doing. @wakasavan said in DHCP Stop Working when captive Portal is enabled: I repair the the firewall but there is no issue there What do you man ? You repaired something that wasn't broken ? @wakasavan said in DHCP Stop Working when captive Portal is enabled: Firewall can be accessed via WAN link but from local interfaced it is not working. If a portal is activated on that LAN, then,except for obtaining an IP, nothing should work. Exception : DNS requests ! Check that. But ok, if the device can't get an IP, all will be down. @wakasavan said in DHCP Stop Working when captive Portal is enabled: There was a power outage for a long time The power of pfSense was shut down using the way it should ? Do you use a UPS ? The file system is clean ? ( see very recent Netgate video on Youtube).
  • Captive Portal Bug

    8
    0 Votes
    8 Posts
    1k Views
    GertjanG
    That's the one - or actually one of the two solution proposed. It's merged again 2.5.0 so it will haunt the 2.4.5.x series for long time, except if it can get backported.
  • Active voucher restore problem

    30
    0 Votes
    30 Posts
    4k Views
    viktor_gV
    https://redmine.pfsense.org/issues/3128
  • how connect freeradius to MS AD

    32
    0 Votes
    32 Posts
    19k Views
    M
    @soheil-amiri do you have any news about your issue? I'´m, trying to implmenet a similar scenario. My scenariou include FreeRadius with LDAP background authentication for WAP2-Enterprise authentication. I setted up FreeRadius and background LDAP authentication, i tried authentication form pfsense, and works well. But when i'm trying to authenticate users over WPA2-Enterprise SSID, i have authentication errors. my users file config: DEFAULT Ldap-Group == "cn=account-users,ou=wireless,dc=example,dc=com" Tunnel-Type = VLAN, Tunnel-Medium-Type = IEEE-802, Tunnel-Private-Group-Id = "1010" Errors Logs: jul 3 18:53:55radiusd98680(39) Login incorrect (eap_peap: The users session was previously rejected: returning reject (again.)): [radiuser1] (from client AP_LAB port 0 cli 92-1F-E6-B9-E9-1E) Jul 3 18:53:55radiusd98680(38) Login incorrect: [radiuser1] (from client AP_LAB port 0 cli 92-1F-E6-B9-E9-1E via TLS tunnel) Can you help me?
  • 0 Votes
    8 Posts
    1k Views
    M
    If your files used-octets-* do not get emptied - but actually get filled with "0" it might be this line : echo 0 > "/var/log/radacct/datacounter/$TIMERANGE/used-octets-$USERNAME" Add a echo "used-octets-$USERNAME was emptied" line to see if this line gets executed. Check the logs to see the log line. used-octets-* are empty, it's not filled with "0" Unfortunately, with the 1st power failure, I got both used-octets-* and backup-*.log empty (all files size is zero) I wish I could catch the root cause.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.