Monitoring user bandwidth
-
Hi,
i dont know if Pfsense do it or not, is it posible to log all users internet usage (Per username not IP address), for example i want to see a log file where contains Username and how much he used the internet in MB daily/weekly/monthly report.
example:Username Usage
John Smith 90MBanother question : can i give a specifice user the amount of internet usage when creating the user in the CP add user ?
Example :
Creating a username called John Smith he only can use 80MB download.
I hope my question is clear.
Thanks in advance
-
i dont know if Pfsense do it or not, is it posible to log all users internet usage (Per username not IP address), for example i want to see a log file where contains Username and how much he used the internet in MB daily/weekly/monthly report.
example:Use radius for authentication and accounting but be prepared to learn how to use freeradius, mysql (postgresql if you prefered another database instead of mysql). I didn't find easy to setup front-end/accounting software for that purpose but Dial-up Admin is good enough and it comes with freeradius.
Sasa
-
so cant i use the local directory ?
-
so cant i use the local directory ?
Local? No.
You can use local radius but with that solution you still need external database for accounting. For me, that's not a good idea. And, please, don't even think about putting database on firewall.You can use local only for authentication of your users.
And I must say that more appropriate term for what you seek is amount of data transferred per user than bandwidth.
-
i wasnt to use it as a captive portal not firewall, so how could i use local radius ?
-
i wasnt to use it as a captive portal not firewall, so how could i use local radius ?
If you don't use Captive portal, which part of PFs will send accounting to your radius server?
Using PFs only as a radius server? You can do that but, IMHO, you should use some linux/xBSD distro for that purpose.
I am not sure could you use PFs only as a traffic counter if that is what you intend to do or I am misunderstanding your intentions.Sasa
-
i mean i want to use the captive portal with local radius can i do that is pfsense ? i dont need any accounting things i need only to get username and the amount of MB of internet usage he used.
-
i mean i want to use the captive portal with local radius can i do that is pfsense ? i dont need any accounting things i need only to get username and the amount of MB of internet usage he used.
On your first question answer is - Yes, you can use CP with local radius.
Your second statement/question is contradictory - amount of traffic IS accounting.With local radius you can do some "primitive" accounting in a way that CP is generating start/stop messages to radius which write those in /var/log/radacct/users_IP address directory (like this one /var/log/radacct/192.168.151.252). Inside you will find file for each date (detail-20100608) in format detail-date_stamp.
I have attached sample file which I have created for you. In those files you will find data how much of traffic is generated by user from this IP for each individual session. It is up to you then to transfer those files to your accounting computer and do something meaningful with that data.
I hope that I have provided you with info needed.