Page 1 of 1

Forward all traffic from VirtualBox vm through ssh tunnel

Posted: 10. Aug 2008, 08:49
by pdcd
OK I'm trying to do stuff through a ssh tunnel. I set it all up within the XP install on the VM and it works fine for some stuff and other stuff applications just aren't launching right. I'm using Putty and Freecap to do this within windows. So, like I said I can verify the tunnel is working and when I launch some applications that use the net, they work fine, but other apps don't launch at all.

So, what I want to do is run the tunnel on my main computer, and tell VirtualBox to do all network stuff through the exterior tunnel. The only problem is, if I set up the tunnel and launch VirtualBox from Freecap, when I tell the VM to run, it is still using the regular network. I tried messing around in the network settings of VirtualBox but nothing seemed to work.

Help!

Posted: 10. Aug 2008, 16:23
by Sasquatch
I don't see this as a particular VB problem. It's more like 'I'm connecting to a different computer and I want all the traffic that pc generates (either internet or other) to run through my computer using the SSH tunnel'.
If that is indeed your idea, please go to a more professional forum as this is all about VirtualBox and not advanced networking like the one you describe.

Posted: 10. Aug 2008, 20:34
by pdcd
Well I don't see it as a VB problem, but VB has networking settings inside of it. You can sit there and change network stuff. I'm wondering if there's something I can change to force traffic to a particular place.

Posted: 10. Aug 2008, 21:33
by Sasquatch
Not with VB. I don't even think VMWare can do that. This is more advanced networking than your avarage virtualisation can do. All they provide is access to network adapters, not how traffic flows from one computer to another. That is taken care of by the routing table on the OS.

Posted: 17. Aug 2008, 17:25
by NeBlackCat
What's your host? If it's Linux, don't you just want to bridge the virtualbox tun (the host end of the virtual NIC in the vm) with an SSH tun? Then it's all transparent to the vm - no need to start anything in it.

Re: Forward all traffic from VirtualBox vm through ssh tunne

Posted: 17. Nov 2011, 12:25
by sickill
Here's exactly what you want (if you use Linux-based host): http://ku1ik.com/2011/11/12/tunnel-vm-network-ssh.html