Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cron for CSF blocked IP flush every 1 hour or whatever (Cpanel)
- Trying to flush blocked IP in CSF every 1 hour. Cron code is below:
- ++++++++++++++
- list of top cheapest host http://Listfreetop.pw
- Top 200 best traffic exchange sites http://Listfreetop.pw
- free link exchange sites list http://Listfreetop.pw
- list of top ptc sites
- list of top ptp sites
- Listfreetop.pw
- Listfreetop.pw
- +++++++++++++++
- 0 */1 * * * csf -tf > /dev/null 2>&1
- But somehow its not work Anyone give me proper way.
- Thanks in advance,
- BD Web Services Since 2009
- cPanel and Plesk | CloudLinux | Node.JS | SSD Server | Daily Remote Backup | North America and Europe | Money Back Guarantee
- USA | Canada | Germany
- Moved > Hosting Security and Technology.
- The command "csf -tf" only flush temporary blocks. If you need to flush permanent blocks, please use command "csf -df".
- Supportexpertz, Serving for quality hosting support
- Helpdesk & Live chat Support || Server Management
- Dedicated server Support || Available 24/7/365
- Thank you reply. I added csf -df same thing its not flushing IP. I set 1min and 5mins cron
- domain driven design pdf
- mybitcoinrewards.com
- cut4links.com
- siteground.co.uk
- domain map
- host 4 u
- pasted.co
- members.tubepaki.com
- 1 * * * * csf -df >/dev/null 2>&1
- 5 * * * * csf -df >/dev/null 2>&1
- no luck. Any other alternate command?
- Thanks
- BD Web Services Since 2009
- cPanel and Plesk | CloudLinux | Node.JS | SSD Server | Daily Remote Backup | North America and Europe | Money Back Guarantee
- USA | Canada | Germany
- Isn't there a setting where you can disable permanent blocks and use the temporary block function?
- == INIZ - Providing Hosting Since 2012
- = EU/US/ASIA SSD KVM/OpenVZ VPS Hosting
- = Fast Support, DDoS Protection & Much More
- == UK Web Hosting - SSD Powered/Daily Backups/DDoS Protection & Much More!
- Reply With Quote Reply With Quote 0 Not allowed!
- 08-24-2016, 02:54 PM #6 whmcsguru whmcsguru is online now
- Just me
- Join Date
- Sep 2002
- Location
- Top Secret
- Posts
- 13,479
- it's likely that the person you're removing is just getting themselves put back in the list
- if you search for the ip address
- Code:
- csf -g <ipaddress>
- This should tell you what level, and why they're there.
- if this is a customer, you may want to educate them on usage
- If this is one of your own internal ip's, just whitelist it.
- Tom Whiting, WHMCS Guru extraordinaire
- Linux problems? WHMCS Problems? Give me a shout
- Check out my WHMCS Addons
- I figure out the problem
- Thank you all.
- BD Web Services Since 2009
- cPanel and Plesk | CloudLinux | Node.JS | SSD Server | Daily Remote Backup | North America and Europe | Money Back Guarantee
- USA | Canada | Germany
- What is the solution ? I need to flush cfs every morning at 7 AM. How to do ?
- Thanks.
- I figure out the problem
- Thank you all.
- Love that on forums. Nothing better than searching for and finding exactly the issue you need help with and someone posts "fixed it".
- Quote Originally Posted by kikloo View Post
- I need to flush cfs every morning at 7 AM. How to do ?
- I'm wondering why you'd want to do this, when CSF will simply push older IPs off the list as more get added once it hits the max you've set. Do you have clients getting caught and don't want to help that stop happening or something?
- Show your support for everyone affected by the Australian bush fires, and those fighting them
- What is the solution ? I need to flush cfs every morning at 7 AM. How to do ?
- Thanks.
- The easiest approach to doing this is to remove /etc/csf/csf.deny then restart the csf process every day . This will flush those blocks.
- That being said, as @bear mentioned, you probably don’t need to do this, since CSF automatically flushed old blocks fir new ones
- Tom Whiting, WHMCS Guru extraordinaire
- Linux problems? WHMCS Problems? Give me a shout
- Few legit users get themselves blocked and I have to manually flush the firewall. I just want that in morning it would get flushed once so that people can reach the server for emails etc.
- If it's the same users, it would be better to discuss why with them and fix the problem?
- Alternately, just place a low number on IPs allowed to be blocked? They'd cycle faster that way, though that reduces the effectiveness of the firewall in general, as would a daily flush.
- That being said, I'd simply enable the testing mode at the top of the conf file, then check for the cron it's added that resets it every few minutes in /etc/crontab /etc/cron.d/ or in the root crontab (crontab -e). Copy that, put the firewall back the way it was and edit the cron you copied. That should handle it?
- [edit]
- If not, here's 2 more threads that might offer some insight:
- https://www.webhostingtalk.com/showthread.php?t=1001025
- https://www.webhostingtalk.com/showthread.php?t=909604
- Last edited by bear; 10-22-2019 at 08:25 AM.
- Show your support for everyone affected by the Australian bush fires, and those fighting them
- Few legit users get themselves blocked and I have to manually flush the firewall..
- Never flush the firewall because of a few users. Explain what they’re doing wrong and tell them to change things
- If that doesn’t work, I divide them with a way to get themselves removed from the block . There are a couple of utilities designed for WHMCS and CSF that will help you
- Flushing blocks daily is just the wrong approach
- Tom Whiting, WHMCS Guru extraordinaire
- Linux problems? WHMCS Problems? Give me a shout
Advertisement
Add Comment
Please, Sign In to add comment