Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent IP b

    Hi there,

    there is 1000 permanent IP bans in the csf.deny file

    Edit csf.deny, the IP address deny file (Currently: 1000 permanent IP bans)

    I want to release some ips from this file

    what i want is release all Ips which starts contain 113.244.11.xxx

    see example

    113.244.11.xxx
    113.244.12.xxx
    113.244.22.xxx
    113.244.33.xxx
    113.244.64.xxx
    113.244.67.xxx


    there are more than 150 lines which start contains from 113.244
    Last edited by crazyaboutlinux; 12-09-2010 at 05:05 AM. Reason: firewall spealing mistake

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb Re: CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent I

    This seems to me a question better asked on the ConfigServer forums.


    You might want to read the details on that setting, 1000 is a high number to use, IMO.


    # Limit the number of IP's kept in the /etc/csf/csf.deny file. This can be
    # important as a large number of IP addresses create a large number of iptables
    # rules (4 times the number of IP's) which can cause problems on some systems
    # where either the the number of iptables entries has been limited (esp VPS's)
    # or where resources are limited. This can result in slow network performance,
    # or, in the case of iptables entry limits, can prevent your server from
    # booting as not all the required iptables chain settings will be correctly
    # configured.
    The value set here is the maximum number of IPs/CIDRs allowed
    # if the limit is reached, the entries will be rotated so that the oldest
    # entries (i.e. the ones at the top) will be removed and the latest is added.
    # The limit is only checked when using csf -d (which is what lfd also uses)
    # Set to 0 to disable limiting

  3. #3
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent I

    Hi Infopro

    thanks for the suggestion already contacted ConfigServer forums but i have got a solution from WHT

    I just used

    sed -i '/113\.244\.../d' csf.deny

    All lines were successfully removed from csf.deny file which IPs are starts from 113.224


    this is the solutions which i wanted

  4. #4
    Member
    Join Date
    Feb 2011
    Posts
    46

    Default Re: CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent I

    Hello Nilesh,

    Sed is such a powerful command ! Thanks for sharing it with us!

  5. #5
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent I

    yeah sed is really most powerful command

  6. #6
    Member
    Join Date
    Feb 2011
    Posts
    46

    Default Re: CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent I

    Hey!

    Yoo to SED !!

Similar Threads & Tags
Similar threads

  1. CSf Firewall: Edit csf.deny, the IP address deny file (Currently:1000 permanent IP b
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-09-2010, 06:23 AM
  2. csf firewall
    By newtoallthis in forum Security
    Replies: 5
    Last Post: 04-01-2010, 03:24 PM
  3. CSF firewall - "Manually denied" in the csf.deny file?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-05-2007, 07:10 AM
  4. csf / idf blocking IP but not putting it in deny file?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-27-2006, 10:38 PM
  5. Deny at connection at firewall instead of using exim ACL
    By kiat in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-25-2006, 03:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube