Added nftables fix

This commit is contained in:
Alexey Berezhok
2024-07-04 23:01:04 +03:00
parent 719c7d9d67
commit 7444ae626d
4 changed files with 37 additions and 14 deletions

View File

@@ -42,6 +42,16 @@ fi
for service in $service_list; do
if [ "$service" = "iptables" ]; then
if [ -f /etc/redhat-release ]; then
RES=$(systemctl is-enabled nftables | grep enabled)
if [ -z "$RES" ]; then
systemctl enable nftables --now
fi
systemctl status nftables
if [ $? -ne 0 ]; then
systemctl start nftables
fi
fi
$BIN/v-update-firewall
else
systemctl start "$service"