Transparent proxy for traffic originated by apps within a VM

I was trying macos 12.5 and was pleasantly surprised to find that tcp/udp originated by apps within the VM also gets captured by the transparent proxy running on the host, which is great! Tried this with Parallels VM and VMware VM, both works fine (guest OS being linux). But for some reason, traffic originated by apps from within a docker VM/container does not get captured by the transparent proxy (regardless of whether docker is using "big sur.framework” or “hypervisor.framework”).

Any idea why that might be the case ? I can post this same question in docker forums too, but is there something that apple advertises as "this is what you should do to get apps from within a VM captured by transparent proxy" - so that I can ask a more informed question in docker forums ?

Rgds, Gopa.

I suspect that this is the difference between bridged and NATed networking. In VMware Fusion, try messing with Virtual Machine > Network Adapter. If you toggle between NAT and Bridged, do you see different behaviour in your transparent proxy?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Transparent proxy for traffic originated by apps within a VM
 
 
Q