From a441338be22a3b679090c5b114f518839571e457 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 29 Apr 2023 19:19:57 +0200 Subject: [PATCH] Check IP forwarding settings --- run/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/network.sh b/run/network.sh index 588c4a9..c0d7092 100644 --- a/run/network.sh +++ b/run/network.sh @@ -132,7 +132,7 @@ configureNAT () { #Check port forwarding flag if [[ $(< /proc/sys/net/ipv4/ip_forward) -eq 0 ]]; then - if ! sysctl -w net.ipv4.ip_forward=1; then + if ! sysctl -w net.ipv4.ip_forward=1 > /dev/null 2>&1; then echo -n "ERROR: IP forwarding is disabled. Please add the following " echo "docker setting to your container: --sysctl net.ipv4.ip_forward=1" && exit 24 fi