4 ms·
You can probably do this for VirtualBox (and any Linux program) by using tun2socks to create a network interface that routes through a proxy (SOCKS5 if you want
by Manouchehri 3y ago
You can probably do this for VirtualBox (and any Linux program) by using tun2socks to create a network interface that routes through a proxy (SOCKS5 if you want UDP support), and then moving that network interface to a new namespace. You can run VirtualBox or any other programs in that new namespace, they don't have to be aware of the proxy at all (since they just see a regular gateway).
https://github.com/xjasonlyu/tun2socks https://github.com/xjasonlyu/tun2socks
- mrAssHat 3y agoWhich namespace are you taking about? cgroups_namespaces(7)?
- NanoCoaster 3y agoFancy. Think I'm gonna go with a traditional bridge for my usecase, but this looks pretty cool. Maybe I have some other uses for it for other applications. Thank you :)