mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-05-25 01:02:00 +00:00
fix: NFT tables detection (#1137)
This commit is contained in:
@@ -484,7 +484,7 @@ configureNAT() {
|
||||
warn "failed to set master bridge!" && return 1
|
||||
fi
|
||||
|
||||
if grep -wq "nf_tables" /proc/modules; then
|
||||
if command -v iptables-nft >/dev/null 2>&1 && iptables-nft -V >/dev/null 2>&1; then
|
||||
update-alternatives --set iptables /usr/sbin/iptables-nft > /dev/null
|
||||
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft > /dev/null
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user