I want to build a mini home lan web cache proxy server on my windows 8 desktop.
I will run a Ubuntu 14.04 + Squid as a VM on the Win 8 desktop. The desktop's wifi adapter will connect to the ISP modem/router, the onboard Ethernet NIC will connect to my own router that will connect the rest devices in the house.
The Ubuntu+Squid VM will sit between the Window 8 wifi adapter and the ethernet NIC.
Now my question is, how do I go about configure the VM's networks? Obviously the Ubuntu VM would need at least 2 virtual NIC, one connects to the Win 8 host wifi adapter, the other one connects to the host onboard Ethernet NIC.
For starter, how do I add a 2nd network adapter for the Ubuntu VM?
2ndly, which network adapter type do I choose: NAT, bridge or host only network?
Thanks!
For starter, how do I add a 2nd network adapter for the Ubuntu VM?
Go to virtual machine settings, click Add, select Network Adapter, select Bridged, Finish and OK.
2ndly, which network adapter type do I choose: NAT, bridge or host only network?
Select bridged, but you will need to create another bridged network on VMware Workstation (VMnet) and bind each bridged VMnet to a different physical network adapter.
Suggest you read Chapter 5 "Configuring Network Connections" in Using VMware Workstation (PDF) so as to have a better understanding of the VMware Virtual Network Infrastructure!
Thanks! Reading now .... lots of material to digest. I will come back after I've done reading.
Yes I figured that out, still not sure how to configure them together.
Since I don't know how to configure the adapter manually, so right now I am assigning only one NAT to the Ubuntu server and let the VM wizard configure it for myself. That's only way I can get internet on the VM now.
I've installed squid3, so next I need to install second NIC on VM and configure squid3.
You can easily add more than one IP address in your Ubuntu. have a look here .. http://www.cyberciti.biz/tips/ubuntu-linux-creating-ethernet-alias-for-eth0-network-device.html