Skip to content

Commit

Permalink
Docker: exclude eth0 ip to fix #143
Browse files Browse the repository at this point in the history
  • Loading branch information
WankkoRee authored and heiher committed Jul 8, 2024
1 parent 82027fe commit 2172ab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ config_route() {
echo "ip rule add to ${addr} table ${TABLE}" >> /route.sh
done

echo "ip rule add to $(ip -o -f inet address show eth0 | awk '/scope global/ {print $4}') table main" >> /route.sh

for addr in $(echo ${IPV4_EXCLUDED_ROUTES} | tr ',' '\n'); do
echo "ip rule add to ${addr} table main" >> /route.sh
done
Expand Down

0 comments on commit 2172ab5

Please sign in to comment.