From a741954c8f40c742cd476b16e95beaf454626ad6 Mon Sep 17 00:00:00 2001 From: fedorHub Date: Mon, 3 Apr 2023 18:53:10 +0200 Subject: [PATCH 1/2] fix: route add --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3b6760b..d831b3f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ IFS=',' read -ra ROUTES <<< "$EXTRA_ROUTES" for route in "${ROUTES[@]}"; do IFS=':' read -a args <<< "$route" - echo route add -net ${args[0]} gw ${args[1]} + ip route add -net ${args[0]} gw ${args[1]} done exec /forwarder $@ From ff296775ea1694cbb8ac33c932b3bb5cb46e8bea Mon Sep 17 00:00:00 2001 From: Fedor Sorokin Date: Tue, 4 Apr 2023 16:49:29 +0200 Subject: [PATCH 2/2] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d831b3f..3036ff1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ IFS=',' read -ra ROUTES <<< "$EXTRA_ROUTES" for route in "${ROUTES[@]}"; do IFS=':' read -a args <<< "$route" - ip route add -net ${args[0]} gw ${args[1]} + ip route add ${args[0]} via ${args[1]} done exec /forwarder $@