LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-23-2010, 04:23 AM   #1
linboy70
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
HTTPS & P2P traffic


I have a Debian server running at the gateway level on a LAN.
This runs squid for creating block lists of websites - for eg. blocking social networking on the LAN. Also uses iptables.

I am able to do a lot of things with squid & iptables, but a few things seem difficult to achieve.

1) If I block http://www.facebook.com, people can still access https://www.facebook.com because squid doesn't go through https traffic by default. However, if the users set the gateway IP address as proxy on their web browser, then https is also blocked. So I can do one thing - using iptables drop all outgoing 443 traffic, so that people are forced to set proxy on their browser in order to browse any HTTPS traffic. However, is there a better solution for this.

2) As the number of blocked urls increase in squid, I am planning to integrate squidguard. However, the good squidguard lists are not free for commercial use. Anyone knows of a good squidguard list which is free.

3) Block yahoo messenger, gtalk etc.
There are so many ports on which these Instant Messenger softwares work. You need to drop lots of outgoing ports in iptables. However, new ports get added, so you have to keep adding them. And even if your list of ports is current, people can still use the web version of gtalk etc.

4) Blocking P2P. Haven't been able to figure out how to do this till now.


Yeah, I know I shouldn't be censoring people, but my boss wants me to do it & in the current job market I can't afford to lose my job :-(
 
Old 12-24-2010, 03:06 AM   #2
getviswa
LQ Newbie
 
Registered: May 2010
Posts: 23

Rep: Reputation: 0
You can deny the https traffic with squid sslbump and icap server.

That is sslbump decrypt the https url details and send to icap server .. where icap server u can do script to block the url


Thanks
-Viswa
 
Old 12-24-2010, 03:23 AM   #3
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
1) you shouldn't need sslbump or anything, it sounds like you've set up a network that, for a standard commercial environment is too open in the first place. It's the norm to drop all outbound client network traffic by default, so you should absolutely be blocking https by default and making clients use a proxy explicitly. Transparent proxies, as you guess you are currently using for hrtp are very very over rated, and have so many limitations. Doing https mitm's by design is a really dubious thing to do, and can potentially have all sorts of legal issues in terms of you theoretically spring on your users online banking sessions without their knowledge etc. use a proxy properly and these problem disappear.

3) deny by default, not by exception.

4) deny by default, not by exception.

Last edited by acid_kewpie; 12-24-2010 at 03:24 AM.
 
Old 12-24-2010, 03:51 AM   #4
getviswa
LQ Newbie
 
Registered: May 2010
Posts: 23

Rep: Reputation: 0
Excellent Idea ... It will work

Thanks
-Viswa
 
Old 12-24-2010, 04:55 AM   #5
linboy70
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post

3) deny by default, not by exception.

4) deny by default, not by exception.

P2P is very difficult to deny - if you deny other ports it will use port 80 & you cannot deny port 80.
Likewise for some IM clients.
 
Old 12-24-2010, 06:58 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
Quote:
Originally Posted by linboy70 View Post
P2P is very difficult to deny - if you deny other ports it will use port 80 & you cannot deny port 80.
Likewise for some IM clients.
Yes, but that has nothing to do with what you asked about. There you're largely down to blocking destination ip's and user agent $
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Block https Traffic anu_here Linux - Security 8 10-30-2009 03:42 AM
how to block gmail & gtalk (https traffic)using squid satishmali1983 Linux - Server 4 06-25-2009 01:22 AM
How to create p2p traffic inside private lab? sharon179 Linux - Networking 1 03-13-2007 09:54 PM
prioritize (inversely) P2P traffic. eantoranz Linux - Networking 0 08-11-2005 09:26 AM

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

All times are GMT -5. The time now is 02:29 AM.

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