You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2021. It is now read-only.
Add support for tc redirect based VM to Container connection
Implement a new interconnection capability to support tc based traffic redirection.
This can be based on the existing bridge connection logic, using tc instead of the linux bridge
Connecting a veth device to tap
veth device from CNI/CNM plugin: eth0
tap device that connects to the VM: tap0
Redirecting traffic between the two devices
To quickly prototype, select the virtcontainers bridge networking implementation.
Then for each container
nsenter --net=<container_ns>
ip link del br0
tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol all u32 match u8 0 0 action mirred egress redirect dev tap0
tc qdisc add dev tap0 ingress
tc filter add dev tap0 parent ffff: protocol all u32 match u8 0 0 action mirred egress redirect dev eth0