Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm evaluating some software solutions, so a simple "yes" or "no" would be nice. I'm having some issues getting a simple answer with my own searches...

The configuration would work like this: I have a VM (guest OS shouldn't matter), running in VMWare Workstation on an MS-Windows OS host. The host can access a proxy server (a SOCKS or HTTP proxy) to connect to the internet if it needs to.

Can I configure the VMWare VM container to use the proxy server for all its internet and network access, such that the guest OS has no idea it's going through a proxy? It simply sees the internet directly.

Thus have VMWare do the proxy handling, instead of the host OS or the guest OS.

share|improve this question
add comment

3 Answers 3

One way of doing this might be creating one VM that acts as a router which then does the transparent proxy for you using something like redsocks. Then configure your other VMs to use this one as their default gateway.

There is a procedure on how to configure a server as a transparent socks proxy available at: http://przemoc.net/tips/linux#making_socks_proxy_transparent

And some general information about redsocks here: http://darkk.net.ru/redsocks/

share|improve this answer
add comment

VMware Workstation (or any other VMware product that I know of) does not natively have this functionality.

Your best bet is to set up a transparent proxy on your network, which will require configuring your gateway to forward whatever traffic (port 80, etc) you are trying to proxy.

share|improve this answer
add comment

You'll want to look into these options within VMWare (I know VirtualBox.org has them, and so I'm hoping that VMWare does too):

  • transparent proxy
  • NAT

Internally, your guest(s) will need an internal/private IP address instead of a real public IP address, unless you know how to do some really advanced things with routing.

Alternatively, you should be able to configure your guest VM to have its own NIC (albeit a virtual NIC that gets its own IP address from the DHCP server independent of the host, etc.), but then you'd be bypassing the proxy which isn't what you want.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.