mptcp inside lxc container can't access /proc/sys/net/mptcp_enabled
https://github.com/multipath-tcp/mptcp/issues/470
Hi,
I guess you can still mount /proc/sys/net/mptcp in a different directory in your container to be able to read/change values. (not sure it is recommended but well :) ) |
mptcp_net-next (mptcpv1) allows per namespace configuration.. |
This might not be related to mptcp but I'm asking it here as you guys have expertise in the Linux net. As you can see in the above image I have a Debian based docker container that is connected to two networks. So there are two bridges configured in my host and they get connected to the docker network namespace via veth links. I'm running a small program inside a docker container that detect IP change via rtnetlink. So now my task is to consider the bridge like a virtual switch and if I bring down the bridge interface in my host machine I expect the veth link between my host and docker to go down and the program (rtnetlink) inside my docker container detects this link down event. But unfortunately, nothing happens, even the IP address of both bridge and docker interface not removed. Maybe my understanding of veth links are wrong (I thought it react similarly to pulling out lan cable from the physical switch 😁 ) My end requirement is to connect more docker containers to these two bridges and try to shut down one bridge will remove one subflow of mptcp connection running in all the containers. But for that I need the netlink event when the bridge goes down. Currently, I only get Netlink events on running @matttbe is possible to achieve my above requirement in any other way ? (LXC or something else) |
It is strange but maybe normal for the veth to act like that, I cannot tell. Did you run something like |
Hi,
I have created an lxc container (ubuntu 20.04) with privileged mode and my host machine has mptcp kernel installed ubuntu 20.04. For some reason, I don't see the file /proc/sys/net/mptcp_enabled inside the container. I can access the file on my host machine without issue.
Please take a look at my container config
You can see that I even mapped the sys and proc files in the config
I even tried with Docker but experienced the same problem.