frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

UFW will not run on Ubuntu 22.04 (64 bit) - Container VPS - C2 Plan

ERROR: Could not load logging rules

This is a problem I only have with time4vps. Here is an example on how the problem can be reproduced,

A. Reinstall server Ubuntu 22.04 (64-bit) with SSH Key

B. Connect via SSH

root@xxxx:~# apt update && apt upgrade
... installs ok

root@xxxx:~# apt install ufw
... installs ok

Reboot the server. This step is important, if you do not reboot the server you might be mislead to believe that everything is working. But it is not.
After the server has rebooted

root@xxxx:~# ufw status
Status: inactive

root@xxxx:~# ufw app list
Available applications:
OpenSSH

root@xxxx:~# ufw allow ssh
Rules updated
Rules updated (v6)

root@4dt9:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
ERROR: Could not load logging rules

If this problem could be fixed, it would be great.

Tagged:

Comments

  • carboncarbon Member
    edited July 2023

    After some troubleshooting, it looks that there is a fundamental problem with iptables and the framework being used, there is a conflict between the old iptables and the new nftable.

    Also, the kernel version comes up as 4.4.0, which looks very dated. Googling around it comes up old pages where other user reports problem with kernel 4.4 and iptables.

    Since this is a container service it is not much a user can do.

  • carboncarbon Member
    edited July 2023

    For the virtualization openvz is used. It looks like this can be problematic, "OpenVZ is no longer the recommended virtualization technology for Ubuntu 22.04 (or any other recent Ubuntu versions). Instead, Ubuntu shifted to using the Linux kernel's built-in containerization features such as cgroups and namespaces, along with the LXD container hypervisor, as the preferred containerization solution.

    OpenVZ was popular in the past, but its support and integration with newer Linux kernel versions and distributions have become limited. Therefore, using OpenVZ with Ubuntu 22.04 might not be the best option.

    If you intend to use Ubuntu 22.04 as a host system for containerization, it is recommended to explore LXD or other containerization technologies like Docker, Podman, or Kubernetes that are better supported and integrated with Ubuntu and modern Linux kernels.

    To summarize, using OpenVZ with Ubuntu 22.04 might not be feasible or advisable. Instead, consider using a more up-to-date and widely supported containerization solution like LXD or other modern container technologies for Ubuntu 22.04."

  • @carbon said:
    After some troubleshooting, it looks that there is a fundamental problem with iptables and the framework being used, there is a conflict between the old iptables and the new nftable.

    Also, the kernel version comes up as 4.4.0, which looks very dated. Googling around it comes up old pages where other user reports problem with kernel 4.4 and iptables.

    Since this is a container service it is not much a user can do.

    It appears that the issue lies in a fundamental conflict between the outdated iptables and the newer nftables framework. Furthermore, the use of kernel version 4.4.0 seems quite dated, with reports of compatibility problems between this kernel version and iptables found in older user discussions.

Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch