diff --git a/bin/client_init.sh b/bin/client_init.sh index 38616a8..f9d386b 100755 --- a/bin/client_init.sh +++ b/bin/client_init.sh @@ -41,7 +41,7 @@ ip route # Derived settings K8S_DNS_IP="$(cut -d ' ' -f 1 <<< "$K8S_DNS_IPS")" GATEWAY_IP="$(dig +short "$GATEWAY_NAME" "@${K8S_DNS_IP}")" -NAT_ENTRY="$(grep "$(hostname)" /config/nat.conf || true)" +NAT_ENTRY="$(grep "^$(hostname) " /config/nat.conf || true)" VXLAN_GATEWAY_IP="${VXLAN_IP_NETWORK}.1" # Make sure there is correct route for gateway