In order to use IPIP it appears necessary to make some tweaks to the networking of the container that is receiving the traffic.
The docker-link project can be updated to execute the necessary commands when a container comes on-line.
These commands are something like:
ip link set tunl0 up
ip addr add <VIP>/32 dev tunl0 brd <VIP>
sysctl -w net.ipv4.conf.tunl0.rp_filter=2
I could imagine having docker-link look for labels in the container that indicate the desire for IPIP routing. A tag such as GORB-IPIP. The system will also need to verify that the container was started with --cap-add=NET_ADMIN.
This appears to work just fine, even on minimal docker containers.
Is this a direction that docker-link should go?
In order to use IPIP it appears necessary to make some tweaks to the networking of the container that is receiving the traffic.
The docker-link project can be updated to execute the necessary commands when a container comes on-line.
These commands are something like:
I could imagine having docker-link look for labels in the container that indicate the desire for IPIP routing. A tag such as
GORB-IPIP. The system will also need to verify that the container was started with--cap-add=NET_ADMIN.This appears to work just fine, even on minimal docker containers.
Is this a direction that docker-link should go?