'Include <file>' not working in csf.allow

Post Reply
rispadmin
Junior Member
Posts: 15
Joined: 07 Oct 2015, 17:48

'Include <file>' not working in csf.allow

Post by rispadmin »

Trying to add an include file to csf.allow.

Added the file:

Code: Select all

[ root@cp1 csf># ls -l /etc/csf/googlebots.allow
-rw-------. 1 root root 4455 Sep 29 15:12 /etc/csf/googlebots.allow
Added the entry into csf.allow:

Code: Select all

Include /etc/csf/googlebots.allow # Google spiders and web crawlers
Error when starting:

Code: Select all

*Error* File does not exist: [/etc/csf/googlebots.allow # Google spiders and web crawlers] at /usr/sbin/csf line 2134.
What are we missing?
rispadmin
Junior Member
Posts: 15
Joined: 07 Oct 2015, 17:48

Re: 'Include <file>' not working in csf.allow

Post by rispadmin »

Update:
We thought we were misconfiguring or something, so we made a deep dive into the docs and related samples and saw nothing that indicated we were doing anything incorrect.

We tested on several different cPanel boxes with the same result. Past experience shows the amazing tech staff is quick to respond to bugs, so it made sense to post the issue in the bug reporting forum.

So, we then posted the info in the bug reporting forum, and it got promptly deleted, which was weird. We reposted it again, and that post was moved to the general forum and locked with no explanation other than to not repeat posts.

We didn't intend to repeat posts, but there is no mechanism to move or delete them.

At any rate, any assistance on the issue is welcomed.
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: 'Include <file>' not working in csf.allow

Post by Sarah »

Have you tried including the file without the comment?
rispadmin
Junior Member
Posts: 15
Joined: 07 Oct 2015, 17:48

Re: 'Include <file>' not working in csf.allow

Post by rispadmin »

Sarah wrote: 05 Oct 2017, 21:25 Have you tried including the file without the comment?
Oddly, that seems to have worked. No other comments affect reloading iptables. Sounds like a bug.

Thanks for the suggestion!
Post Reply