Skip to main content

How to stop cPanel cron that add iptables rules?

Comments

4 comments

  • cPanelMichael
    Hello :) Could you elaborate further on why you prefer to avoid a firewall management application such as CSF? It's really helpful in ensuring that custom rules are saved and preserved. Also, when making custom iptables rules, are you saving them via the "/etc/init.d/iptables save" command? Thank you.
    0
  • Simsim
    Thanks for quick response
    ]Hello :) Could you elaborate further on why you prefer to avoid a firewall management application such as CSF? It's really helpful in ensuring that custom rules are saved and preserved.

    I know CSF is great, reliable, integrated with cPanel. Any way CSF is created for general purposes, while I have custom requirements, Yes I know I can reconfigure CSF by editing the conf file so I (maybe) can enforce own iptables rules. but this is really complex I think. Example, In my requirements, I heavily depend on iptables recent module, while I can instruct CSF to utilize the recent capability, But I am restricted in what can I add I created my rules that enable me to distinguish attacks, ban IPs dynamically that behave strangely or maliciously, white-list myself by using port knocking, create very sophisticated rules while maintain acceptable level of performance since recent module is CPU intensive. I have to study CSF very well so I can change its behavior as I want exactly. But in that case It is better that I just do NOT use it.
    ] Also, when making custom iptables rules, are you saving them via the "/etc/init.d/iptables save" command?

    Actually I have script (sh file) that when I run it do the following: 1- delete all the existing rules and allowing everyone 2- Apply my own iptables rules and chains on fly I don't need to "save" since I can make this script run at the startup so all my iptables rules are enforced. And unless iptables is restarting, no one will look at the iptables original conf file. This working great. The only problem is that something is insert a chain called "accboth" every few minutes and this of course happen through the crontab that execute a script just like mine (this is my conclusion) which insert this chain at the beginning. The added chain, accboth, do nothing actually, It is just allowing everything to come and go without any restriction. that's why it need to be disabled if anyone want to enforce his own iptables rules. Thanks
    0
  • cPanelMichael
    You can disable the "bandmin" cron jobs using the "crontab -e" command, as it's those cron jobs that add the iptables rules you are referring to. Bandmin is not required, and is provided as an additional application to track traffic from IRC servers, game servers, or other types of servers. Thank you.
    0
  • Simsim
    Thank you very much
    0

Please sign in to leave a comment.