I'm pretty sure you can just use the VBoxManage command - it's documented in the VirtualBox manual.
A blog description is available here:
http://sk.c-wd.net/wp/2008/01/05/virtualbox-port-forwarding-with-linux-host/
HTH,
Peter.
2010/1/5 Brett Parker iDunno@sommitrealweird.co.uk:
On 05 Jan 20:09, Paul Grenyer wrote:
Hi all
I've VritualBox running a Win 2003 Server on my 64bit Ubuntu 9.10 desktop installation. And that in turn is running Microsoft SQL Server.
I can access SQL server from my ubuntu desktop as http://win2003server:1433.
But I want to be able to access it is http://localhost:1433, as if it was actually running on ubuntu.
So what I want to know is, is there a way to forward all localhost:1433 traffic automatically to win2003server:1433? Is there a better solution?
iptables -t nat -A PREROUTING -p tcp -d localhost -dport 1433 \ -j DNAT --to win2003server:1433 iptables -t nat -A FORWARD -p tcp -d win2003server -dport 1433 \ -j ACCEPT
Those should do it. Though that's untested ;)
Cheers,
Brett Parker
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!