Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Lightsquid on 2.2 should be OK now

    Scheduled Pinned Locked Moved Cache/Proxy
    25 Posts 7 Posters 6.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Using lightsquid should be OK on pfSense 2.2 currently, but if it doesn't work, please follow the procedure at https://doc.pfsense.org/index.php/Lightsquid_Troubleshooting to clear up some things that may have been left behind by old installs, other packages, manual hackery, etc.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • M
        mir
        last edited by

        Just installed lightsquid today. Seems to work except for the following:

        • sqstat: page deletes history meaning only active connections at exactly the moment page is refreshed is shown. Should it not present a page connections was shown kind of like a rolling page?
        • graphs: When trying to see graphs a blank page is the result.
        1 Reply Last reply Reply Quote 0
        • K
          kiekar
          last edited by

          I also just installed lightsquid in a clean install of pfSense 2.2. The reports works perfectly but unable to see the graph(500 internal server error) and I also receive No Active Connections with SqStat.

          Any idea how to correct these two issues.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I pushed a fix just now for the graphs.

            sqstat works fine for me. Keep in mind that sqstat only shows ACTIVE DOWNLOADS so unless you watch it like a hawk loading web pages barely will appear, long downloads will show.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              @mir:

              Just installed lightsquid today. Seems to work except for the following:

              • sqstat: page deletes history meaning only active connections at exactly the moment page is refreshed is shown. Should it not present a page connections was shown kind of like a rolling page?
              • graphs: When trying to see graphs a blank page is the result.

              No, sqstat does not present a log, it is only the currently active at the moment connections. You're only likely to see long/large downloads there.

              You may be thinking of the "real time" type view that I think Sarg has.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • M
                mir
                last edited by

                @jimp:

                You may be thinking of the "real time" type view that I think Sarg has.

                Yes, this was what I have in mind.

                1 Reply Last reply Reply Quote 0
                • M
                  mir
                  last edited by

                  @jimp:

                  I pushed a fix just now for the graphs.

                  I can confirm graphs are showing now. Thanks.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kiekar
                    last edited by

                    Hello Mir,

                    I can confirm graphs are showing now. Thanks.

                    How were you able to get the graph to work. It's still not functioning for me  :(

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Reinstall lightsquid, press save on the lightsquid settings, load the report, click the graph icon and make sure to force a refresh (shift+reload)

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • K
                        kiekar
                        last edited by

                        Hello Jimp,

                        Before I Uninstall lightsquid I want to make sure of the steps.

                        make sure to force a refresh (shift+reload)

                        shift is the shift key and reload is ?

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          The reload button on your browser. Or use ctrl-F5.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • K
                            kiekar
                            last edited by

                            Thanks Jimp, I'm installing the new version of lightsquid which I didn't realize was there.

                            1 Reply Last reply Reply Quote 0
                            • K
                              kiekar
                              last edited by

                              Worked perfectly, Thanks a lot for your contribution.

                              1 Reply Last reply Reply Quote 0
                              • M
                                mir
                                last edited by

                                @jimp:

                                Reinstall lightsquid, press save on the lightsquid settings, load the report, click the graph icon and make sure to force a refresh (shift+reload)

                                I dont think it is necessary to press save on settings since the settings will be reread automatically when you reinstall the updated package. I did not do this.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mrbasic
                                  last edited by

                                  Tried all fixes, Not working :(

                                  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 !

                                  I am new to Pfsense. Where does config files located?

                                  Tried Reinstall. I had Squidguard. Removed it, Reinstalled lightsquid. no progression.

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    Do you actually have log data from squid?
                                    Did you actually press "Refresh full" on lightsquid settings and wait?

                                    If you followed the directions at https://doc.pfsense.org/index.php/Lightsquid_Troubleshooting then you may not have an actual lightsquid problem, but a problem elsewhere leading it to not have data. Probably worth starting a fresh thread for.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hvac14400
                                      last edited by

                                      @jimp:

                                      sqstat works fine for me.

                                      really?

                                      Proxy Squid: Realtime stat (sqstat)

                                      Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /usr/local/www/sqstat/sqstat.class.php on line 426

                                      Squid RealTime stat 1.20 for the proxy server squid/3.4.10

                                      URI Curr. Speed Avg. Speed Size Time
                                      Total: 1 users and 1 connections @ 0.00/0.00 KB/s (CURR/AVG)
                                      Total: 1 users and 1 connections @ 0.00/0.00 KB/s (CURR/AVG)

                                      not working at all for me.

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        Not sure about the error at the top, but when I tested it, clients with long, active downloads showed in the list just fine.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          hvac14400
                                          last edited by

                                          i can tell you about error at the top - sqstat.class.php

                                          if ($connection) {
                                                  # username field is avaible in Squid 2.6 stable
                                                  if(substr($v,0,9)  == "username ")  $parsed["con"][$connection]["username"]  = substr($v, 9);
                                                  if(substr($v,0,5)  == "peer:")      $parsed["con"][$connection]["peer"]      = substr($v, 6);

                                          wtf is this "peer" line here, while squid returns "remote" instead?
                                          this shit right here just CAN'T work on any version above 3.1 or so - you must replace it with

                                          if(substr($v,0,7)  == "remote:")    $parsed["con"][$connection]["peer"]     = substr($v, 8);
                                          

                                          see?
                                          but even then sqstat shows total BS - speed keep increasing constantly, etc.
                                          so i really don't know, how is that possible

                                          sqstat works fine for me.

                                          :D
                                          tested on fresh install of 2.2-RELEASE (amd64)  built on Thu Jan 22 14:03:54 CST 2015  FreeBSD 10.1-RELEASE-p4
                                          3.4.10_2 pkg 0.2.6
                                          1.8.2 pkg v.2.35

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            hvac14400
                                            last edited by

                                            and btw - there is more bugs in that php code

                                            if(substr($v,0,3)=="me:") $parsed["con"][$connection]["me"]=substr($v,4);

                                            probable need to be replaced with something like

                                            if(substr($v,0,6)=="local:") $parsed["con"][$connection]["me"]=substr($v,7);
                                            

                                            tho i saw no difference after that.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.