Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dansguardian, squid and https question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Mon Apr 03, 2006 6:43 pm    Post subject: dansguardian, squid and https question Reply with quote

Is there a way to block requests for https://somedomain.com using the dansguardian/squid setup? I know that you cannot perform actual filtering on a page from a secure web server because it is encrypted, but how about blocking the site from say, when the user makes the initial request for the site. In dansguardian, it logs the initial CONNECT to the site, so it seems there should be a way to do this. I'd just like some ideas if any to find an easy solution, if not, I've been tempted to look at the DG code and figure it out.
Back to top
View user's profile Send private message
Voorhees51
Guru
Guru


Joined: 05 Nov 2003
Posts: 358

PostPosted: Tue Apr 04, 2006 12:19 am    Post subject: Reply with quote

Could you find the IP address of the sites and block them that way?
Could you setup a block rule to just block all connections to somedomain.com
reguardless of the protocol eg. ftp, http, https

... just my quick thoughts on it
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 959
Location: /dev/null

PostPosted: Tue Apr 04, 2006 12:30 am    Post subject: Reply with quote

You could setup bind and hijack thier domain name (for your internal clients) like i do with alot of spyware domains. Also the hosts file might work in this regard.
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Tue Apr 04, 2006 2:09 pm    Post subject: Reply with quote

Great Idea. Don't know why I didn't think to just hijack the domain!!! Thanks for the help.
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Apr 04, 2006 2:14 pm    Post subject: Reply with quote

Dansguardian already has a built-in mechanism for this. Just add the site to to /etc/dansguardian/bannedsitelist
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Tue Apr 04, 2006 2:32 pm    Post subject: Reply with quote

This only works for http:// domains, not https:// domains. Unless this is a bug in DG, I do have the http://somedomain.com in my bannedsitelist, and sure enough, if I navigate to that site, it gets blocked, but if I turn around and navigate to the https://somedomain.com site, it lets it through.

Is there something else in the DG configuration that needs to be set in order to block https domains? On the DG website for version 2.4, it says "The URL filtering is able to filter https requests." However, I'm running 2.8.0.6-r1 and i'm having different behavior as described. Anyone else experience this?
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Apr 04, 2006 2:34 pm    Post subject: Reply with quote

I just tested it on my DG system, and it worked fine.

Are you putting the actual "http://" in the bannedsitelist? If so, try it without. And of course, make sure you restart DG after changing the conf.
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Tue Apr 04, 2006 2:37 pm    Post subject: Reply with quote

I'm entering it without the http://. As I take another look, its actually entered in multiple blacklists that I downloaded with dansguardian. All of them without the http://.
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Apr 04, 2006 2:46 pm    Post subject: Reply with quote

That's odd. I'm using dansguardian-dgav-6.4.3-r1 and it works fine.
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Tue Apr 04, 2006 2:50 pm    Post subject: Reply with quote

hehe, well the hijack serves as a work around until this can be ironed out. what do you think of dgav? I've thought about using it, but since we're mostly mac, there isn't too big of a need to scan internet traffic for virii.
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Tue Apr 04, 2006 2:54 pm    Post subject: Reply with quote

DGAV works great. The extra setup over standard DG is negligable. Then again, my workplace is 99% Windows, so it's nice for catching spyware and the like.
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Fri Apr 07, 2006 4:20 pm    Post subject: Reply with quote

I may go ahead an upgrade. Not sure if there is a bug, but I also get these random blocked sites that reports denied, "Banned Phrase: gator". if I do a

Code:
grep -irH 'gator' /etc/dansguardian/


it returns

Quote:
/etc/dansguardian/phraselists/malware/weighted:< gator ><wallet><30>


Now tell me that isn't weird!
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Fri Apr 07, 2006 4:22 pm    Post subject: Reply with quote

What's odd about it?
Back to top
View user's profile Send private message
cmorford
n00b
n00b


Joined: 14 Nov 2005
Posts: 32

PostPosted: Fri Apr 07, 2006 4:25 pm    Post subject: Reply with quote

the fact that "gator" is not a banned phrase. Why is it blocking a phrase that isn't in any of the lists (shown by the grep statement)????
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum