LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-19-2005, 12:48 PM   #1
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Rep: Reputation: 30
IP Filter


Hi!

Is there a way to block ip-ranges in slack or linux? Thank you in advance for tips!
 
Old 12-19-2005, 01:12 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by jasone
Hi!

Is there a way to block ip-ranges in slack or linux? Thank you in advance for tips!
yes, there is... check-out this thread:

http://www.linuxquestions.org/questi...d.php?t=385740

good luck...
 
Old 12-19-2005, 01:21 PM   #3
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Original Poster
Rep: Reputation: 30
Thanks!

But if I want use a existing blocklist that look like something like this:
http://dialspace.dial.pipex.com/town...d-bad-pr0n.txt

I that possible?
 
Old 12-19-2005, 01:31 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by jasone
Thanks!

But if I want use a existing blocklist that look like something like this:
http://dialspace.dial.pipex.com/town...d-bad-pr0n.txt

I that possible?
yes, of course...

BTW, that list you've linked to seems to be in the "PeerGuardian" format:

http://www.google.com/search?&q=iptables+peerguardian
 
Old 12-19-2005, 02:35 PM   #5
jasone
Member
 
Registered: Oct 2004
Location: Sweden
Distribution: FreeBSD, OpenBSD, Debian Etch
Posts: 160

Original Poster
Rep: Reputation: 30
Yes I know and I found "linblock" which is updating the rules as we speak =) Thanks!

I just thought of something: How do I reset these rules if I for some reason want to do that?

Last edited by jasone; 12-19-2005 at 02:54 PM.
 
Old 12-19-2005, 03:07 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by jasone
How do I reset these rules if I for some reason want to do that?
just flush whatever chain your rules are in... for example, if your chain was called "antip2p" then to flush all the rules just do a:
Code:
iptables -F antip2p
from the linblock homepage:
Quote:
Designed to coincide with other iptables rules that may be in effect, including a 'flush' command that will remove all rules added by linblock but leave everything else intact.

Last edited by win32sux; 12-19-2005 at 03:10 PM.
 
Old 12-19-2005, 03:21 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Security and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 02:28 AM
filter martini1050 Linux - General 0 03-01-2004 02:07 PM
filter the code Xiangbuilder Programming 7 10-23-2003 07:28 AM
L7 Filter Xing Linux - Software 0 09-17-2003 04:56 AM
filter.pl where? jfisk Linux - Software 5 09-04-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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