Skip to content

Commit

Permalink
Update host-check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
futuretea authored and guangbochen committed Jan 7, 2022
1 parent 8021f2d commit 82c4225
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions hack/host-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,3 @@ if [[ ${kernel_main_version} -gt 3 ]];then
else
FAIL
fi

printf " NETWORK: Checking for 'FORWARD' policy for 'harvester-br0' is 'ACCEPT': "
if sudo iptables -t filter -L | grep "Chain FORWARD (policy ACCEPT)" >/dev/null ; then
PASS
else
if sudo iptables -t filter -C FORWARD -i harvester-br0 -j ACCEPT >/dev/null 2>&1 && sudo iptables -t filter -C FORWARD -o harvester-br0 -j ACCEPT >/dev/null 2>&1; then
PASS
else
FAIL
fi
fi

0 comments on commit 82c4225

Please sign in to comment.