Open telmich opened 4 years ago
Just checked if there is a workaround to use iptables, but it seems iptables is gone / even the iptables package provides ip6tables-nft.
[20:51:46] server2.place6:~# dpkg -l | grep nft
ii libnftables0:amd64 0.9.0-2 amd64 Netfilter nftables high level userspace API library
ii libnftnl11:amd64 1.1.2-2 amd64 Netfilter nftables userspace API library
ii libnftnl4:amd64 1.0.7-1 amd64 Netfilter nftables userspace API library
ii nftables 0.9.0-2 amd64 Program to control packet filtering rules by Netfilter project
[21:30:05] server2.place6:~# ls -alh /usr/sbin/ip6tables /etc/alternatives/ip6tables /usr/sbin/ip6tables-nft
lrwxrwxrwx 1 root root 23 May 15 21:29 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-nft
lrwxrwxrwx 1 root root 27 May 15 21:29 /usr/sbin/ip6tables -> /etc/alternatives/ip6tables
lrwxrwxrwx 1 root root 17 Mar 1 2019 /usr/sbin/ip6tables-nft -> xtables-nft-multi
[21:30:26] server2.place6:~# dpkg -S /usr/sbin/ip6tables-nft
iptables: /usr/sbin/ip6tables-nft
[21:30:32] server2.place6:~#
The error clearly states that you are mixing iptables-legacy and iptables-nft tables at once.
@divanikus I am not sure if i understand you. Is iptables-legacy a package that should be available?
[22:39:31] server4.place6:/etc/alternatives# apt search iptables-legacy
Sorting... Done
Full Text Search... Done
[22:39:39] server4.place6:/etc/alternatives#
No, they are supplied within iptables
package. They simply use different kernel modules to operate, and it is strongly advised not to try to mix them both.
Here's a part of your log:
# Warning: iptables-legacy tables present, use iptables-legacy to see them
Seems like something on a compute node has created entries in iptables-legacy, possibly directly. Because if you call plain iptables
commands, it would create entries within nft
realm.
Opennebula works with iptables-nft just fine though.
@divanikus You are absolutely right, sorry for the noise. Just one question for the future: are there any plans to support nft natively in opennebula?
Idk, I'm just a user of ONE, like you :)
Yes, we've talked about this internally. It is definitely in our radar, although not a top priority as long as the iptables interface is supported for nft-tables.
I've hijacked your issue to include native nft interface for SG implementations
/!\ To report a security issue please follow this procedure: [https://github.com/OpenNebula/one/wiki/Vulnerability-Management-Process]
Description
Trying to create a VM on Devuan Beowulf (= Debian 10 packages) fails when ip6tables is called.
To Reproduce Use Debian 10 / Devuan Beowulf, have nft installed, deploy a VM in a network with security groups enabled.
Expected behavior Don't fail to create a VM
Details
Additional context
Progress Status