Newsvine
  • Welcome
  • Help
  • Report Bug
  • Conversation Tracker
  • Your Column
  • Replies
  • Friends
Type Comments Since You Last CheckedArticle Source Last Checked Stop Tracking All Clear Tracking All
Advertise | AdChoices
Log In | Register
Close the Login Panel
Existing users log in below. New users please register for a free account.

New Users:

Existing Users:

E-Mail:
Password:
Forgot Password?
Please enter the e-mail address or domain name you registered with:
E-Mail/Domain:
Back to Login
Log Out
  • Top News
  • Local News
  • World
  • U.S.
  • Sports
  • Politics
  • Tech
  • Entertainment
  • Science
  • Business
  • Health
  • Odd News
  • More
    • Arts
    • Education
    • Environment
    • Fashion
    • History
    • Home & Garden
    • Not News
    • Religion
    • Travel
Visit Julian Kamil's column >>

JULIAN KAMIL

Home Page
Articles Posted: 4  Links Seeded: 0
Member Since: 2/2006  Last Seen: 12/01/2011

What is Newsvine?

Updated continuously by citizens like you, Newsvine is an instant reflection of what the world is talking about at any given moment.

Get a Free Account
Help
Fun Stuff
  • Your Clippings
  • Leaderboard
  • E-Mail Alerts
  • Top of the Vine
  • Newsvine Live
  • Newsvine Archives
  • The Greenhouse
  • Recommended Articles
  • Wall of Vineness
Put a Seed Newsvine link on your own site

VMware Fusion port forwarding in NAT mode

Tue Mar 3, 2009 7:27 PM EST
technology
By Julian Kamil
Advertise | AdChoices

Recently, I needed to make some network services in one of my VMware Fusion guest virtual machines available to other machines in my physical network. This guest VM is running Squid and is connected to my company's network through a VPN connection. A browser on the host OS X machine has no problem getting through over Squid on the guest machine, but I needed to have a native Windows machine in the physical network to get connected as well. It so happens that the guest VM networking is running in NAT mode, and so, by design, it is not directly accessible from the external, physical network.

The solution for establishing connectivity is actually very simple, using a not so well advertised feature of VMware Fusion.

VMware Fusion supports NAT port-forwarding, which in short, lets the host machine to forward traffic directed to a set of configured ports in a guest VM. To set this up, I needed to do the following:

  • Edit the NAT configuration file to add the list of ports to be forwarded in this mode. To support HTTP proxy requests, I added port 3128 forwarding to the incomingtcp section of this file.
$ sudo vi "/Library/Application Support/VMware Fusion/vmnet8/nat.conf"
...
[incomingtcp]
3128 = 192.168.19.69:3128
...
  • Restart VMware Fusion networking.
$ sudo "/Library/Application Support/VMware Fusion/boot.sh" --restart

No restart of VMware Fusion application or the guest VM is necessary. This configuration change takes effect immediately, and from this point on the host machine acts as a stand in for the guest and will forward all HTTP proxy requests to the guest VM.

  • Enjoy this article? Help vote it up the 'Vine.

Back To Top | Front Page

Published to:

  • Julian Kamil's Column, All of Newsvine
  • Groups: none
  • Regions: none
  • Public Discussion (2)
ilDave

Very useful and clear informations, thanks!

    Reply#1 - Mon Oct 12, 2009 2:21 PM EDT
    MichaelAziz
    Hello, what does the IP 192.168.19.69 represent? The Host IP? The NAT gateway address? Does this work for XP VMs too?Thanks,M.
    • 1 vote
    Reply#2 - Tue May 11, 2010 10:26 AM EDT
    Leave a Comment:
    You're in Easy Mode. If you prefer, you can use XHTML Mode instead.
    You're in XHTML Mode. If you prefer, you can use Easy Mode instead.
    (XHTML tags allowed - a,b,blockquote,br,code,dd,dl,dt,del,em,h2,h3,h4,i,ins,li,ol,p,pre,q,strong,ul)
    Newsvine Privacy Statement
    As a new user, you may notice a few temporary content restrictions. Click here for more info.
    FUN STUFF:
    • Leaderboard |
    • E-Mail Alerts |
    • Top of the Vine |
    • Newsvine Live |
    • Newsvine Archives |
    • The Greenhouse |
    COMPANY STUFF:
    • Code of Honor |
    • Company Info |
    • Contact Us |
    • Jobs |
    • User Agreement |
    • Privacy Policy |
    • About our ads
    LEGAL STUFF:
    • © 2005-2012 Newsvine, Inc. |
    • Newsvine® is a registered trademark of Newsvine, Inc. |
    • Newsvine is a property of msnbc.com