M
M
Mendax2014-05-15 20:38:09
linux
Mendax, 2014-05-15 20:38:09

How to redirect sites using squidGuard?

I'm trying to make a redirect from certain sites using squidGuard. My config looks like this:

dbhome /var/squidGuard/blacklists
logdir /var/log/squidGuard

dest test {
        domainlist testdomains
        redirect http://www.mysite.com
        log /var/log/squidGuard/blocked.log
}

acl {
        default {
                pass !test all
                redirect http://www.mysite.com
        }
}

I tried to do this:
302:redirect http://www.mysite.com
The redirect goes, but to such a link:
www.mysite.com 192.168.77.217/- - GET
I.e. after the site address, it substitutes a space + the address where the request comes from + /- - GET
How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
German Sukhachev, 2014-05-16
@g3fox

Where did you see such a link?

The redirect goes, but to the following link:
www.mysite.com 192.168.77.217/- - GET

U
UnixMaster, 2014-05-16
@UnixMaster

<offtopic> We
've been using squidGuard for a long time , but just the other day I came across a rudimentary squid3_sentry project . Pretty flexible and stores blacklists in a redis database. I didn’t really test it, the tasks changed. But the project attracted attention because it is quite flexible and, among other things, the rules can be stored in redis. Thus, you can not poke around in the guard configs, but write a simple panel for the administration interacting directly with the database. But, you can’t do without a file)
offtopic>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question