LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2009, 05:58 AM   #1
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Dansguardian not blocking https pages.


Hello all,

Using squid-2.6-stable on CentOS5.4 final for proxying. And for content filtering got dansguardian 2.10.1.1.
There does is this option in bannedsitelist where in https requests can be blocked but this is not working.
But dansguardian is blocking other sites that are http.
For information:

Installed dans by compiling it from source and downloaded it from the official site.
 
Old 12-01-2009, 12:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can't block individual patterns on https. only the site to which you are connected, as this is the only visible thing when an explicit non-terminating https proxy. if you are doing it's transparently, you can't even do that, only block on IP address as the SSL connection is created before any HTTP requests are made, making it impossible to see what's being requested.
 
Old 12-01-2009, 12:55 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
So in short it is impossible to block the https request when it I am using squid in transparent mode even though I am using dansguardian. It would really be a bad idea to block requests on the ip addresses. They tend to change. So it would be really not an option though if needed I could do that.
Ok. I am out of options of blocking https requests.
 
Old 12-01-2009, 12:17 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Yes, a direct https connection just starts with pure SSL. The client opens a TCP socket and starts negotiating SSL cipher specs and the likes. So it's not until this secure channel, which could be used to carry *ANY* traffic at all, that a web page is requested with the conventional HTTP protocols, which the proxy has no chance of seeing.
 
Old 12-10-2009, 01:21 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Okay, so it is not possible using squid. But is there ANY way that https requests can be blocked for certain machines? Well the squid is running in transparent mode. And it would not be too possible to change it to normal operation (non transparent mode) unless the only solution. And also need to know if ISA can do that?
And if I remove squid from transparent mode, will it block the requests?
 
Old 12-10-2009, 07:38 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
In either mode you can filter on the IP address. But nothing that doesn't terminate SSL itself can do any more than block on hostname / IP, so can never filter urls, content etc.
 
Old 12-11-2009, 01:25 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Okay. Now this is getting tougher and tougher. Though there are company policies and tough decisions could be taken but there is still this possibility of getting through to any site just by using https instead of http. And this is what is creating issues right now. I will try removing squid from transparent mode and then integrate it with dansguardian, the latest version. There is this option of blocking https requests in dans. But it has not worked for me as yet. I will keep my fingers crossed on this one. Saturday seems to be fine for this change. Let me see and keep you updating. Do not stop following the thread just right now.
 
Old 10-22-2010, 12:49 PM   #8
RHCE007
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
Okay. Now this is getting tougher and tougher. Though there are company policies and tough decisions could be taken but there is still this possibility of getting through to any site just by using https instead of http. And this is what is creating issues right now. I will try removing squid from transparent mode and then integrate it with dansguardian, the latest version. There is this option of blocking https requests in dans. But it has not worked for me as yet. I will keep my fingers crossed on this one. Saturday seems to be fine for this change. Let me see and keep you updating. Do not stop following the thread just right now.


I want to now have you get any success in blocking https requests in dans
 
Old 10-23-2010, 12:19 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Why are you digging this old dead year old thread without any positive and helpful inputs?
I have had success by not implementing it in transparent mode. Done. Thank you.
 
Old 10-27-2010, 03:08 AM   #10
strakalas
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS, Ubuntu
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
Why are you digging this old dead year old thread without any positive and helpful inputs?
I have had success by not implementing it in transparent mode. Done. Thank you.
the dig was ok, because you didn't specify the solution before.

so you've set Squid into non-tranparent mode and forced all users to set their browser to use your proxy, is that correct?
 
Old 10-27-2010, 03:18 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by strakalas View Post
the dig was ok, because you didn't specify the solution before.

so you've set Squid into non-tranparent mode and forced all users to set their browser to use your proxy, is that correct?
That's what he said. Can we let the thread go back to sleep now?
 
Old 10-27-2010, 04:01 AM   #12
strakalas
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS, Ubuntu
Posts: 6

Rep: Reputation: 0
Thumbs down

Quote:
Originally Posted by acid_kewpie View Post
That's what he said. Can we let the thread go back to sleep now?
yes. this has been an informative thread, unfortunally it ended up choosing the "last resort" solution and forcing all users to setup their browsers to use proxy.

now, users can bring Memory-stick with Standalone Firefox thus bypassing my proxies.

I tend to configure serverside only and avoid managing each workstation, so I'll keep blocking all https sites by default and allow good https sites on firewall (iptables) level.
 
Old 10-27-2010, 04:12 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by strakalas View Post
yes. this has been an informative thread, unfortunally it ended up choosing the "last resort" solution and forcing all users to setup their browsers to use proxy.

now, users can bring Memory-stick with Standalone Firefox thus bypassing my proxies.


I tend to configure serverside only and avoid managing each workstation, so I'll keep blocking all https sites by default and allow good https sites on firewall (iptables) level.
You have a badly designed network. Congratulations.
 
Old 10-27-2010, 06:55 AM   #14
strakalas
LQ Newbie
 
Registered: Oct 2010
Distribution: CentOS, Ubuntu
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
You have a badly designed network. Congratulations.
please point me to any keywords that would lead to better designed network, that would prevent the problems you mentioned.

this was a fictional case with Proxies and standalone browsers, as now all control is performed at iptables level.
 
Old 10-27-2010, 09:12 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Sorry... my bad...

Quote:
Originally Posted by acid_kewpie View Post
You have a badly designed imaginary network. Congratulations.
keywords? You don't need keywords, you need proper knowledge about network security.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dansguardian and https dcordina Linux - Networking 0 04-10-2009 05:24 PM
Preventing DansGuardian Bypass via HTTPS Proxies win32sux Linux - Security 16 08-19-2008 03:08 PM
scan https through dansguardian, clamav and squid hassan2 Ubuntu 1 03-13-2008 03:23 AM
Block pages using DansGuardian shipon_97 Linux - Enterprise 4 10-16-2006 05:56 AM
Squid / Dansguardian not blocking anymore jocast Linux - Networking 0 07-06-2006 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration