How To Install Legacy IPTables on AlmaLinux 8 OpenVZ VPS

There are issues with netfilter-based iptables on OpenVZ VPS running AlmaLinux 8. You may see errors similar to the following when trying to start the default netfilter-based iptables service on an AlmaLinux 8 OpenVZ VPS:

CHAIN_ADD failed (Device or resource busy): chain OUTPUT
CHAIN_UPDATE failed (Device or resource busy): chain INPUT
CHAIN_UPDATE failed (Device or resource busy): chain FORWARD
CHAIN_UPDATE failed (Device or resource busy): chain OUTPUT
RULE_APPEND failed (No such file or directory): rule in chain INPUT
RULE_APPEND failed (No such file or directory): rule in chain FORWARD

 

The steps below outline how to install the legacy iptables packages as a workaround.

1. Remove the existing broken iptables packages:

dnf remove iptables iptables-libs iptables-services

2. Install legacy iptables packages:

dnf install -y https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/i/iptables-libs-1.6.2-2.fc28.x86_64.rpm
dnf install -y https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/i/iptables-1.6.2-2.fc28.x86_64.rpm
dnf install -y https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/x86_64/os/Packages/i/iptables-services-1.6.2-2.fc28.x86_64.rpm

3. Prevent these packages from being updated to the broken versions:

echo 'exclude=iptables iptables-libs iptables-services' >> /etc/dnf/dnf.conf

4. You should now be able to start the iptables service without any issues:

systemctl start iptables
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Reinstall Your OpenVZ VPS OS

Note: This article is for reinstalling the OS on OpenVZ VPS only. For assistance with KVM VPS...

How To Connect To Your VPS Using SFTP In FileZIlla

SFTP is a secure version of the FTP protocol. You can use your Linux SSH details in an FTP client...

What is the Difference Between OpenVZ and KVM VPS?

KVM is full virtualization where the VPS operates as its own virtualised server, independently of...

How To Change Windows User Password

This guide outlines how to change your Windows user password. These steps must be performed when...