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,