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

Squid3 - New GUI with sync, normal and reverse proxy

Scheduled Pinned Locked Moved Cache/Proxy
428 Posts 104 Posters 478.0k 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.
  • T
    technical
    last edited by Jun 13, 2013, 6:04 AM Jun 13, 2013, 5:59 AM

    Update :13-06-2013 09:00 PM access.log rotate is not working, still including yesterday log events.

    1371044860.589  1479 10.50.2.115 TCP_MISS/200 39264 GET http://www.youtube.com/ - DIRECT/173.194.39.199 text/html

    time stamp = GMT: Wed, 12 Jun 2013 13:47:40 GMT

    Necati Selim GÜNER
    IT Technician

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Jun 13, 2013, 2:23 PM

      If the script is on cron and if you can successful run it by hand, It's not related to squid.

      Are you on nanobsd?

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • T
        technical
        last edited by Jun 13, 2013, 3:03 PM Jun 13, 2013, 2:57 PM

        @marcelloc:

        If the script is on cron and if you can successful run it by hand, It's not related to squid.

        Are you on nanobsd?

        no not nanobsd, system running at P4 PC

        how to create script without delete the access.log file
        if im create rm -rf command log file will be deleted. how to clean the only inside access.log file.

        Necati Selim GÜNER
        IT Technician

        1 Reply Last reply Reply Quote 0
        • M
          marcelloc
          last edited by Jun 13, 2013, 6:58 PM

          @TechnicaL:

          how to create script without delete the access.log file
          if im create rm -rf command log file will be deleted. how to clean the only inside access.log file.

          squid -k rotate  -f /usr/local/etc/squid/squid.conf does it.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • T
            technical
            last edited by Jun 14, 2013, 5:08 AM

            @marcelloc:

            @TechnicaL:

            how to create script without delete the access.log file
            if im create rm -rf command log file will be deleted. how to clean the only inside access.log file.

            squid -k rotate  -f /usr/local/etc/squid/squid.conf does it.

            oke i ll try it and inform you.

            Necati Selim GÜNER
            IT Technician

            1 Reply Last reply Reply Quote 0
            • A
              arch113
              last edited by Jun 14, 2013, 9:00 PM Jun 14, 2013, 6:21 PM

              Does any version of Squidguard work with this -dev version of squid?  I cant seem to get the Service to START.

              1 Reply Last reply Reply Quote 0
              • M
                marcelloc
                last edited by Jun 14, 2013, 9:08 PM

                @arch113:

                Does any version of Squidguard work with this -dev version of squid?  I cant seem to get the Service to START.

                Since squid 3, it starts on demand. If you have access then squidguard will run.

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • T
                  technical
                  last edited by Jun 15, 2013, 5:50 AM

                  @marcelloc:

                  squid -k rotate  -f /usr/local/etc/squid/squid.conf does it.

                  marchelloc it does not work. still access.log file include 12.06.2013 events.
                  installed packages

                  squid3                3.1.20 pkg 2.0.6
                  squidguard        1.4_4 pkg v.1.9.5
                  Lightsquid          1.8.2 pkg v.2.32

                  Necati Selim GÜNER
                  IT Technician

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tikimotel
                    last edited by Jun 15, 2013, 8:22 AM Jun 15, 2013, 8:20 AM

                    @arch113:

                    Does any version of Squidguard work with this -dev version of squid?  I cant seem to get the Service to START.

                    If you reinstalled the packages, sometimes squid is already started without "kids" or "children" active.
                    Somehow when squid is running it won't take the squidguard process as a child-process.
                    When that happens, just stop squid via the dashboard or services page and restart using the save button in the proxy server page.

                    I use squid3-dev with squidGuard-squid3.
                    With squid3 and onwards I always manually edit the "squidguard_configurator.inc" to use squid3 options for child-processes.

                    
                    # ------------------------------------------------------------------------------
                    # squid config options
                    # ------------------------------------------------------------------------------
                    define('REDIRECTOR_OPTIONS_REM',   '# squidGuard options');
                    define('REDIRECTOR_PROGRAM_OPT',   'url_rewrite_program');
                    define('REDIRECT_BYPASS_OPT',      'url_rewrite_bypass');
                    define('REDIRECT_CHILDREN_OPT',    'url_rewrite_children');
                    define('REDIRECTOR_PROCESS_COUNT', '12 startup=8 idle=6 concurrency=0'); # redirector processes count will start with 8 do a max of 12 and idles at 6 (with v3.3+)
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • T
                      technical
                      last edited by Jun 17, 2013, 2:21 PM

                      marcelloc any news ?

                      Necati Selim GÜNER
                      IT Technician

                      1 Reply Last reply Reply Quote 0
                      • T
                        technical
                        last edited by Jun 21, 2013, 5:19 AM

                        Access.log file still rise marchelloc can u check log rotation on squid3 ?

                        we are still looking your help. thank you.

                        Necati Selim GÜNER
                        IT Technician

                        1 Reply Last reply Reply Quote 0
                        • M
                          marcelloc
                          last edited by Jun 21, 2013, 11:14 AM

                          Did you tried sarg instead of lightsquid?

                          You can disable log rotate on squid gui and enable it on sarg.

                          Treinamentos de Elite: http://sys-squad.com

                          Help a community developer! ;D

                          1 Reply Last reply Reply Quote 0
                          • T
                            technical
                            last edited by Jun 21, 2013, 12:26 PM

                            @marcelloc:

                            Did you tried sarg instead of lightsquid?

                            You can disable log rotate on squid gui and enable it on sarg.

                            many turkish ppl using lightsquid because we translated lightsquid from turkish language http://forum.pfsense.org/index.php/topic,62008.0.html

                            many ppl must use lightsquid can u check the problem for lightsquid package.

                            and i ll try it with sarg and inform you.

                            Necati Selim GÜNER
                            IT Technician

                            1 Reply Last reply Reply Quote 0
                            • T
                              technical
                              last edited by Jun 22, 2013, 6:32 AM

                              I ll tryed sarg with log rotate.

                              there is no change
                              still not rotated access.log file

                              check the image's.

                              sarg1.jpg
                              sarg1.jpg_thumb
                              sarg2.jpg
                              sarg2.jpg_thumb
                              accesslog.jpg
                              accesslog.jpg_thumb

                              Necati Selim GÜNER
                              IT Technician

                              1 Reply Last reply Reply Quote 0
                              • M
                                marcelloc
                                last edited by Jun 24, 2013, 4:39 AM

                                Do you have sarg reports created? On my machine it rotates successfully.

                                Remember to disable log rotating on squid and check sarg script on cron.

                                Did you tried to reinstall squid package to any other version?

                                What permissions do you have on squid logs and dir?

                                Treinamentos de Elite: http://sys-squad.com

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • T
                                  technical
                                  last edited by Jun 24, 2013, 5:39 AM Jun 24, 2013, 5:34 AM

                                  @marcelloc:

                                  Do you have sarg reports created? On my machine it rotates successfully.

                                  Remember to disable log rotating on squid and check sarg script on cron.

                                  Did you tried to reinstall squid package to any other version?

                                  What permissions do you have on squid logs and dir?

                                  answer 1 =Do you have sarg reports created? = no i did 1 time using for force there are no auto created reports.
                                  answer 2 =Remember to disable log rotating on squid and check sarg script on cron. = i did check in the screen shots.
                                  answer 3 =Did you tried to reinstall squid package to any other version? =i ll try reinstall , not tryed another version.
                                  answer 4 =What permissions do you have on squid logs and dir? = u see below

                                  /var/squid directory have 0775 chmod.
                                  /var/squid/logs directory have 0777 chmod.
                                  /var/squid/logs/access.log have 0640.
                                  /var/squid/logs/cache.log have 0640.

                                  thank you.

                                  ![squid log rotate.jpg_thumb](/public/imported_attachments/1/squid log rotate.jpg_thumb)
                                  sargreport.jpg
                                  sargreport.jpg_thumb
                                  cron.jpg
                                  cron.jpg_thumb
                                  ![squid log rotate.jpg](/public/imported_attachments/1/squid log rotate.jpg)

                                  Necati Selim GÜNER
                                  IT Technician

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    marcelloc
                                    last edited by Jun 24, 2013, 8:11 PM

                                    If sarg report was created by cron, then your cron is running.

                                    When you run squid -k rotate by hand it works, so your squid is working.

                                    If cron is running and squid is running, I have no idea why your logs are not rotating.

                                    Treinamentos de Elite: http://sys-squad.com

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      technical
                                      last edited by Jun 25, 2013, 5:31 AM Jun 25, 2013, 5:23 AM

                                      sarg not creating auto reports (this strange)
                                      if im use command like screen shot sarg generating a report
                                      and i ll use for squid rotation command squid -k rotate  -f /usr/local/etc/squid/squid.conf (it is not working) there are no rotate logs (really this strange to)

                                      that is a my system log

                                      Jun 25 00:00:14 squid[52049]: Squid Parent: child process 52389 started
                                      Jun 25 00:00:03 php: : executing squid log rotate after sarg.
                                      Jun 25 00:00:02 php: : Sarg: force refresh now with -d date +%d/%m/%Y-date +%d/%m/%Y args, compress(on) and both action after sarg finish.

                                      wtf is that :)

                                      update : (i ll check that command for ssh it shows )

                                      [2.0.3-RELEASE][root@firewall.local]/root(3): /usr/bin/nice -n20 /usr/local/etc/rc.d/squidGuard_logrotate
                                      tail: -: No such file or directory
                                      tail: -: No such file or directory
                                      tail: -: No such file or directory
                                      tail: -: No such file or directory
                                      tail: -: No such file or directory
                                      tail: -: No such file or directory

                                      Necati Selim GÜNER
                                      IT Technician

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcelloc
                                        last edited by Jun 25, 2013, 2:15 PM

                                        Are you sure your install is not corrupted?

                                        It looks like tail is missing and cron is not running/working.

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          technical
                                          last edited by Jun 25, 2013, 2:46 PM

                                          @marcelloc:

                                          Are you sure your install is not corrupted?

                                          It looks like tail is missing and cron is not running/working.

                                          if cron is not works how to created that logs correct time ?

                                          Jun 25 00:00:14    squid[52049]: Squid Parent: child process 52389 started
                                          Jun 25 00:00:03    php: : executing squid log rotate after sarg.
                                          Jun 25 00:00:02    php: : Sarg: force refresh now with -d date +%d/%m/%Y-date +%d/%m/%Y args, compress(on) and both action after sarg finish.

                                          Necati Selim GÜNER
                                          IT Technician

                                          1 Reply Last reply Reply Quote 0
                                          271 out of 428
                                          • First post
                                            271/428
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received