Introduction to IPTABLES and UFW on Ubuntu

preview_player
Показать описание
In this video we'll break down IPTABLES and UFW to create some simple firewall rules.
Рекомендации по теме
Комментарии
Автор

Hi there after installing cyberpanel and MODSECURITY. when i visit page ‘‘security - firewall’’ i receive this error ‘’

Error The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at line 26. Compilation failed in require at line 20. BEGIN failed–compilation aborted at line 20. Compilation failed in require at line 14. BEGIN failed–compilation aborted at line 14.

and this message visiting ‘Security & Firewall Plugins’’
I have this error

Error The path to iptables is either not set or incorrect for IPTABLES [/sbin/iptables] in /etc/csf/csf.conf at line 26. Compilation failed in require at line 20. BEGIN failed–compilation aborted at line 20. Compilation failed in require at line 14. BEGIN failed–compilation aborted at line 14.

My System is Ubuntu 20.04

I Changed vi /etc/csf/csf.conf
To

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 =

And still the problem exist !

When i excute: sudo csf -r
I recieve this error

Error Setting IPTABLES is repeated in /etc/csf/csf.conf - you must remove the duplicates and then restart csf and lfd at line 26.
Compilation failed in require at /usr/sbin/csf line 21.
BEGIN failed–compilation aborted at /usr/sbin/csf line 21.

or

systemctl status lfd.service
● lfd.service - ConfigServer Firewall & Security - lfd
Loaded: loaded enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-05-26 15:55:39 BST; 18s ago
Process: 18778 ExecStart=/usr/sbin/lfd (code=exited, status=255/EXCEPTION)

May 26 15:55:39 systemd[1]: Starting ConfigServer Firewall & Security - lfd…
May 26 15:55:39 **** lfd[18778]: Error Setting IPTABLES is repeated in /etc/csf/csf.conf - you must remove the duplicates and then restart csf and lfd at line 26.
May 26 15:55:39 lfd[18778]: Compilation failed in require at /usr/sbin/lfd line 20.
May 26 15:55:39 **** lfd[18778]: BEGIN failed–compilation aborted at /usr/sbin/lfd line 20.
May 26 15:55:39 **** systemd[1]: lfd.service: Control process exited, code=exited, status=255/EXCEPTION
May 26 15:55:39 **** systemd[1]: lfd.service: Failed with result ‘exit-code’.
May 26 15:55:39 **** systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.

Ethicalhcker