Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
IPtables maximum recored added


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 ?

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

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



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 01:40 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
Maximum filesize zbably Mandriva 4 01-19-2004 04: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 10:13 AM
Maximum Processes StevieB Linux - General 1 01-08-2002 12:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration