Skip to content

Commit

Permalink
test with iptables-nft
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Apr 18, 2024
1 parent 57db12f commit 295cf63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ case $(id -u) in
if command -v iptables-legacy >/dev/null 2>&1; then
iptables-legacy -V
iptables-legacy -L
iptables-legacy -A INPUT -p tcp --dport 9999 -j ACCEPT -m comment --comment "Test rule for ipt_comment module"
fi

if command -v iptables-nft >/dev/null 2>&1; then
Expand All @@ -84,6 +83,7 @@ case $(id -u) in
iptables-nft -N DOCKER-ISOLATION-STAGE-1
iptables-nft -L
iptables-nft -I DOCKER-ISOLATION-STAGE-1 -j RETURN
iptables-nft -A INPUT -p tcp --dport 9999 -j ACCEPT -m comment --comment "Test rule for ipt_comment module"
fi
;;
*) ;;
Expand All @@ -93,7 +93,7 @@ case $(uname -m) in
x86_64)
ls -l /dev/kvm
test -w /dev/kvm || test "$(id -u)" != 0
if which kvm-ok >/dev/null; then
if command -v kvm-ok >/dev/null 2>&1; then
kvm-ok
fi
;;
Expand Down

0 comments on commit 295cf63

Please sign in to comment.