Control Web Panel

Security => CSF Firewall => Topic started by: anandmys on November 01, 2024, 04:04:25 AM

Title: Cant start firewall
Post by: anandmys on November 01, 2024, 04:04:25 AM
When I try starting in cwp, i get the error

Quote
Status: You have an unresolved error when starting csf:
Error: FASTSTART: (DROP no logging IPv4) [] [iptables-restore v1.4.21: iptables-restore: unable to initialize table 'filter']. Try restarting csf with FASTSTART disabled, at line 5790 in /usr/sbin/csf

You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error

Title: Re: Cant start firewall
Post by: anandmys on November 01, 2024, 04:10:45 AM
delete /etc/csf/csf.error didnt help

Disabling FASTSTART didnt help
Title: Re: Cant start firewall
Post by: cyberspace on November 03, 2024, 07:15:44 PM
1. Is it VPS or bare metal server ?

2. Do you use some custom kernel ?
Title: Re: Cant start firewall
Post by: anandmys on November 06, 2024, 07:56:19 AM
It is a VPS

No custom kernel

But I took backup and reinstalled the server now
Title: Re: Cant start firewall
Post by: cyberspace on November 07, 2024, 11:05:01 PM
According to the error the kernel module iptables_filter isn't loaded and OS can't load it for some reason. It could happen if:

1. You use custom kernel without iptables_filter support (Kernel installed from some 3rd party repository or compiled from sources with iptables_filter disabled)
2. Your provider uses OpenVZ/LXC virtualization and the kernel module iptables_filter isn't loaded at main node.

If the problem remains unsolved after the restoration then do following:

Run as root on your VPS:

Code: [Select]
uname -a
ls  /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/

and show output.
Title: Re: Cant start firewall
Post by: anandmys on November 20, 2024, 10:22:22 AM
Hi reintalled a new VPS and migrated the accounts before I saw this message.

Thanks for the support

According to the error the kernel module iptables_filter isn't loaded and OS can't load it for some reason. It could happen if:

1. You use custom kernel without iptables_filter support (Kernel installed from some 3rd party repository or compiled from sources with iptables_filter disabled)
2. Your provider uses OpenVZ/LXC virtualization and the kernel module iptables_filter isn't loaded at main node.

If the problem remains unsolved after the restoration then do following:

Run as root on your VPS:

Code: [Select]
uname -a
ls  /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/

and show output.
Title: Re: Cant start firewall
Post by: Starburst on November 20, 2024, 06:53:46 PM
What is the CSF log showing?