Software⏱️ 3 min read📅 2026-06-15

How to Fix: IPSet with IP6Tables ERROR

IPset and IPtables error with IPv6 blacklist, yum list output indicates xtables package is not installed.

Quick Answer: Install the xtables package using yum or another package manager to resolve the issue.

The error message 'ip6tables v1.4.7: Couldn't load match `set':/lib64/xtables/libip6t_set.so: cannot open shared object file: No such file or directory' indicates that the IP6Tables module is unable to find the required library for the `set` match. This issue affects users who are trying to use the `set` match with IPsets on IPv6 networks.

The frustration of encountering this error, especially when it's working fine with IPv4 and other software, can be quite disheartening. Fortunately, there is a solution that does not require using alternative software.

🛑 Root Causes of the Error

  • The primary reason for this error is that the `libip6t_set.so` library is missing or not installed on the system. This library is required by IP6Tables to support the `set` match, which is used in your case with the `blacklist6` IPset.
  • An alternative cause could be that the package `xtables-x86_64` is not installed or not up-to-date, which would result in a missing dependency for the `set` match.

🚀 How to Resolve This Issue

Reinstalling the xtables Package

  1. Step 1: To fix this issue, first, update your package list by running `sudo yum update`. This will ensure that you have the latest packages installed on your system.
  2. Step 2: Next, install the `xtables-x86_64` package using `sudo yum install xtables-x86_64`. If the package is already installed, you can simply upgrade it to the latest version using `sudo yum upgrade xtables-x86_64`.
  3. Step 3: After installing or upgrading the `xtables-x86_64` package, try running your original command again: `ip6tables -I INPUT -m set --match-set blacklist6 src -J DROP`. If the issue persists, proceed with method 2.

Installing a Missing Dependency

  1. Step 1: If reinstalling the `xtables-x86_64` package does not resolve the issue, it's possible that the missing dependency is not being met. Check if there are any other packages installed on your system that might be related to IP6Tables.
  2. Step 2: Run `sudo yum install --showduplicates libip6t_set.so` to check if the missing library is available in the repository. If found, proceed with installing it using `sudo yum install libip6t_set.so`. Then, try running your original command again: `ip6tables -I INPUT -m set --match-set blacklist6 src -J DROP`.

✨ Wrapping Up

To resolve the 'IPSet with IP6Tables ERROR' issue, you can try reinstalling the `xtables-x86_64` package or installing a missing dependency. By following these steps, you should be able to successfully use the `set` match with your `blacklist6` IPset and block unwanted IPv6 traffic on your network.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions