Closed VenkateswaranJ closed 2 years ago
Hi,
mptcp_enabled
(and most/all MPTCP sysctl) are global for all net namespaces. It means that you can only read and write values from the "main" net namespace and this will affect all netns.
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 :grin: )
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 ip addr del 192.168.10.2/24 eth0
inside docker container.
@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 ip monitor
in the docker to check if you don't get any other useful events?
Maybe you have to first delete the IPs from each container to make sure the proper signal are sent?
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.