Andrew J. Barr schrieb:
> I wonder if VirtualBox, like QEMU, uses Slirp for it's user-mode NAT
> stack. I think this code supports port forwarding, so it may be possible
> to hook it up to the rest of VirtualBox. If not perhaps the code from
> QEMU (which supports this feature IIRC) could be useful.

Yes, we use slirp for our user-mode NAT. And there is code in VirtualBox 
that allows one to configure port forwarding. There is nothing in the 
normal frontends/GUIs which allows you to get at these settings, but you 
can specify the config options "UDP" (boolean, default true), 
"HostPort", "GuestPort" and "GuestIP". To set these options (I assume 
that the guest NIC using NAT is the first one), one uses

VBoxManage setextradata VMNAME "/Devices/pcnet/0/LUN#0/Config/UDP" 0

and so on. The GuestIP is specified as a string.

If it doesn't work (it's possible that the VM will refuse to start if 
you set these config options), make sure you remove everything you added 
by omitting the value for a particular key. AFAIK that code hasn't been 
in use, so please let me know if it works or not.

-- 
Klaus Espenlaub     InnoTek Systemberatung GmbH, http://www.innotek.de

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to