Peter Fraser wrote:
I installed squidguard on freebsd and everything worked great. The database files and the log file are owned by squid and the user squid can write to the files. The permissions are below.

<snip>

     }
}
Everything worked just perfectly until I had occasion to restart the machine and then everything just stopped. It no longer blocks. I am so stumped, I just can't understand why. I don't see anything changing. How can I debug this further? It is still logging to the log file and there are no errors logged.
Help please.


Do you see a 'ready for requests' message at the bottom of the SG log? Have you checked your squid and system logs for clues. If you are running a transparent proxy did you lose the port redirect to squid when you rebooted? Have you tried checking SG from the command line?

I'll attach a little shell script I use for the latter (assuming the list software will let it through).


--
Mike Rambo
[EMAIL PROTECTED]

"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
        --Ed Howdershelt
#!/bin/sh

URL=$1
IPADDR=$2
CFGFILE=/etc/squid/squidGuard.conf
EXEFILE=`which squidGuard`

if [ ! -r "$CFGFILE" ]; then
    echo ""
    echo "Sorry, I could not find the squidGuard config file."
    echo "Please edit this script to reflect it's true location."
    echo ""
    exit 1
fi

if [ "$URL" = "" ]; then
    echo ""
    echo "You did not supply a URL to test. Try something like..."
    echo ""
    echo "./urltest.sh google.com [optional ip address]"
    echo ""
    echo "and see if you have better results."
    echo ""
    exit 1
fi

if [ ! -e "$EXEFILE" ]; then
    echo ""
    echo "Sorry, I couldn't find the squidGuard program."
    exit 1
else
    clear
    echo ""
    if [ "$IPADDR" = "" ]; then
        echo "Hmm, you didn't supply an address. Using 10.33.1.1 to put the test"
        echo "in the most restrictive set of rules (elementary schools)."
        IPADDR=10.33.1.1
    else
        echo "Using $IPADDR supplied by user. Thanks."
    fi
    echo ""
    echo "Testing now..."
    echo "Here is your output (if any)."
    echo ""
    # The line with the -d will allow you to see squidGuard initialize the db files.
    #echo "http://$URL $IPADDR/- - GET" | $EXEFILE -c $CFGFILE -d
    echo "http://$URL $IPADDR/- - GET" | $EXEFILE -c $CFGFILE
    echo ""
    echo ""
    #echo "It is normal to see a recap of all the database files squidGuard checks."
    echo "If there is nothing but blank lines after the 'Here is your output...' "
    echo "string then the url passed. Otherwise, you should see the modified url "
    echo "that would have been returned to the users browser instead."
    echo ""
fi

Reply via email to