From 0b6465e0c7c0962ef2c9eab853d10c161c419565 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 20 Apr 2023 06:07:03 +0200 Subject: [PATCH] Gateway --- run/network.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run/network.sh b/run/network.sh index da37aaf..989bf67 100644 --- a/run/network.sh +++ b/run/network.sh @@ -149,18 +149,18 @@ fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 -if [ "$DEBUG" = "Y" ]; then - - IP=$(ip address show dev eth0 | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/) - echo "Info: Container IP: ${IP}" && echo - -fi - update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null GATEWAY=$(ip r | grep default | awk '{print $3}') +if [ "$DEBUG" = "Y" ]; then + + IP=$(ip address show dev eth0 | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/) + echo "Info: Container IP is ${IP} with gateway {GATEWAY}" && echo + +fi + if [[ "$GATEWAY" == "172."* ]]; then # Bridge network configureNAT