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

How to specify network interface ? #11

Closed
dceejay opened this issue Oct 12, 2020 · 2 comments
Closed

How to specify network interface ? #11

dceejay opened this issue Oct 12, 2020 · 2 comments

Comments

@dceejay
Copy link

dceejay commented Oct 12, 2020

If I have a container with multiple internal networks - how do I specify which interface tc will attach itself to ? the README for the .loss alludes to the capability when it says "...outgoing from the chosen network interface"... so it must be possible - but there is no com.docker-tc. parameter for it.

quentingodeau added a commit to quentingodeau/docker-tc that referenced this issue Feb 21, 2021
You can now on a container that is connected to multiple network apply
tc rules on a specific network (issue lukaszlach#11)
@quentingodeau
Copy link

Hi @dceejay,
I got the same issue, and didn't see in the code any way to choose an interface. So I made some changes (check the PR) to put traffic control over specific networks, note that if you have multiple interfaces on the same network it will not allow you to choose which interface.
At first I planned to add the capability to specify the eth0 or ethX interface but they are internal interfaces that docker do not known about. There is external interfaces name but I didn't see any way to know them beforehand.
I hope that it will be enough for your use case :)

@dceejay
Copy link
Author

dceejay commented Feb 21, 2021

sounds workable for me. Thanks

@dceejay dceejay closed this as completed Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants