LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-29-2011, 04:03 PM   #1
hebeles
Member
 
Registered: Feb 2010
Location: Amsterdam
Posts: 110

Rep: Reputation: 0
Question squid question (banned ip or block)


greetings,

my server squid 2.7 works. i would like to ask a question.

i watch the tail -f access.log

i see access.log flooding activity of a ip number e.g 1.1.1.1, 1.2.3.4, 2.3.3.3, 1.1.3.4 (4-attack the ip's)

i want block or banned the IP numbers?

i want not use this ip squid/my proxy ip number e.g 1.1.1.1, 1.2.3.4, 2.3.3.3, 1.1.3.4 numbers.

my english-basic. sorry.

thanks
 
Old 05-30-2011, 04:52 AM   #2
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Question

Hi,

So you want to block 1.1.1.1, 1.2.3.4, 2.3.3.3 and 1.1.3.4 IP address?
 
Old 05-30-2011, 05:02 AM   #3
networking.dept
Member
 
Registered: Dec 2010
Location: Ahmedabad
Distribution: Red Hat Enterprise Linux and Fedora
Posts: 44

Rep: Reputation: 8
Create acl to deny those ips...

Hello,

Create acl like below :-

In squid.conf you'll find a entry like "INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS" exact after this line enter following lines into your /etc/squid/squid.conf

acl denyip src 1.1.1.1 1.2.3.4 2.3.3.3 1.1.3.4
http_access deny denyip

save & exit from file and then execute this command as a root /etc/init.d/squid reload

Make sure you have not allowed everything before this rule otherwise this settings will not apply.

Hope this helps.

Last edited by networking.dept; 05-30-2011 at 05:03 AM. Reason: Forgot to mention few steps
 
  


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
How to block UltraSurf with Squid? shahsaifi Linux - Security 6 01-17-2012 10:50 PM
Help me!! - I can't block websites using squid WiLLy85 Linux - Networking 4 11-12-2008 03:00 AM
How To block by word in squid giomax Linux - Newbie 3 10-23-2008 07:00 AM
block port squid sunlinux Linux - Security 12 06-26-2008 10:34 PM
how to block yahoomail.com in squid sunlinux Linux - Networking 1 08-25-2007 04:21 PM

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

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