LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-12-2008, 09:27 AM   #1
emymcse
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
IPtables maximum recored added


Hello,

I want to block a range of IP's from some countries to connect to my server and I will edit this file /etc/sysconfig/iptables


the list of range is aboute 11000 range of IP's .

what is the maximum no of IP range that could be added to /etc/sysconfig/iptables ?

is it will slow my server if adding that huge range to IPtable ?

Thanks
 
Old 09-12-2008, 09:59 AM   #2
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS6
Posts: 267

Rep: Reputation: 57
As long as you can express it in CDIR, it computes as a single record; Try /sbin/iptables -I input -s 24.1.0.0/18 -j DROP for example. It will then drop the range 24.1.0.0-24.1.63.255, about 16400 addresses, in one fell swoop. Some combination of a few CDIRs might work for you.

Dave
 
  


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
Maximum music on a cd-r Calgarian Linux - Software 3 03-16-2007 12:40 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
Maximum filesize zbably Mandriva 4 01-19-2004 03:05 AM
iptables - I added a second nic and cannot ssh to it. Log shows a potential problem. ForumKid Linux - Security 12 01-18-2002 09:13 AM
Maximum Processes StevieB Linux - General 1 01-08-2002 11:47 AM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration