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

Problems with Squid and SpamD

Scheduled Pinned Locked Moved pfSense Packages
20 Posts 10 Posters 8.2k 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.
  • K Offline
    KiaN
    last edited by Jul 2, 2006, 12:23 PM

    Hi there  ;)

    I have a few problems with plugins,

    My version :

    RELENG_1_SNAPSHOT-06-24-2006
    built on Fri Jun 16 01:10:36 UTC 2006
    

    First of all, I'd like to use the Squid proxy, but I cant manage ton run the service, whenever I click on Star the service, I get Squid has been started but it never starts and is still shown as Stopped. I dont know how to make it work  :(

    I also would like SpamD to filter my mails with RBLs, and added external sources, but still the database says that it has 0 item in the blacklist, I cant manage to syncronize the black list with RBLs (I added SpamHaus and ORDB)

    I dont understand why ..

    I also wanted to add an entry as spamtrap, not knowing what it was, and now I cant remove it :

    SPAMTRAP 123@123.com

    1 Reply Last reply Reply Quote 0
    • K Offline
      KiaN
      last edited by Jul 2, 2006, 1:27 PM Jul 2, 2006, 1:11 PM

      Ok I managed to run squid manually, first using squid -z to create squid swap. Now it seems to work …
      (and it went down ...)

      Edit :

      It still wont work for long, and I cant start the service from the GUI :(

      Ok I managed to run squid manually, first using squid -z to create squid swap. Now it seems to work ...
      (and it went down ...)

      Edit :

      It still wont work for long, and I cant start the service from the GUI :(

      Jul 2 15:07:01 squid[47274]: Squid Parent: child process 47297 exited due to signal 6
      Jul 2 15:07:04 squid[47274]: Squid Parent: child process 47307 started
      Jul 2 15:07:04 kernel: pid 47307 (squid), uid 62: exited on signal 6
      Jul 2 15:07:04 (squid): Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time.
      Jul 2 15:07:04 squid[47274]: Squid Parent: child process 47307 exited due to signal 6
      Jul 2 15:07:07 squid[47274]: Squid Parent: child process 47316 started
      Jul 2 15:07:07 kernel: pid 47316 (squid), uid 62: exited on signal 6
      Jul 2 15:07:07 (squid): Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time.
      Jul 2 15:07:07 squid[47274]: Squid Parent: child process 47316 exited due to signal 6
      Jul 2 15:07:07 squid[47274]: Exiting due to repeated, frequent failures
      Jul 2 15:09:43 squid[47495]: Squid Parent: child process 47497 started
      Jul 2 15:11:35 squid[47692]: Squid Parent: child process 47694 started
      Jul 2 15:11:35 squid[47692]: Squid Parent: child process 47694 exited due to signal 15
      Jul 2 15:12:20 squid[48124]: Squid Parent: child process 48128 started
      Jul 2 15:12:46 squid[48274]: Squid Parent: child process 48276 started
      Jul 2 15:15:10 squid[48569]: Squid Parent: child process 48572 started
      Jul 2 15:16:18 squid[48792]: Squid Parent: child process 48794 started
      Jul 2 15:17:14 squid[49330]: Squid Parent: child process 49332 started
      Jul 2 15:21:50 squid[50118]: Squid Parent: child process 50120 started

      The transparent mode is activated but does not work.

      1 Reply Last reply Reply Quote 0
      • K Offline
        KiaN
        last edited by Jul 4, 2006, 10:58 AM

        Am i the only one to use or try to use SpamD ? (well, and Squid)

        1 Reply Last reply Reply Quote 0
        • H Offline
          hadi57
          last edited by Jul 5, 2006, 8:15 AM

          hi,

          i am in the same situation as u are regarding squid proxy server not starting, causing internet to be slow because i am not able to use upstream proxy as well.

          hadi57

          1 Reply Last reply Reply Quote 0
          • D Offline
            dvserg
            last edited by Jul 5, 2006, 2:19 PM

            run 'squid -z' in command prompt
            in log this recommended

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • S Offline
              SatireWolf
              last edited by Jul 5, 2006, 4:56 PM

              You have to do a cvsupdate update in RC1 to get squid to start correctly from the web page. Otherwise it won't start at all. It's a bug in RC1 pressed CD (haven't checked RC1a or the July 5th version that just came out, I'll give you an update in a few).

              1 Reply Last reply Reply Quote 0
              • K Offline
                KiaN
                last edited by Jul 5, 2006, 10:07 PM

                I have  RELENG_1_SNAPSHOT-07-03-2006
                built on Fri Jun 16 01:10:36 UTC 2006

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mrreload
                  last edited by Jul 6, 2006, 11:15 PM

                  I had the same problem getting Squid to start. Had to squid -z then reboot pfsense for it to start up properly. It still won't start from the GUI though.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Carlo
                    last edited by Jul 21, 2006, 9:53 AM

                    I am having the same issues with Squid. I can't start it from the GUI.

                    Any solution to this problem?

                    -carlo

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      SatireWolf
                      last edited by Jul 25, 2006, 5:33 PM

                      Do a cvs_sync.sh update… Seems to have fixed the problem for me a week or so ago.

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        hoba
                        last edited by Jul 25, 2006, 5:41 PM

                        If at all do a "cvs_sync.sh releng_1" !!! But be aware that this will be tha last sync that will work for releng_1. We disabled this as we from now on only want people to use firmwareupdates that we officially release.

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          rcasas
                          last edited by Jul 27, 2006, 9:44 AM

                          I was having the same problem with RC1, I did the cvs_sync.sh update and my system has updated to RC2, but I was still having the problem.

                          I've looked the code to start a service, and I've seen that the problem was with the function mwexec_bg which is in the /etc/inc/util.inc file

                          When this function calls php exec function, it uses:

                          
                          exec("nohup $command > /dev/null 2>&1 &");
                          
                          

                          I've been trying some combinations, and the problem was with the redirection to stdout, all the others things runs with any problem. So, I've changed the code to look like:

                          
                          exec("nohup $command 2> /dev/null &");
                          
                          

                          And squid then starts through the gui with no problem. I hope this change won't break any other thing (I think the only problem which can cause is about the creation of the nohup.out file)

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dvserg
                            last edited by Jul 28, 2006, 6:02 PM

                            Thx
                            I will do testing this too

                            SquidGuardDoc EN  RU Tutorial
                            Localization ru_PFSense

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sullrich
                              last edited by Jul 28, 2006, 7:32 PM

                              This is not the correct fix.  That function is used throughout the system and isnt something we should just start changing for the sake of it.  The problem resides in the package, not in pfSense common functions.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                dvserg
                                last edited by Jul 29, 2006, 6:45 PM Jul 29, 2006, 6:41 PM

                                Any body who profy pls look /usr/local/etc/rc.d/squid.sh
                                In my system this have right 0755 and  group and owner '500'
                                any other scripts files have owner 'root'

                                
                                #!/bin/sh
                                # This file was automatically generated
                                # by the pfSense service handler.
                                
                                rc_start() {
                                	squid -D
                                }
                                
                                rc_stop() {
                                	squid -k shutdown
                                # Just to be sure...
                                killall squid 2>/dev/null
                                sleep 1
                                killall squid 2>/dev/null
                                
                                }
                                
                                case $1 in
                                	start)
                                		rc_start
                                		;;
                                	stop)
                                		rc_stop
                                		;;
                                	restart)
                                		rc_stop
                                		rc_start
                                		;;
                                esac
                                
                                

                                SquidGuardDoc EN  RU Tutorial
                                Localization ru_PFSense

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Carlo
                                  last edited by Aug 8, 2006, 8:14 PM

                                  I'm now running RC2 and I still have the same problem, I'm still not able to run squid from GUI and it also fails to start when i (re)boot.

                                  If the problem above isn't the proper way to fix it what is?

                                  thx,

                                  Carlo

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sullrich
                                    last edited by Aug 8, 2006, 8:22 PM

                                    Uninstall and reinstall the squid package.

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Carlo
                                      last edited by Aug 8, 2006, 8:52 PM

                                      Seems to be working now :)

                                      Thx!

                                      Carlo

                                      1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        Hunter
                                        last edited by Aug 11, 2006, 2:24 AM Aug 11, 2006, 1:47 AM

                                        I'm having the same problem with squid to signal 6 exit won't start in the GUI and I'm running RC2, I also can add IP's to the blacklist and nada, zip no blocks on the websites that the IP's refer too. Also I was under the impression that you could enter host names into squid does the slimed down package (squid) for pfsense not allow that (i get error messg) when I put hotmail.com in the blacklist section.

                                        Thanks

                                        pfSense is a Great system!!!

                                        been there done that two or three times…

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sullrich
                                          last edited by Aug 11, 2006, 1:56 AM

                                          Uninstall and reinstall the squid package.

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