steiner-gtk.de
Docs » CSF - Error path to iptables

CSF - Error path to iptables

Fehlermeldung:

*Error* The path to iptables is either not set or incorrect for IPTABLES [/usr/sbin/ip6tables] 
*in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26.
Compilation failed in require at /usr/sbin/csf line 21.
BEGIN failed--compilation aborted at /usr/sbin/csf line 21.

todo:
This is because path for iptables is changed in Ubuntu 20.04. To fix the error edit csf.conf
Find:
IPTABLES = "/sbin/iptables"
IPTABLES_SAVE = "/sbin/iptables-save"
IPTABLES_RESTORE = "/sbin/iptables-restore"
IP6TABLES = "/sbin/ip6tables"
IP6TABLES_SAVE = "/sbin/ip6tables-save"
IP6TABLES_RESTORE = "/sbin/ip6tables-restore"

Replace with:

IPTABLES = "/usr/sbin/iptables"
IPTABLES_SAVE = "/usr/sbin/iptables-save"
IPTABLES_RESTORE = "/usr/sbin/iptables-restore"
IP6TABLES = "/usr/sbin/ip6tables"
IP6TABLES_SAVE = "/usr/sbin/ip6tables-save"
IP6TABLES_RESTORE = "/usr/sbin/ip6tables-restore"

Abschließend:
csf -r
systemctl restart lfd
Previous Next

steiner-gtk.de

Table of Contents

Impressum / Datenschutzerklaerung