On Wed, Oct 8, 2014 at 10:56 AM, Rahul Mahale <[email protected]> wrote:
> Hello
>
> I have some success to my problem but their are few concerns,
>
> What I did :-
>   1.Installed Raspbian on Pi(B+).
>   2.made it as a wifi hotspot using hostapd and udhcpd.
>   3.installed the squid3 proxy server(apt-get install squid3).
>   4.managed the routing through Iptables to go all traffic through proxy.
>   5.made the proxy transperent.
>   6.wrote an python script to analyse the squid log (access.log)
>   7.the log analyzer counts the bytes used by each ip and dumps it in
> sqlite db.
>   8.the wifi clients who exceeds the limit are put in to one acl file
> blockedip.
>   9.from squid.conf i use the blockedip acl list to restrict the access.
>   10.after setting the cron job i am able to block clients after particular
> data usage.

NIce.

However, putting everything in the RasPI  maybe OK for a hobby
project. bu it is a bit of a stretch for any commercial use.
Specifically IMO, the proxy server should be on the gateway just
before the egress F/W in your network.

>
> My Concerns:-
>
>   1.I am not able to bypass the  one domain abc.com from proxy which should
> not appear in access.log
>   2. How can I increase the size of access.log to maintain the logs for
> more time as Pi has low storage.
>
> Any suggestions ?

See above.

-- Arun Khan
-- 
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to