UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
UNDER CONSTRUCTION
root@proxy-ubuntu10:~#
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu
10.04.4 LTS"
root@proxy-ubuntu10:~#
cd /var/www/
root@proxy-ubuntu10:/var/www#
root@proxy-ubuntu10:/var/www#
wget
http://nchc.dl.sourceforge.net/project/lightsquid/lightsquid/1.8/lightsquid-1.8.tgz
--2016-04-15
10:59:04--
http://nchc.dl.sourceforge.net/project/lightsquid/lightsquid/1.8/lightsquid-1.8.tgz
Resolving
nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting
to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP
request sent, awaiting response... 200 OK
Length:
60868 (59K) [application/octet-stream]
Saving
to: `lightsquid-1.8.tgz'
100%[======================================>]
60,868 53.8K/s in 1.1s
2016-04-15
10:59:11 (53.8 KB/s) - `lightsquid-1.8.tgz' saved [60868/60868]
root@proxy-ubuntu10:/var/www#
ls -l
total
64
-rw-r--r--
1 root root 177 Apr 15 09:13 index.html
-rw-r--r--
1 root root 60868 Jul 6 2009 lightsquid-1.8.tgz
root@proxy-ubuntu10:/var/www#
tar -xvzf lightsquid-1.8.tgz
lightsquid-1.8/
lightsquid-1.8/.htaccess
lightsquid-1.8/bigfiles.cgi
lightsquid-1.8/check-setup.pl
lightsquid-1.8/common.pl
lightsquid-1.8/day_detail.cgi
lightsquid-1.8/doc/
lightsquid-1.8/doc/gnugpl.txt
lightsquid-1.8/doc/graph.txt
lightsquid-1.8/doc/install.txt
lightsquid-1.8/doc/logformat.txt
lightsquid-1.8/doc/readme.txt
lightsquid-1.8/doc/templates.txt
lightsquid-1.8/doc/thanks.txt
lightsquid-1.8/doc/version.txt
lightsquid-1.8/get.cgi
lightsquid-1.8/graph.cgi
lightsquid-1.8/group.cfg.src
lightsquid-1.8/group_detail.cgi
lightsquid-1.8/index.cgi
lightsquid-1.8/ip2name/
lightsquid-1.8/ip2name/ip2name.abils
lightsquid-1.8/ip2name/ip2name.demo
lightsquid-1.8/ip2name/ip2name.dhcp
lightsquid-1.8/ip2name/ip2name.dns
lightsquid-1.8/ip2name/ip2name.ip
lightsquid-1.8/ip2name/ip2name.list
lightsquid-1.8/ip2name/ip2name.simple
lightsquid-1.8/ip2name/ip2name.smb
lightsquid-1.8/ip2name/ip2name.squidauth
lightsquid-1.8/ip2name/ip2name.squidlist
lightsquid-1.8/ip2name/ip2name.squidlist2
lightsquid-1.8/lang/
lightsquid-1.8/lang/bg.lng
lightsquid-1.8/lang/check_lng.pl
lightsquid-1.8/lang/check_tpl_lng.pl
lightsquid-1.8/lang/cz.lng
lightsquid-1.8/lang/eng.lng
lightsquid-1.8/lang/fr.lng
lightsquid-1.8/lang/hu.lng
lightsquid-1.8/lang/it.lng
lightsquid-1.8/lang/pt_br.lng
lightsquid-1.8/lang/ru-koi8.lng
lightsquid-1.8/lang/ru.lng
lightsquid-1.8/lang/sp.lng
lightsquid-1.8/lang/ua.lng
lightsquid-1.8/lightparser.pl
lightsquid-1.8/lightsquid.cfg
lightsquid-1.8/month_detail.cgi
lightsquid-1.8/realname.cfg
lightsquid-1.8/report/
lightsquid-1.8/report/delete.me
lightsquid-1.8/skipuser.cfg
lightsquid-1.8/tools/
lightsquid-1.8/tools/fixreport.pl
lightsquid-1.8/tools/SiteAggregator/
lightsquid-1.8/tools/SiteAggregator/ReportExplorer.pl
lightsquid-1.8/tools/SiteAggregator/SiteAgregator.pl
lightsquid-1.8/topsites.cgi
lightsquid-1.8/tpl/
lightsquid-1.8/tpl/base/
lightsquid-1.8/tpl/base/bigfiles.html
lightsquid-1.8/tpl/base/day_detail.html
lightsquid-1.8/tpl/base/graph.html
lightsquid-1.8/tpl/base/group_detail.html
lightsquid-1.8/tpl/base/images/
lightsquid-1.8/tpl/base/images/datetime.png
lightsquid-1.8/tpl/base/images/flag_red.png
lightsquid-1.8/tpl/base/images/graph.png
lightsquid-1.8/tpl/base/images/printer.png
lightsquid-1.8/tpl/base/index.html
lightsquid-1.8/tpl/base/month_detail.html
lightsquid-1.8/tpl/base/topsites.html
lightsquid-1.8/tpl/base/user_detail.html
lightsquid-1.8/tpl/base/user_month.html
lightsquid-1.8/tpl/base/user_time.html
lightsquid-1.8/tpl/base/whousesite.html
lightsquid-1.8/tpl/text/
lightsquid-1.8/tpl/text/bigfiles.html
lightsquid-1.8/tpl/text/day_detail.html
lightsquid-1.8/tpl/text/group_detail.html
lightsquid-1.8/tpl/text/index.html
lightsquid-1.8/tpl/text/month_detail.html
lightsquid-1.8/tpl/text/topsites.html
lightsquid-1.8/tpl/text/user_detail.html
lightsquid-1.8/tpl/text/user_month.html
lightsquid-1.8/tpl/text/whousesite.html
lightsquid-1.8/user_detail.cgi
lightsquid-1.8/user_month.cgi
lightsquid-1.8/user_time.cgi
lightsquid-1.8/whousesite.cgi
root@proxy-ubuntu10:/var/www#
root@proxy-ubuntu10:/var/www#
mv lightsquid-1.8 lightsquid
root@proxy-ubuntu10:/var/www#
ls -l
total
68
-rw-r--r--
1 root root 177 Apr 15 09:13 index.html
drwxrwxr-x
8 501 staff 4096 Jul 3 2009 lightsquid
-rw-r--r--
1 root root 60868 Jul 6 2009 lightsquid-1.8.tgz
root@proxy-ubuntu10:/var/www#
cd lightsquid
root@proxy-ubuntu10:/var/www/lightsquid#
chmod +x *.cgi
root@proxy-ubuntu10:/var/www/lightsquid#
chmod +x *.pl
root@proxy-ubuntu10:/var/www/lightsquid#
chown -R www-data.www-data *
root@proxy-ubuntu10:/var/www/lightsquid#
ps aux | grep '(apache|httpd)'
root
1293 0.0 0.0 1892 672 pts/1 S+ 11:05 0:00 grep
--color=auto (apache|httpd)
Konfigurasi
Virtual Host :
root@proxy-ubuntu10:/var/www/lightsquid#
cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.asli
root@proxy-ubuntu10:/var/www/lightsquid#
pico /etc/apache2/httpd.conf
root@proxy-ubuntu10:/var/www/lightsquid#
cat /etc/apache2/sites-available/lightsquid112
<VirtualHost
*:80>
ServerAdmin
it@wanasl.com
ServerName
lightsquid112.wanasl.lcl
ServerAlias
www.lightsquid112.wanasl.lcl
DocumentRoot
/var/www/lightsquid
<Directory
"/var/www/lightsquid">
AddHandler
cgi-script .cgi
#Options
FollowSymLinks
AllowOverride
All
Options
+ExecCGI
</Directory>
ErrorLog
/var/log/apache2/error.log
#
Possible values include: debug, info, notice, warn, error, crit,
#
alert, emerg.
LogLevel
warn
CustomLog
/var/log/apache2/access.log combined
</VirtualHost>
root@proxy-ubuntu10:/var/www/lightsquid#
service apache2 restart
*
Restarting web server apache2
... waiting
[ OK ]
root@proxy-ubuntu10:/var/www/lightsquid#
cp lightsquid.cfg lightsquid.cfg.asli
Konfigurasi
default :
#path
to additional `cfg` files
$cfgpath
="/var/www/html/lightsquid";
#path
to `tpl` folder
$tplpath
="/var/www/html/lightsquid/tpl";
#path
to `lang` folder
$langpath
="/var/www/html/lightsquid/lang";
#path
to `report` folder
$reportpath
="/var/www/html/lightsquid/report";
#path
to access.log
$logpath
="/var/log/squid";
#path
to `ip2name` folder
$ip2namepath
="/var/www/html/lightsquid/ip2name";
Ubah
menjadi :
#path
to additional `cfg` files
#$cfgpath
="/var/www/html/lightsquid";
#path
to `tpl` folder
#$tplpath
="/var/www/html/lightsquid/tpl";
#path
to `lang` folder
#$langpath
="/var/www/html/lightsquid/lang";
#path
to `report` folder
#$reportpath
="/var/www/html/lightsquid/report";
#path
to access.log
#$logpath
="/var/log/squid";
#path
to `ip2name` folder
#$ip2namepath
="/var/www/html/lightsquid/ip2name";
#path
to additional `cfg` files
$cfgpath
="/var/www/lightsquid";
#path
to `tpl` folder
$tplpath
="/var/www/lightsquid/tpl";
#path
to `lang` folder
$langpath
="/var/www/lightsquid/lang";
#path
to `report` folder
$reportpath
="/var/www/lightsquid/report";
#path
to access.log
$logpath
="/var/log/squid";
#path
to `ip2name` folder
$ip2namepath
="/var/www/lightsquid/ip2name";
Dan
ctrl+w ; graph :
#if
you want user traffic GRAPHIC report, set it in 1
#WARNING
!!!, need libgd, GD.PM & other external modules !!!
#please
run check-setup.pl for check library !!!!
$graphreport
= 1;
root@proxy-ubuntu10:/var/www/lightsquid#
./check-setup.pl
perl:
warning: Setting locale failed.
perl:
warning: Please check that your locale settings:
LANGUAGE
= (unset),
LC_ALL
= (unset),
LC_PAPER
= "id_ID.UTF-8",
LC_ADDRESS
= "id_ID.UTF-8",
LC_MONETARY
= "id_ID.UTF-8",
LC_NUMERIC
= "id_ID.UTF-8",
LC_TELEPHONE
= "id_ID.UTF-8",
LC_IDENTIFICATION
= "id_ID.UTF-8",
LC_MEASUREMENT
= "id_ID.UTF-8",
LC_TIME
= "id_ID.UTF-8",
LC_NAME
= "id_ID.UTF-8",
LANG
= "en_US.UTF-8"
are
supported and installed on your system.
perl:
warning: Falling back to the standard locale ("C").
LightSquid
Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL
LogPath
: /var/log/squid
reportpath:
/var/www/lightsquid/report
Lang
: /var/www/lightsquid/lang/eng
Template
: /var/www/lightsquid/tpl/base
Ip2Name
: /var/www/lightsquid/ip2name/ip2name.simple
no:
GD.PM found, please install or set $graphreport=0 to disable
root@proxy-ubuntu10:/var/www/lightsquid#
apt-get install libgd-gd2-perl
root@proxy-ubuntu10:/var/www/lightsquid#
perl check-setup.pl
perl:
warning: Setting locale failed.
perl:
warning: Please check that your locale settings:
LANGUAGE
= (unset),
LC_ALL
= (unset),
LC_PAPER
= "id_ID.UTF-8",
LC_ADDRESS
= "id_ID.UTF-8",
LC_MONETARY
= "id_ID.UTF-8",
LC_NUMERIC
= "id_ID.UTF-8",
LC_TELEPHONE
= "id_ID.UTF-8",
LC_IDENTIFICATION
= "id_ID.UTF-8",
LC_MEASUREMENT
= "id_ID.UTF-8",
LC_TIME
= "id_ID.UTF-8",
LC_NAME
= "id_ID.UTF-8",
LANG
= "en_US.UTF-8"
are
supported and installed on your system.
perl:
warning: Falling back to the standard locale ("C").
LightSquid
Config Checker, (c) 2005-9 Sergey Erokhin GNU GPL
LogPath
: /var/log/squid
reportpath:
/var/www/lightsquid/report
Lang
: /var/www/lightsquid/lang/eng
Template
: /var/www/lightsquid/tpl/base
Ip2Name
: /var/www/lightsquid/ip2name/ip2name.simple
all
check passed, now try access to cgi part in browser
Merubah
nama host dari hanya berupa ip-address ke nama user dengan,
nano
realname.cfg
Isinya
seperti contoh dibawah ini, disesuaikan saja.
192.168.11.1
Proxy1
192.168.11.3 Proxy2
10.5.20.3 Webserver
10.5.20.4 Data-Center
10.5.20.50 Dono
10.5.20.51 Kasino
10.5.20.52 Indro
192.168.11.3 Proxy2
10.5.20.3 Webserver
10.5.20.4 Data-Center
10.5.20.50 Dono
10.5.20.51 Kasino
10.5.20.52 Indro
dan
seterusnya.......
Lalu simpan.
Sumber:Lalu simpan.
http://www.bangandi.web.id/2013/12/install-lightsquid-18-untuk-melihat.html
http://rudi-caur.blogspot.co.id/2013/07/install-lightsquid-pada-ubuntudebian.html
http://lightsquid.sourceforge.net/Installs.html
Tidak ada komentar:
Posting Komentar