Loading run/network.sh +6 −6 Original line number Diff line number Diff line Loading @@ -149,18 +149,18 @@ fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 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: ${IP}" && echo echo "Info: Container IP is ${IP} with gateway {GATEWAY}" && 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 [[ "$GATEWAY" == "172."* ]]; then # Bridge network configureNAT Loading Loading
run/network.sh +6 −6 Original line number Diff line number Diff line Loading @@ -149,18 +149,18 @@ fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 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: ${IP}" && echo echo "Info: Container IP is ${IP} with gateway {GATEWAY}" && 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 [[ "$GATEWAY" == "172."* ]]; then # Bridge network configureNAT Loading