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 currently testing out a new proxy system that I'd like to try out on my own computer. Because I do not have an additional PC available, I though I'd do it with VMware. Here's what I'd like to do:

What I want

The physical computer is to make an Internet connection using the VMware proxy and not the router. The VMware machine must have two network interfaces, one to connect to the internet and one to connect to my physical machine with the proxy as DHCP.

  1. Is this possible?
  2. If so, how could I accomplish this?
share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted
+50

There are multiple ways to do this, but here is one approach:

  1. Set the VM to use bridged networking instead of NAT.
  2. Disable the DHCP service (but not the DHCP client for the WAN port) on your router.
  3. Give the virtual machine a fixed IP address in your router's subnet (e.g. 192.168.0.101).
  4. Give the virtual machine another fixed IP address in a different private subnet (e.g. 10.234.0.1)
  5. Set up the proxy and enable its DHCP service (but not its DHCP client). Set it up to distribute a range of non-routable IP addresses within your new private subnet (e.g. 10.234.0.101-150). I presume that the proxy, in this case, is meant to be the default gateway, so set up the DHCP scope accordingly.
  6. Renew the host machine's DHCP lease so that it receives a new IP address from the proxy (e.g. 10.234.0.101).
share|improve this answer
    
Would there be any way to not affect my network, disabling the DHCP of my router is not really an option at this moment... –  BloodPhilia Jun 23 '10 at 19:56
    
Let's take a step back. Is it absolutely essential for the host machine to be a client to the proxy? It would be a lot cleaner to set up a second VM to be the client: the host would have no configuration changes, the proxy VM would have two virtual network adapters (one bridged to the host's network and one host-only) and the client VM would have only a host-only adapter allowing it to connect to the proxy. –  Miles Erickson Jun 23 '10 at 22:39
    
Why didn't I think of that! Thanks! –  BloodPhilia Jun 24 '10 at 10:23
add comment

Yes, this can be done, infact i did it myself. You need to manage the VMNets to create multiple connections to your proxy server. On linux there is a command for this, on windows a gui (i think, i'm a 'nix hacker). This is all pretty well documented in the VMWare docs.

Then you need to find a way to make your computer/browser use the proxy. If you only what to test a browser, this is easy. Just edit your browser settings. If you want to test more extensively i recomend you create a seperate VM, that shares on VMNet with the proxy to test from.

Hope this helps.

share|improve this answer
1  
I'm looking for detailed examples on how to accomplish this, any chance of you supplying me with that? –  BloodPhilia Jun 19 '10 at 17:03
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.