---------- Forwarded message ---------- From: Siji Sunny sijisunny@gmail.com To: "GNU/Linux Users Group, Mumbai, India" linuxers@mm.ilug-bom.org.in Cc: Date: Tue, 26 Aug 2014 12:55:00 +0530 Subject: Re: [ILUG-BOM] [Network] Need suggestion
On 26 August 2014 12:31, Siji Sunny sijisunny@gmail.com wrote:
On 25 August 2014 19:55, Rahul Mahale rahul.mahale123@gmail.com
wrote:
Hi, I have a Raspberry Pi running Raspbian, and I have configured it
as a
wifi
hotspot using Hostapd and dhcp server. Mobile clients connect to
the
wifi
network and browse internet. I need to keep the track of each user,
how
much internet data it uses, and also need to limit the user to
particular
data limit (e.g:1 GB). I need to track data plan, as well how much
data
used or left for particular user.
Which tool or configuration will allow me to achieve this scenario?
Thanks in Advance.
*Rahul.R.Mahale.(**http://rahulmahale.wordpress.com/
http://rahulmahale.wordpress.com/**)*
Dear Rahul,
These systems will require a linux server/router box and little bit
of
setup( Sadly, i doubt the Pi has the grunt to run them.), but you can satisfy all your requirements and more. Again, it might be worth it
if
you
are looking at doing this on an organized basis, but may be too much
effort
for just personal use.
Squid will work without any issue on ARM platform, so RPi. Only you may need to compile it from source. Since the processing capacity of RPi is very low, you may not be able
to
handle much users/data.
Siji, i was not taking about basic squid, but rather the ISP grade
billing
systems that i had listed in my mail as not being able to run on the RPi Specificaly(Remember, this is an ARMv6 platform, with very limited resources available, compared to something like the beagelboard black, ARMv7+lots more ram).
This can be managed by Log-Cycle management and pushing data to a cloud server periodically. (which we are using ins some of our wifi projects, similar to his set-up).
http://www.freeside.biz/freeside/ http://www.citrusdb.org/ http://www.amberdms.com/
Also, the way he described his setup, it looks like he has only minimal storage available(Agreed, my assumption), so he would have to add more flash/SDCard Storage to provide any meaningful caching with squid, else just use squid as a pass through to throttle/account data usage(And dont get me started on the required storage space for the log files for all
that
data usage accounting).
Are Raspberry Pi B+ system specifications not capable for me to achieve this scenario with USB Wifi Adapter ?. I have 8 GB SD card and if needed I can mount USB drive as well. And is it necessary to compile squid from source rather then installing by apt-get ? Also I searched on squid delay pools but did'nt get any exact method to limit quota ,rest all are to limit bandwidth speed . will try it practically once i receive my Wifi Adapter. Also I would like to ask, Is it easily achievable to do with Capative Portal like fruitywifi or wifidog ?