LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02: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, 04:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

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


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

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

All times are GMT -5. The time now is 12:21 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