Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I need to configure 60000 lines in iptables. I am using script to create a file and iptables-restore to configure them. I am getting error on commit and I ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    7

    iptables

    Hi,

    I need to configure 60000 lines in iptables.
    I am using script to create a file and iptables-restore to configure them.

    I am getting error on commit and I see that if the file size if larger than around 39000 it failed.

    Is there a limit to number of lines in iptables ?
    Can it be modify ?

    Thanks

  2. #2
    Just Joined!
    Join Date
    May 2011
    Location
    Southern California, US
    Posts
    24
    Take a look at netfilter.org. It seems to be a popular way to handle larger rulesets. It is another level of difficulty, but you are trying to deal with 60K rules.

    Tom

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    First question would be why do you need 60k lines of rules? sounds like you are over killing something that could be done easier.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...