+ Post New Thread
Results 1 to 10 of 10
Internet Related/Filtering/Firewall Thread, SquidGuard config in Technical; I'm in the midst of setting up SquidGuard and am at a bit of a loss as to how to ...
  1. #1

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822

    SquidGuard config

    I'm in the midst of setting up SquidGuard and am at a bit of a loss as to how to configure it to do nothing but rewrite Google searches.

    This is my config - and it doesn't do anything:

    Code:
    rewrite google_search {
      s@(google\..*/search?.*q=.*)@\1\&safe=vss@i
    }
    
    
    acl {
    	default {
    		pass	 none
    		rewrite google_search
    	}
    }
    The rewrite rule is copied verbatim from another site which confirmed it does what I want, but it isn't rewriting.

    Can anyone give me a clue as to how I get this thing working?

  2. #2

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,859
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    I swear the safesearch paramiter is "#safe=active"


    Le EDIT: Yup. Just checked it.

  3. #3

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Ok, regardless, it isn't doing the rewriting - ie 'safe=vss' or 'safe=active' don't appear in the URL at all.

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    I've even tried @Geoff's rules here: Enforce Google SafeSearch

  5. #5


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,461
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195
    You sure you're not going through on https? That'd stop it working!

  6. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Yup. Just manually typed it as http and it doesn't do anything still.

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    You accessing the right port on the client (best way is to force Squid to bind on the loopback, then you can't have any 'accidental' bypassing of SquidGuard)?

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    What do you mean? I have it running as the 'url_rewrite_program' in the squid config. Squid is running on port 8080.

    Squidguard is being called - it has 5 processes running (per the squid config), and the squidguard log is reporting stuff:

    2216 no ACL matching source, using default
    Last edited by localzuk; 10th June 2013 at 12:04 PM.

  9. #9

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Anyone got any ideas?

  10. #10

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    If I run the command:

    Code:
    echo "http://www.google.co.uk/seach?q=test / - - GET" | squidguard -c /usr/local/squidguard/squidguard.conf
    in MinGW, Squidguard replies as it should with:

    Code:
    !GET! http://www.google.co.uk/search?q=test&safe=active /- - -
    I suspect this is down to my use of MinGW...
    Last edited by localzuk; 11th June 2013 at 10:00 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 11
    Last Post: 26th May 2006, 10:01 AM
  2. Using PXES Config
    By adamyoung in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 25th May 2006, 09:33 AM
  3. Replies: 19
    Last Post: 4th May 2006, 06:49 PM
  4. Samba config
    By Dos_Box in forum *nix
    Replies: 7
    Last Post: 19th October 2005, 09:21 AM
  5. Aaagh! Just lost all my Ghost configs
    By eejit in forum Windows
    Replies: 26
    Last Post: 16th July 2005, 02:37 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •