OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: Blake on August 02, 2017, 04:26:42 pm

Title: vmware esxi 5.5 routing and natng
Post by: Blake on August 02, 2017, 04:26:42 pm
Hello, I have a home lab running VMware 5.5.  Where can I find documentation on how to configure routing and setting up NAT.  My 192 network can access the internet my 10. network also known as Playground cannot access the internet.  How can I configure a route from the 10. netowrk to the 192. netowrk.  In addition how can I NAT 10. network to a 192 network.  By NATing the 10. network to a 192. network I should be able access the internet.
 

I have attached an image that shows what I'm trying to do. 
Title: Re: vmware esxi 5.5 routing and natng
Post by: bartjsmit on August 02, 2017, 07:12:27 pm
The VMware vSwitches are completely separate, you will need to create a VM that routes between them.

You may not need NAT, if the internet router is able to learn the route to the 10. network; either through a routing discovery protocol or through a static route that you configure on it.

Said router would have one leg on the 192 network, and use the ISP router as a default gateway, and one leg in the 10. network where it is the default gateway. You can use pretty much any recent OS on the router VM, including OPNsense.

Bart...
Title: Re: vmware esxi 5.5 routing and natng
Post by: Blake on August 02, 2017, 10:01:47 pm
Thank you, Bart,

I'm trying to learn opensense firewall.  How should I configure Opensense firewall to achieve routing and NATing.
Title: Re: vmware esxi 5.5 routing and natng
Post by: bartjsmit on August 02, 2017, 10:16:24 pm
It's pretty easy with OPNsense; make the interface on the 192 subnet the WAN and the 10 subnet the LAN. Adjust for DHCP where required. Routing with NAT will work out of the box.

Remember to allow Private networks on the WAN interface and install the os-vmware plugin for best performance.

Bart...