• 0 Votes
    8 Posts
    7k Views
    N

    @mutheu:

    Thank you for your quick response.

    But I use external Freeradius server. Will this have any effect?

    Aahh, I am sorry. I talked from the pfsense freeradius2 package. But this confirms that it is a NAS problem and not a freeradius2 problem because the effect is the same with CP and freeradius2 package from pfsense :-)

    edit:
    ../raddb/sites-available/default

    go to "preacct" section and comment out "acct_unique". Then try again.

  • Captive portal wont re direct after authentication

    Locked
    21
    0 Votes
    21 Posts
    14k Views
    E

    @Gertjan:

    you can get these for free these days.

    Well, i am currently living in a somehow very stingy part of our planet right now, so, nothing is free around here, sometime people even try to charge me for what i own! however that's a bit off topic  :D
    I choose the USB stick installation after having seen all the reports of people loosing all their files once PFSense was installed, and guess what? everything i had on the stick got erased, however they were just duplicate files, so not a problem.
    I got another spare old pc right here, i was hoping of being able to operate both PFSense and my webserver on the same pc, but once PFSense is running, doesn't look like i can do anything else on that pc…. :-\

  • Monitor users upload/download in realtime (live)

    Locked
    5
    0 Votes
    5 Posts
    10k Views
    C

    @Nachtfalke:

    http://www.mhfoto.com/web/pfsense-traffic.jpg

    On the right you can see the IPs. But you are right. Not very comfortable.

    Ya that works but what I really want is a webpage like the captive portal how it shows logged in users and it would have speeds.
    That page u linked to flashes faster than a busy whore lol

  • How i can limits a user download volume via CP on LAN

    Locked
    9
    0 Votes
    9 Posts
    3k Views
    C

    @ermal:

    Its a patch to the OS so you need a new snapshot.

    Please advise how to apply new snapshot without losing everything. Thanks

  • Custom voucher login

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    D

    The primary file is /etc/inc/captiveportal.inc

    pfsense creates and uses files under /var, e.g. /var/etc

  • Captive portal and Freeradius

    Locked
    10
    0 Votes
    10 Posts
    5k Views
    N

    @mutheu:

    For me, I think the best solution to your problem is to setup a Radius server and use a counter. Instead of specifying 5 days, you simply convert the 5 days to seconds : 5d x 24hrs x 60min x 60sec.

    Counter will keep on reducing time even if your server goes off, it will pick up on where it left - especially with re-auth every minute.

    The time counter module only works on "accounting stop" packets. The time value in Accounting stop packets from CP are not correct in 2.0.1. Ermal did some changes on this (redmine) and perhaps it will be implemented on 2.1. But I am not up-to-date with this problem.

    But if the NAS or the server reboot - the user has to re-login - and that's the problem and not the "time management". That's the way I understand qbik's posts.

  • Voucher authorize 1 MAC address (1 voucher = 1 MAC Address)

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    F

    Yes I understand that.
    But is there anyway to have a Pass-through MAC for a limited time?
    Some hacks?

    Thank you for your help,

    Antoine

  • CP Login page and Error page

    Locked
    8
    0 Votes
    8 Posts
    5k Views
    L

    I managed to delete it and get back to working.. but this basically doesnt solve the problem. Doesn't anyone else out tehre have a customsed login and error page that both work ? and the error page show the error message from radius server?  Invalid credentials.. and MAC address invalid and so forth.

  • CP and FQDN

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    L

    Thanks for the reply.. another thing in the meantime.. my Website is currently hosted else where.. am i able to have the CP login page on my site (www.mysite.com/login.html) for example ?  Can the CP settings on pfSense redirect user to login page that is on my site?

    I want to build and host my own webserver shortly.. but if i can get this working noe it would be great.. so i can use google analyitics on it.

  • Limiting users to only certain web sites after captive portal

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    C

    Ok.  I appreciate that.  That is what I expected.  I'll just use router ACLs and be done with it.  Thanks!

  • Can't get Active Portal to Work on LAN Interface

    Locked
    13
    0 Votes
    13 Posts
    5k Views
    D

    If you'll be using CP then you shouldn't run transparent Squid on that same pfsense system.

    I guess it's a matter of personal preference, but I'd prefer to run disk-intensive software like Squid on a separate system anyway, with its defaults tuned to be a "server". Others prefer to have an all-in-one system, running a dozen services (e.g. antivirus, caching proxy, URL filtering, reverse proxies etc).

    IMHO a reasonable compromise would be to run a couple of VMs on the same physical server.

  • Use CP as authentication proxy for web services on WAN?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Captive portal user fixed to MAC

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    N

    @filip_pag:

    Is it possible to create user account to access internet
    that is fixed to one MAC or IP address?

    for example

    user: jerry
    jerrys MAC: xx:xx:xx:xx:xx:xx / IP: xxx.xxx.xxx.xxx

    so jerry can log in only from devince with that MAc/IP

    Do you mean that the access should only be allow if:
    Username + mac + IP are correct !?

    This cannot be done in just one step. I do not know any possibility to solve this in just one check.

    MAC <-> IP matching:
    enable DHCP and static MAC entry
    create a firewall rule for this IP which allows traffic and disallows other traffic from other IPs
    Enable Static ARP entries on DHCP

    for username/password check you can use different things:
    CaptivePortal
    Squid in non-transparent mode with user access

    Perhaps it will be possible with squid or CP and freeradius2 package as user backend.
    Setup a username/password entry in freeradius and add a custom "Check-Item" attribute for the client IP address. This will look like that:

    Framed-IP-Address == 192.168.10.125

    So if the NAS (CaptivePortal or Squid) send the "Framed-IP-Address of the host to the RADIUS than you can do a check against this attribute (Framed-IP-Address) and if the IP is wrong then the user will be rejected. You can do this with the MAC-Address, too if CaptivePortal or Squid is sending this:

    Calling-Station-ID == 00:11:22:aa:bb:cc

    But be careful, both attributes need to be CHECK-ITEMS and must not be REPLY-ITEMS to work !!!
    You can use both checks together, too.

    Hmm - if I read this again, then it could be possibly feasible to realize that in just one step  ;)

  • User Change Password Free Radius Captitive Portal

    Locked
    6
    0 Votes
    6 Posts
    8k Views
    L

    I am using DMA Softlabs Radius Manager software along with my RADIUS server.  This software has a User Control Panel which you can setup and the user can login, see their account details and change things like their personal details and password. I suggest you take a look at this.

  • CP not controling upload limts. download lims is controlled.

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • E-mail capture and Vouchers

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Anyone use CP with DMA Softlabs Radius Manager?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    L

    @kapara:

    I use it for a customer with 8 offices.  I host it in vmware environment in a datacenter since availability is crucial.  there are also hosted solutions which would cost about $50 per month…...

    Hey Kapara, Are you using it along with pfsense CP?  I am finding that it seems pfSense sends wrong data to the radius.  I guess a flaw in pfSense.  After a days usage and testing my user in radius manager shows traffic usage about 10 times higher that what the acutal usage was.  I had a traffic analysis software running on the machine.  I dont want to have to switch to mikrotik as i like pfsense, but i really need that pfsense sends correct accounting info to the radius.

  • Hardening the Captive Portal

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    D

    Going back to the subject of protecting the CP against abuse, I noticed the "Maximum concurrent connections per client IP address" ($maxprocperip) setting. A quick look at the source code (captiveportal.inc and system.inc) suggests it sets lighttpd's  evasive.max-conns-per-ip directive.

    However, if the $maxprocperip "Maximum concurrent connections" field is left empty in webGUI config, it doesn't create a lighty evasive.* directive at all in /var/etc/lighty-Captive*.

    I can't find any other way to enforce the "Default 4 connections per client IP, with a max of 16" so it seems like a small bug to me (either fix the comment in the webGUI, or put a value in $captive_portal_mod_evasive in system.inc)

  • Captive portal & squid in a non-transparent mode: CP bypassed

    Locked
    13
    0 Votes
    13 Posts
    17k Views
    marcellocM

    I'll do more tests here and feedback when possible.

  • Logout page as custom DNS entry

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.