Page 1 of 1

"Include" in csf.redirect causing error

Posted: 23 Apr 2018, 16:27
by terryr
I attempted to use an include in csf.redirect and received this error on executing csf -ra.

Code: Select all

Error: csf: Incorrect csf.redirect  setting ([]): [Include /etc/csf/csf.redirect.local], at line 3172
I removed the Include line and started csf with no issue.

Point of clarification: The readme.txt specifically states not to use comments at the end of the lines in the include file but mentions nothing about comments on lines by themselves. Is this acceptable?

Also, in one of your blog posts, you stated that there would be 23 files where an Include statement could be used. The readme.txt lists 22.
  1. /etc/csf/csf.allow
  2. /etc/csf/csf.blocklists
  3. /etc/csf/csf.cloudflare
  4. /etc/csf/csf.deny
  5. /etc/csf/csf.dirwatch
  6. /etc/csf/csf.dyndns
  7. /etc/csf/csf.fignore
  8. /etc/csf/csf.ignore
  9. /etc/csf/csf.logfiles
  10. /etc/csf/csf.logignore
  11. /etc/csf/csf.mignore
  12. /etc/csf/csf.pignore
  13. /etc/csf/csf.rblconf
  14. /etc/csf/csf.redirect
  15. /etc/csf/csf.rignore
  16. /etc/csf/csf.signore
  17. /etc/csf/csf.sips
  18. /etc/csf/csf.smtpauth
  19. /etc/csf/csf.suignore
  20. /etc/csf/csf.syslogs
  21. /etc/csf/csf.syslogusers
  22. /etc/csf/csf.uidignore
Thanks,
Terry

Re: "Include" in csf.redirect causing error

Posted: 01 May 2018, 10:42
by ForumAdmin
We will fix the issues with the new Includes in the next release. You can use separate comment lines in those files.