LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2011, 03:51 AM   #1
hwarui91
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Blocking IP Addresses using Squid


Hi all,

I am trying to block facebook using iptables.

My setup is such that my server is acting as a filtering proxy. What i want to do ultimately is blocking sites like facebook etc.

One problem with it is that with iptables, i can't seem to do it because facebook has too much ip. Therefore i am unable to explicitly block the ip address that facebook uses.

Second problem is that when i do it with squid proxy configuration, i was not able to block it because of the secure channel with https which is suppose to defeat man in the middle. Which of course, my setup would be something like a man in the middle.

Hope you guys would be able to give me advise. Thanks
 
Old 12-24-2011, 05:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,886

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Hi,

You should use the domain name to deny access, like this:
Code:
acl facebook dstdomain .facebook.com
...
http_access deny facebook
...
Regards
 
  


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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 11:34 AM
Squid not blocking ip addresses Fantus Linux - Networking 3 07-19-2009 02:13 PM
Blocking Specific IP Addresses kaplan71 Fedora 2 11-10-2006 10:30 AM
Blocking email addresses matt1982 Linux - Security 2 05-12-2006 01:17 AM
Blocking IP Addresses toejam Linux - Security 2 05-01-2004 01:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration