March 28, 2024, 11:16:54 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Instant monitering through Squid and reposrting :)  (Read 4916 times)

Offline kartook

  • Linux Noob !
  • *
  • Posts: 4
Instant monitering through Squid and reposrting :)
« on: August 03, 2009, 02:36:05 PM »
Hi every body Thanks for giving the chance

Q 1 .

How to install the transparent proxy sever on 10.10.10.0/255.255.255.0 Network  .

Q 2 .

How to know the gtalk  ( web and client ) ,Yahoo ( client and web ) , ICQ ,Pidgin chat timings ( Duration only )  ?

Q 3 .

Need to different types of reports ? recommend top3 squid report generators ?

Q 4 .

HOw to Exclude particular user  from proxy ( bypass the proxy monitoring ) ???

I will tell you i am newbie  ???


Offline kaushalpatel1982

  • LST CareTaker
  • Linux Learner
  • *****
  • Posts: 87
Re: Instant monitering through Squid and reposrting :)
« Reply #1 on: September 24, 2009, 07:32:18 AM »
1. How to install the transparent proxy sever on 10.10.10.0/255.255.255.0 Network  .
Ans : I assume that you can configure squid proxy by yourself. You need to configure ACL that allow the said network in squid.conf.
Use IPtables following command to complete it:

To insert to the top of all the IPtables rules
#iptables -t nat -I PREROUTING -s 10.10.10.0/24 -p tcp --dport 80 -j REDIRECT --to-port <Your proxy port>

To insert to the bottom of all the IPtables rules
#iptables -t nat -A PREROUTING -s 10.10.10.0/24 -p tcp --dport 80 -j REDIRECT --to-port <Your proxy port>

2.How to know the gtalk  ( web and client ) ,Yahoo ( client and web ) , ICQ ,Pidgin chat timings ( Duration only )  ?
Ans: You can not messure duration of the messanger timing as well as individual websites. The reports provide you the site list and the access time of the sites.

3. Need to different types of reports ? recommend top3 squid report generators ?
Ans: There are many types of report generater available. You can configure SARG or MYSAR for Local reporting and IVIEW for remote reporting using syslog.

4. HOw to Exclude particular user  from proxy ( bypass the proxy monitoring )?
Ans: Just add one rule on the top of the transperent proxy to just ACCEPT the 80 port traffic for the particular host.
like :

#iptables -t nat -A PREROUTING -s 10.10.10.0/24 -p tcp --dport 80 -j REDIRECT --to-port <Your proxy port>
# iptables -t nat -I PREROUTING -s 10.10.10.100/32 -p tcp --dport 80 -j ACCEPT
# iptables -t nat -I POSTROUTING -s 10.10.10.100/32 -d 0.0.0.0/0 -j MASQUERADE
and you bypass the proxy server.

Offline kartook

  • Linux Noob !
  • *
  • Posts: 4
Re: Instant monitering through Squid and reposrting :)
« Reply #2 on: September 26, 2009, 06:08:04 AM »
Thanks for the reply

Thanks
K~