Question about traffic redirect for VMs #640
-
Hi! I have a couple of (probably) silly questions. I read @hellt article about redirecting frames between interfaces. Thing that caught my eyes is how traffic redirection implemented with As i understand, goal is to redirect ingress traffic to container to VM, and egress traffic from VM to container interface. Redirecting container interface ingress traffic to VM is done by Second part (as i understand) should redirect egress traffic to egress qdisc of container interface. Would like to understand, what i'm missing here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @GrigoriyMikhalkin Here is the actual code snippet PS. Sorry I only noticed the question today, the missing counter on discussions make it tricky to see if there are unanswered questions |
Beta Was this translation helpful? Give feedback.
Hi @GrigoriyMikhalkin
for the traffic that is ingressing to container's interface
eth0
we mirror it to the VM'stap0
interface. So you got it right, we move it from container that hosts a VM to that VM that sits inside of it.Here is the actual code snippet
https://github.com/hellt/vrnetlab/blob/64488e4ed9e1766e10354abade9fe036c5ebe703/common/vrnetlab.py#L328-L351
PS. Sorry I only noticed the question today, the missing counter on discussions make it tricky to see if there are unanswered questions