Philipp Schumann

Disrupt, constructively. Construct, disruptively. 
« Back to blog

How do I open a TCP port on a Ubuntu physical machine (host) for a Win virtual machine (guest)?

So here's my problem: I have a Windows 2003 guest virtual machine running under VMware Server 2.0 64bit. The host machine is Ubuntu 8.04 where I have a custom web server running under TCP port 54321.

With both bridged and host-only networking, the (Windows) guest machine can ping the (Linux) host machine -- but cannot connect to the aforementioned TCP service (neither via Telnet nor a web browser). In both bridged and host-only networking scenarios, the two machines (virtual and physical) obviously belong to the same virtual LAN so they can ping each other. I suppose my Ubuntu is, per factory defaults, "over-configured / secured". How do I open this specific port for clients from these virtual networks or just from the LAN in general?

Without knowing much about iptables, I tried both
sudo iptables -I OUTPUT -p tcp --source-port 54321 -j ACCEPT
sudo iptables -I INPUT -p tcp --destination-port 54321 -j ACCEPT

which, from some googling, people sometimes seem to use for other ports like MySQL or BitTorrent. Didn't help with my particular problem in the VMware scenario I just described.

Any pointers gladly appreciated!

Loading mentions Retweet

Comments (1)

Jan 13, 2009
guillaume said...
did you active the forwarding on your ubuntu ??

By defaults it's normally not activated on any linux distrib...

good luck (btw your flat looks good but too expensive, can i pay by computing skills teaching??? :))

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    Connect    twitter