Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to automatically manage container networking for IPIP in docker-link #19

Open
BrianAdams opened this issue Dec 17, 2015 · 1 comment

Comments

@BrianAdams
Copy link
Contributor

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?

@kobolog
Copy link
Owner

kobolog commented Jan 1, 2016

Hi Brian,

Yeah I like the idea of label-based configuration for containers. I think it can be expanded to support DR too, as well as some more granular options like «forward only this port» or «enable persistent connections for this service» or «bundle all ports for services of this kind with FWMARK», etc. That's definitely the direction for docker-link, in my opinion, as there's no other way to expose any per-container configuration directly with Docker tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants