Squid - Captive Portal.



  • Hello.
    Someone please tell me if you can install if you run Squid and the log of squid.
    I tried, but I have not seen a log.
    Thanks for the information.



  • Let's go there.  For more information.

    go on … through the console or ssh in pf.

    cat /var/squid/log/access.log | more

    or....

    Install lightsquid ( package ) and test.

    If I understand ... I hope have helped.



  • You can see the path to the squid log directory in the pfsense webGUI where you can configure squid.
    to better visualize squid logs you can use the Lightsquid package.
    This is an additional package you have to install on pfsense through the packe manager.



  • Hello, is installed lightsquid . but he always says this message " LigthSquid diagnostic.
    Error : report folder '/var/lightsquid/report' not contain any valid data! Please run lightparser.pl (and check 'report' folder content)
    Please check config file !"
    The log file is empty.  /var/squid/log/access.log
    Thanks.



  • you will have to enable logging in the squid GUI.



  • Done, but does not log.




  • Restart squid proxy service and the do

    cat /var/squid/logs/cache.log
    

    and take a look at the file above if an error occures since last service restart.



  • Thanks.
    this and 'the log generated after restarting.

    05:32:25| Preparing for shutdown after 107 requests
    2011/06/11 05:32:25| Waiting 3 seconds for active connections to finish
    2011/06/11 05:32:25| FD 18 Closing HTTP connection
    2011/06/11 05:32:25| FD 19 Closing HTTP connection
    2011/06/11 05:32:27| Starting Squid Cache version 2.7.STABLE9 for i386-portbld-freebsd8.1…
    2011/06/11 05:32:27| Process ID 1758
    2011/06/11 05:32:27| With 11095 file descriptors available
    2011/06/11 05:32:27| Using kqueue for the IO loop
    2011/06/11 05:32:27| DNS Socket created at 0.0.0.0, port 5592, FD 11
    2011/06/11 05:32:27| Adding domain zetar.it from /etc/resolv.conf
    2011/06/11 05:32:27| Adding nameserver 94.xxx.17.xx from /etc/resolv.conf
    2011/06/11 05:32:27| Adding nameserver 109.xxx.44.xx from /etc/resolv.conf
    2011/06/11 05:32:27| Referer logging is disabled.
    2011/06/11 05:32:27| logfileOpen: opening log /var/squid/log/access.log
    2011/06/11 05:32:27| Unlinkd pipe opened on FD 17
    2011/06/11 05:32:27| Swap maxSize 3072000 + 512000 KB, estimated 275692 objects
    2011/06/11 05:32:27| Target number of buckets: 13784
    2011/06/11 05:32:27| Using 16384 Store buckets
    2011/06/11 05:32:27| Max Mem  size: 512000 KB
    2011/06/11 05:32:27| Max Swap size: 3072000 KB
    2011/06/11 05:32:27| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
    2011/06/11 05:32:27| Store logging disabled
    2011/06/11 05:32:27| Rebuilding storage in /var/squid/cache (DIRTY)
    2011/06/11 05:32:27| Using Least Load store dir selection
    2011/06/11 05:32:27| Current Directory is /usr/local/www
    2011/06/11 05:32:27| Loaded Icons.
    2011/06/11 05:32:28| Accepting proxy HTTP connections at 172.xx.xx.253, port 3128, FD 18.
    2011/06/11 05:32:28| Accepting transparently proxied HTTP connections at 127.0.0.1, port 80, FD 19.
    2011/06/11 05:32:28| Accepting HTCP messages on port 4827, FD 20.
    2011/06/11 05:32:28| Accepting SNMP messages on port 3401, FD 21.
    2011/06/11 05:32:28| WCCP Disabled.
    2011/06/11 05:32:28| Ready to serve requests.
    2011/06/11 05:32:28| Done reading /var/squid/cache swaplog (2 entries)
    2011/06/11 05:32:28| Finished rebuilding storage from disk.
    2011/06/11 05:32:28|        2 Entries scanned
    2011/06/11 05:32:28|        0 Invalid entries.
    2011/06/11 05:32:28|        0 With invalid flags.
    2011/06/11 05:32:28|        2 Objects loaded.
    2011/06/11 05:32:28|        0 Objects expired.
    2011/06/11 05:32:28|        0 Objects cancelled.
    2011/06/11 05:32:28|        0 Duplicate URLs purged.
    2011/06/11 05:32:28|        0 Swapfile clashes avoided.
    2011/06/11 05:32:28|  Took 0.3 seconds (  6.8 objects/sec).
    2011/06/11 05:32:28| Beginning Validation Procedure
    2011/06/11 05:32:28|  Completed Validation Procedure
    2011/06/11 05:32:28|  Validated 2 Entries
    2011/06/11 05:32:28|  store_swap_size = 10k
    2011/06/11 05:32:28| storeLateRelease: released 0 objects
    2011/06/11 05:32:48| Starting Squid Cache version 2.7.STABLE9 for i386-portbld-freebsd8.1...
    2011/06/11 05:32:48| Process ID 17745
    2011/06/11 05:32:48| With 11095 file descriptors available
    2011/06/11 05:32:48| Using kqueue for the IO loop
    2011/06/11 05:32:48| DNS Socket created at 0.0.0.0, port 42147, FD 11
    2011/06/11 05:32:48| Adding domain zetar.it from /etc/resolv.conf
    2011/06/11 05:32:48| Adding nameserver 94.xxx.17.xx from /etc/resolv.conf
    2011/06/11 05:32:48| Adding nameserver 109.xxx.44.xx from /etc/resolv.conf
    2011/06/11 05:32:48| Referer logging is disabled.
    2011/06/11 05:32:48| logfileOpen: opening log /var/squid/log/access.log
    2011/06/11 05:32:48| Unlinkd pipe opened on FD 17
    2011/06/11 05:32:48| Swap maxSize 3072000 + 512000 KB, estimated 275692 objects
    2011/06/11 05:32:48| Target number of buckets: 13784
    2011/06/11 05:32:48| Using 16384 Store buckets
    2011/06/11 05:32:48| Max Mem  size: 512000 KB
    2011/06/11 05:32:48| Max Swap size: 3072000 KB
    2011/06/11 05:32:48| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
    2011/06/11 05:32:48| Store logging disabled
    2011/06/11 05:32:48| Rebuilding storage in /var/squid/cache (DIRTY)
    2011/06/11 05:32:48| Using Least Load store dir selection
    2011/06/11 05:32:48| Current Directory is /usr/local/www
    2011/06/11 05:32:48| Loaded Icons.
    2011/06/11 05:32:49| Accepting proxy HTTP connections at 172.xx.xx.253, port 3128, FD 18.
    2011/06/11 05:32:49| Accepting transparently proxied HTTP connections at 127.0.0.1, port 80, FD 19.
    2011/06/11 05:32:49| Accepting HTCP messages on port 4827, FD 20.
    2011/06/11 05:32:49| Accepting SNMP messages on port 3401, FD 21.
    2011/06/11 05:32:49| WCCP Disabled.
    2011/06/11 05:32:49| Ready to serve requests.
    2011/06/11 05:32:49| Done reading /var/squid/cache swaplog (2 entries)
    2011/06/11 05:32:49| Finished rebuilding storage from disk.
    2011/06/11 05:32:49|        2 Entries scanned
    2011/06/11 05:32:49|        0 Invalid entries.
    2011/06/11 05:32:49|        0 With invalid flags.
    2011/06/11 05:32:49|        2 Objects loaded.
    2011/06/11 05:32:49|        0 Objects expired.
    2011/06/11 05:32:49|        0 Objects cancelled.
    2011/06/11 05:32:49|        0 Duplicate URLs purged.
    2011/06/11 05:32:49|        0 Swapfile clashes avoided.
    2011/06/11 05:32:49|  Took 0.3 seconds (  6.9 objects/sec).
    2011/06/11 05:32:49| Beginning Validation Procedure
    2011/06/11 05:32:49|  Completed Validation Procedure
    2011/06/11 05:32:49|  Validated 2 Entries
    2011/06/11 05:32:49|  store_swap_size = 10k
    2011/06/11 05:32:49| storeLateRelease: released 0 objects



  • After the last update log file is populated.
    But the report still does not work here is the error that does.

    LigthSquid diagnostic.
    Error : report folder '/var/lightsquid/report' not contain any valid data! Please run lightparser.pl (and check 'report' folder content)
    Please check config file !
    Variable value
    $tplpatph /usr/local/www/lightsquid/tpl
    $templatename base
    $langpatph /usr/local/share/lightsquid/lang
    $langname it
    $reportpath /var/lightsquid/report
    Access to '/var/lightsquid/report' folder yes
    $graphreport 1
    folder content:
    Thanks.



  • In the past I used lightsquid. And I know, there were any problems starting lightsquid the first time.

    In lightsquid you have first to "refresh now" and then "refresh full" and then take a look at the reports.
    Further it could be a problem with Fireforx and caching the "old" lightsquid report file.
    You can try to refresh the report page with "CTRL+F5" or clear your cache and try again.



  • Hello.
    Now does the report of the Squid.
    It works fine if I use Google Chrome, a little 'less well if I use Mozilla.
    Senbra just to be a refresh problem, sometimes does not update the data.
    Thanks for your help.
    Until next time.


Locked