[ASK] Squidstats di pfSense 2.0
-
Newbie nih, pingin tahu apakah squidstats bisa jalan di pfSense 20 beta 4?
Saya sudah coba ikuti langkah2 om grage95 di http://forum.pfsense.org/index.php/topic,20679.0.html
pkg_add -rv squidstats
after finisih, lets go config
mkdir -p /var/db/squidstats/graphs
mkdir -p /var/db/squidstats/rrd
chown www:wheel /var/db/squidstats/graphs
chown proxy:wheel /var/db/squidstats/rrdln -s /var/db/squidstats/graphs /usr/local/www/data/
ln -s /usr/local/www/cgi-bin/graph-summary.cgi /usr/local/www/graph-summary.cgi
su -m proxy -c "/usr/local/bin/squidstats.pl createdb"
su -m proxy -c "/usr/local/bin/squidstats.pl gather 2"edit /etc/crontab
add this line*/5 * * * * /usr/local/bin/squidstats.pl gather 2 > /dev/null
restart crontab /etc/rc.d/cron restart
test open with your browser
http://your-ip/graph-summary.cgi
setelah sebelumnya memasukkan di squid.conf:
acl snmp_host src 127.0.0.1 snmp_port 3401 acl snmppublic snmp_community public snmp_access allow snmppublic snmp_host snmp_access deny all
Tapi selalu jika akses ke http://my-pfsense-ip/graph-summary.cgi dapetnya 500 - Internal Server Error
Ada yang bisa kasih pencerahan?
pfSense 2.0-BETA4 (i386) built on Thu Dec 2 09:23:11 EST 2010
Squid with LUSCA Head# squid -v Squid Cache: Version LUSCA r14829 patched: chudy r14 configure options: '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB LDAP SASL YP' '--enable-digest-auth-helpers=password ldap' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group ldap_group' '--enable-ntlm-auth-helpers=SMB' '--with-pthreads' '--enable-storeio=aufs null coss' '--enable-delay-pools' '--enable-snmp' '--disable-wccp' '--disable-ident-lookups' '--enable-arp-acl' '--enable-pf-transparent' '--with-large-files' '--enable-large-cache-files' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish Dutch English Estonian Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Lithuanian Polish Portuguese Romanian Russian-1251 Russian-koi8-r Serbian Simplify_Chinese Slovak Spanish Swedish Traditional_Chinese Turkish' '--enable-default-err-language=English' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.0' 'build_alias=i386-portbld-freebsd8.0' 'CC=cc' 'CFLAGS=-O2 -pipe -I/usr/local/include -I/usr/local/include -DLDAP_DEPRECATED -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include'
Hardware Info:
Processors 1 Model AMD Phenom(tm) II X4 940 Processor CPU Speed 3 GHz PCI Devices - atapci0: Intel PIIX4 UDMA33 controller - ehci0: EHCI (generic) USB 2.0 controller - em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 - em1: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 - isab0: PCI-ISA bridge - mpt0: LSILogic 1030 Ultra4 Adapter - uhci0: Intel 82371AB/EB (PIIX4) USB controller - vgapci0: VGA-compatible display IDE Devices - acd0: VMware Virtual IDE CDROM Drive/00000001 - ad0: VMware Virtual IDE Hard Drive 00000001 (Capacity: 41.96 GB)
-
@try:
Newbie nih, pingin tahu apakah squidstats bisa jalan di pfSense 20 beta 4?
Saya sudah coba ikuti langkah2 om grage95 di http://forum.pfsense.org/index.php/topic,20679.0.html
pkg_add -rv squidstats
after finisih, lets go config
mkdir -p /var/db/squidstats/graphs
mkdir -p /var/db/squidstats/rrd
chown www:wheel /var/db/squidstats/graphs
chown proxy:wheel /var/db/squidstats/rrdln -s /var/db/squidstats/graphs /usr/local/www/data/
ln -s /usr/local/www/cgi-bin/graph-summary.cgi /usr/local/www/graph-summary.cgi
su -m proxy -c "/usr/local/bin/squidstats.pl createdb"
su -m proxy -c "/usr/local/bin/squidstats.pl gather 2"edit /etc/crontab
add this line*/5 * * * * /usr/local/bin/squidstats.pl gather 2 > /dev/null
restart crontab /etc/rc.d/cron restart
test open with your browser
http://your-ip/graph-summary.cgi
setelah sebelumnya memasukkan di squid.conf:
acl snmp_host src 127.0.0.1 snmp_port 3401 acl snmppublic snmp_community public snmp_access allow snmppublic snmp_host snmp_access deny all
Tapi selalu jika akses ke http://my-pfsense-ip/graph-summary.cgi dapetnya 500 - Internal Server Error
Ada yang bisa kasih pencerahan?
pfSense 2.0-BETA4 (i386) built on Thu Dec 2 09:23:11 EST 2010
Squid with LUSCA Head# squid -v Squid Cache: Version LUSCA r14829 patched: chudy r14 configure options: '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB LDAP SASL YP' '--enable-digest-auth-helpers=password ldap' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group ldap_group' '--enable-ntlm-auth-helpers=SMB' '--with-pthreads' '--enable-storeio=aufs null coss' '--enable-delay-pools' '--enable-snmp' '--disable-wccp' '--disable-ident-lookups' '--enable-arp-acl' '--enable-pf-transparent' '--with-large-files' '--enable-large-cache-files' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish Dutch English Estonian Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Lithuanian Polish Portuguese Romanian Russian-1251 Russian-koi8-r Serbian Simplify_Chinese Slovak Spanish Swedish Traditional_Chinese Turkish' '--enable-default-err-language=English' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.0' 'build_alias=i386-portbld-freebsd8.0' 'CC=cc' 'CFLAGS=-O2 -pipe -I/usr/local/include -I/usr/local/include -DLDAP_DEPRECATED -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include'
Hardware Info:
Processors 1 Model AMD Phenom(tm) II X4 940 Processor CPU Speed 3 GHz PCI Devices - atapci0: Intel PIIX4 UDMA33 controller - ehci0: EHCI (generic) USB 2.0 controller - em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 - em1: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 - isab0: PCI-ISA bridge - mpt0: LSILogic 1030 Ultra4 Adapter - uhci0: Intel 82371AB/EB (PIIX4) USB controller - vgapci0: VGA-compatible display IDE Devices - acd0: VMware Virtual IDE CDROM Drive/00000001 - ad0: VMware Virtual IDE Hard Drive 00000001 (Capacity: 41.96 GB)
punyaku jalan koq di 2.0beta4 25 des 2010.
coba yag ini ln -s /var/db/squidstats/graphs /usr/local/www/data/
diganti ln -s /var/db/squidstats/graphs /usr/local/www/ -
ya squiidstat kan berbasis web .. maka dari itu silahkan sesuiakan penempatan files web sesuaikan dengan config nya.