Portfolio
My Blog
Scroll down to discover
Search
Categories

Lỗi không khởi động được CSF cyberpanel do IPtables

February 12, 2024Category : Bug & Security

thử khởi động CSF với lệnh

csf -s

báo lỗi

*Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26.

 

Giải quyết:

Looks like exception errors in csf perl code not cyberpanel. The path for your iptables is wrong.

Seems this is not ubuntu 20/22 you need to set correct path from sbin/iptables to /usr/sbin/iptables

But to be sure see if path exist ls /sbin/iptables and also try ls /usr/sbin/iptables

If usr/sbin/iptables exists then you need to edit

$ nano /etc/csf/csf.conf

Find this line IPTABLES = and replace

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"
01.
© Oliver / All rights reserved.
To top