LightSquid Cannot Update Proxy Log



  • Hi All,

    After i'm upgrade from Pfsense 1.2.3 to pfSense-Full-Update-2.0-RC3-i386-20110621-1542. The Lightsquid cannot keep latest log file.

    Before upgrade, the lightsquid still can update latest proxy report. Why?

    I have checked everything, Enable the Logging & Log store directory.

    Thx



  • Do your know how to solve this problem?

    Fresh installation Pfsense 2.0-RC3 & Squid & LightSquid.  The LightSquid still cannot displays out the log file…The log file have empty.

    Thx



  • Post you /usr/local/etc/squid/squid.conf and /usr/local/etc/lightsquid/lightsquid.cfg files.



  • I'm very new to Pfsense.

    Can you teach me how to export squid.conf & lightsquid.cfg ?

    thx



  • @Zan:

    I'm very new to Pfsense.

    Can you teach me how to export squid.conf & lightsquid.cfg ?

    thx

    Diagnostics: Execute command
    Execute Shell command
    cat /usr/local/etc/squid/squid.conf
    and
    cat /usr/local/etc/lightsquid/lightsquid.cfg



  • **Squid.conf **

    $ cat /usr/local/etc/squid/squid.conf

    Do not edit manually !

    http_port 192.168.3.3:3128
    http_port 127.0.0.1:80 transparent
    icp_port 0

    pid_filename /var/run/squid.pid
    cache_effective_user proxy
    cache_effective_group proxy
    error_directory /usr/local/etc/squid/errors/English
    icon_directory /usr/local/etc/squid/icons
    visible_hostname localhost
    cache_mgr admin@localhost
    access_log /var/squid/log/access.log
    cache_log /var/squid/log/cache.log
    cache_store_log none
    shutdown_lifetime 3 seconds

    Allow local network(s) on interface(s)

    acl localnet src  192.168.3.0/255.255.255.0
    uri_whitespace strip

    cache_mem 8 MB
    maximum_object_size_in_memory 32 KB
    memory_replacement_policy heap GDSF
    cache_replacement_policy heap LFUDA
    cache_dir ufs /var/squid/cache 100 16 256
    minimum_object_size 0 KB
    maximum_object_size 10 KB
    offline_mode off

    No redirector configured

    Setup some default acls

    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255
    acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128 1025-65535
    acl sslports port 443 563 
    acl manager proto cache_object
    acl purge method PURGE
    acl connect method CONNECT
    acl dynamic urlpath_regex cgi-bin ?
    acl blacklist dstdom_regex -i "/var/squid/acl/blacklist.acl"
    cache deny dynamic
    http_access allow manager localhost

    http_access deny manager
    http_access allow purge localhost
    http_access deny purge
    http_access deny !safeports
    http_access deny CONNECT !sslports

    Always allow localhost connections

    http_access allow localhost

    request_body_max_size 0 KB
    reply_body_max_size 0 deny all
    delay_pools 1
    delay_class 1 2
    delay_parameters 1 -1/-1 -1/-1
    delay_initial_bucket_level 100
    delay_access 1 allow all

    Block access to blacklist domains

    http_access deny blacklist

    Setup allowed acls

    Allow local network(s) on interface(s)

    http_access allow localnet

    Default block all to be sure

    http_access deny all



  • LightSquid.cfg

    $ cat /usr/local/etc/lightsquid/lightsquid.cfg
    #!/usr/bin/perl

    LightSquid Project © 2004-2008 Sergey Erokhin aka ESL

    This program is free software; you can redistribute it and/or

    modify it under the terms of the GNU General Public License

    as published by the Free Software Foundation; either version 2

    of the License, or (at your option) any later version.

    detail see in gnugpl.txt

    -------------------- GLOBAL VARIABLES  ---------------------------

    #path to additional cfg files
    $cfgpath = "/usr/local/etc/lightsquid";
    #path to tpl folder
    $tplpath = "/usr/local/www/lightsquid/tpl";
    #path to lang folder
    $langpath = "/usr/local/share/lightsquid/lang";
    #path to report folder
    $reportpath = "/var/lightsquid/report";
    #path to access.log
    $logpath = "/var/squid/log";
    #path to ip2name folder
    $ip2namepath = "/usr/local/libexec/lightsquid";

    #path to lockfile ;-)
    $lockpath            =$reportpath;

    #if lockfile older $maxlocktime second, remove old lock file.
    $maxlocktime     = 30*60;

    #if 1 - lightparser generate some statistic
    $debug              = 0; 
    #if 1 - lightparser generate skip details, 2 ..., 3 ..., ....
    $debug2              = 0;

    -------------------- LightParser VARIABLES  ---------------------------

    #squid log type
    #if native squid format (default squid, see in doc) - must be 0
    #if EmulateHttpdLog ON - set 1
    #digit - for speed optimization
    #try it set to 1 if parser generate warning

    #see also month2dec below !!!!

    $squidlogtype = 0;

    #if you want skip some sites from stat, example our local www server
    #WARNING !!!, don't leave this variable empty !!!
    #example, if you want skip LOCAL site, put it here
    #WARNING2
    #use '' instead of "" !!!!!!!!!!!

    #$skipurl            = 'zdd.com|192.168.1.|cnn.com';
    $skipurl = "zzz.zzz";

    #define sobroutine file for convertion from IP into name
    #if you want skip some ip from log - return "SKIP THIS IP" ;-)
    #detail see in ip2name folder,

    $ip2name = "ip";;

    #use for convert from Text to Dec convertion if EmualteHttpdLog format !!!!
    #fix it if need
    %month2dec = ( Jan => 1, Feb => 2, Mar => 3, Apr => 4, May => 5,Jun => 6,
                  Jul => 7, Aug => 8, Sep => 9, Oct => 10, Nov => 11,Dec => 12);

    -------------------- Common (Parser & Web) VARIABLES  ----------------------

    #create & use time report statistic (logsize = logsize*2) ;-))
    $timereport          = 1;

    -------------------- WEB VARIABLES  ----------------------------------------

    #language
    #see lang folder (avaible: bg,eng,fr,hu,it,pt_br,ru,sp)
    $lang = "eng";;

    #html template name
    #see template folder tpl/$templatename/
    $templatename = "base";;
    #$templatename        ="ric";
    #$templatename        ="base.css";

    #define type of decimal output
    #fine  123456789 -> 123,456,789
    #class 123456789 ->      117.7 G
    $DecOutType="class";

    define delimiter for thousands (in fine mode)

    = " " -> 12 345 678

    = "," -> 12,345,678

    = ""  ->  12345678

    $decdelimiter        = " ";

    #if you dont need Group mode, do =0
    $showgrouplink     = 1;

    #if not zero, groups look like "01. Group1", if zero - "Group1"
    $showgroupid        = 1;

    #if you dont need oversize report , do =0
    $showoversizelink    = 1;

    #show how many data user send to internet
    $showputpost        = 0;
    #if putpost higer this variable (in percent), highlight it
    $putpostwarninglevel =15;

    #use or not .realname files
    #.realname contain pair userid -> Full User Name
    $userealname        = 1;

    #if url size exceed $bigfilelimit - add this file into report
    $bigfilelimit        = 210241024;

    #user maximum size per day limit (oversize)
    $perusertrafficlimit = 1010241024;

    weekend display mode

    both - select sunday & monday

    monday - only monday

    $weekendmode="both";

    #how many site show in TopSites report
    $topsiteslimit      = 500;

    #how many site show in user time report
    $usertimelimit      = 200;

    #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;

    #higest value on graph report

    for user month report (0.05*(...) = 50mb)

    $graphmaxuser=0.05*(102410241024);

    for all user month report (1.05*(...) = 1 Gb)

    $graphmaxall =0.80*(102410241024);

    #color scheme for GRAPHICs, avaible "orange","blue","green","yellow","brown","red"
    $barcolor = "orange";;

    #-------------------------------------------------------------------------- Group support

    sub CreateGroupFile($) {
      my $path=shift;

    open Fi,"<$cfgpath/group.cfg";
      open Fo,">$path/.group";
      while (<fi>) {
        print Fo $_;
      }
      close Fo;
      close Fi;
    }

    #-------------------------------------------------------------------------- RealName support

    sub CreateRealnameFile($) {
      my $path=shift;

    open Fi,"<$cfgpath/realname.cfg";
      open Fo,">$path/.realname";
      while (<fi>) {
        print Fo $_;
      }
      close Fo;
      close Fi;
    }</fi></fi>


Log in to reply