Friday, May 29, 2015

Building a VMware Workstation Homelab - Part 06: Gateway to the Internet

The lab environment is isolated from my home network, but I want to allow them to be able to access the internets for updates and stuff. Normally I would do this with pfSense as gateway.
I will make a howto on that another time.
  • https://www.pfsense.org/
This time am gonna turn my Domain Controller to a router/gateway to the Internet.

Prerequistes:

  • Windows 2012 R2
  • 2 Physical or Virtual NICs

From Server Manage > Add Roles and Features.

One the Before you begin page, click Next.

Select Role-based or feature-based installation and click Next.

Select destionation server click Next.

Select the Remote Access and click Next.
Click on Add Features. Click Next.


On Role Service click the Routing checkbox. Click Next.

On the Confirm installation selections click Install.

The Feature has now been added to Windows. A reboot is not necessary for this process so we will now proceed to the configuration part.


From Server Manage - Tools - Routing and Remote Access



Right-click on the server name and click Configure and Enable Routing and Remote Access.


The Routing and Remote Access Server Setup Wizard appears. Click Next.

On the Configuration page select Network Address Translation (NAT).


Before we click Next we need to add another Network Adapter to the server.
Click on the Edit vittual mashine settings 
On the Hardware tab press Add...
Select Network Adapter and click Next.


Select Custom: Specific virtual network - VMnet0 (Auto-bridging) - Finish


Back to the Server.
Under : Control Panel\Network and Internet\Network Connections

Rename the new network adapter to Internet.
The internal network adapter is named LAN here.

Now you can press Next

Select the Internet as the interface to the Internet and click Next > Finish


Windows is now configured as a router with a privat network and an external network connected.



Now that i have a Router I have enable this in my DHCP - Lab scope


That's it - and we are now able to access the whole wide web.



No comments:

Post a Comment

Part 26 - How To Deploy Bginfo Using SCCM 2012 R2

We a using a powershell script to install and config Bginfo from Sysinternals . Download the script from here: psBginfo - For simpl...