Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
pdf
pfsense-ovpn.pdf 1,598.5 kB 1 14-Apr-2010 14:30 turchetti
jpg
pfsensesquidlog.jpg 51.2 kB 1 14-Apr-2010 14:30 CerlettiPaolo

This page (revision-46) was last changed on 14-Apr-2010 14:30 by Raschetti  

This page was created on 14-Apr-2010 14:30 by turchetti

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 57 changed one line
!!Configurazione
!!Configurazione squid
At line 59 added 66 lines
Per inviare il log al demone "syslog:LOCAL7" di pfsense aggiungere in "Custom Option"
%%prettify
{{{
access_log syslog:LOG_LOCAL7 squid;
}}}
/%
corrispondente al log dhcp\\
!In Status->SystemLog->Setting\\
Abilitare "Enable syslog'ing to remote syslog server"\\
Inserire l'IP del Remote Syslog Server\\
Abilitare "DHCP service events" corrispondente a syslog:LOG_LOCAL7 su cui squid va a scrivere
!!Configurazione server di log
Installare syslog-ng\\
aggiungere in /etc/syslog-ng/syslog-ng.conf
%%prettify
{{{
source pfsense { udp(ip(192.168.1.4) port(514));};
destination squid { file("var/log/squid/access.$HOST.log");};
log { source(pfsense); destination(squid); };
}}}
/%
Come indirizzo IP inserire quello dell'interfaccia di rete in ascolto sul server
!!Elaborazione LOG con Sarg
!Configurazione
/etc/squid/sarg.conf\\
abilitare Italian e i grafici\\
Il log ricevuto andrà formattato prima di darlo in pasto a sarg in quanto, con il logging remoto vengono aggiunti dei tag non necessari\\
%%prettify
{{{
cat /var/log/squid/access.hos1.log | cut -d ' ' -f 6- > /var/log/squid/access.host1.formatted.log
}}}
/%
Successivamente farlo elaborare da sarg
%%prettify
{{{
sarg -l ImputLog -o OutputDir
}}}
/%
Otterremo il log in formato HTML nella dyrectory da noi scelta
!!!tips
1)accesso http a reti private abilitare "Bypass proxy for Private Address Space (RFC 1918) destination"
2) logrotate 1gg per dischi piccoli altrimenti si riempie con swap file
Version Date Modified Size Author Changes ... Change note
46 14-Apr-2010 14:30 5.609 kB Raschetti to previous
45 14-Apr-2010 14:30 5.415 kB CerlettiPaolo to previous | to last
44 14-Apr-2010 14:30 5.263 kB CerlettiPaolo to previous | to last
43 14-Apr-2010 14:30 4.482 kB CerlettiPaolo to previous | to last
42 14-Apr-2010 14:30 4.054 kB CerlettiPaolo to previous | to last
41 14-Apr-2010 14:30 3.846 kB CerlettiPaolo to previous | to last
« This page (revision-46) was last changed on 14-Apr-2010 14:30 by Raschetti