"Include" in csf.redirect causing error

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
2 posts Page 1 of 1
Junior Member
Posts: 17
Joined: 19 Apr 2011, 14:37

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
Posts: 1409
Joined: 01 Oct 2008, 09:24

We will fix the issues with the new Includes in the next release. You can use separate comment lines in those files.
2 posts Page 1 of 1