Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Enable IP forward for vpn-shoot container
Browse files Browse the repository at this point in the history
Calico 3.0 disabled IP forwarding for all containers by default
  • Loading branch information
rfranzke committed Feb 14, 2018
1 parent 508ff97 commit 6fb8294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shoot/network-connection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ fi
# start ssh daemon in background
/usr/sbin/sshd -D -f /etc/ssh/sshd_config &

# Calico 3.0 disabled IP forwarding by default for all containers
# Let's enable IP forwarding only for vpn-shoot, thought to be only an intermediate solution. The preferred solution would be to use Calico policies (https://docs.projectcalico.org/v3.0/reference/calicoctl/resources/globalnetworkpolicy).
# See also: https://github.com/gardener/vpn/issues/18
echo 1 > /proc/sys/net/ipv4/ip_forward

while true; do
TUN_DEVICES="$(ip addr | grep -e 'tun[0-9]*:' | sed -E 's/^.*(: (tun[0-9]*)\:).*/\2/')"
Expand Down

0 comments on commit 6fb8294

Please sign in to comment.