- Published on : 22 April 2015 at 15:37 UTC
- By Lionel Eppe
To allow a Windows Server server to act as a router, you must install the NAT system (to translate private IP addresses (local) to Internet IP) and network routing system for ports forwarding.
- Two network adapters : one connected to a switch (where clients computers are connected) and the other on a modem or a router connected to the Internet.
- a DHCP server to distribute private IP addresses to client computers
Unlike Windows Server 2008, under Windows Server 2012, these features can be found in the "Remote Access" role.
Select "Remote Access".
As indicated at the end of this description, you can configure the routing functionality by using the Remote Access console.
Note : The feature "DirectAccess and VPN (Remote Access)" is a dependency of the "Routing" functionality.
At the end of the installation, click on the "Open the Getting Started Wizard" link.
Then, click "Deploy VPN only" to open the "Routing and Remote Access" console that was also present in previous versions of Windows Server.
In the "Routing and Remote Access" window, right click on your server name and click "Configure and Enable Routing and Remote Access."
Select "Custom Setup".
Select "NAT" and "Network Routing".
The wizard displays a summary of the configuration.
Click "Start Service".
Once the service is started, go to "IPv4 -> NAT", right click on the right side and click on "New interface".
Select the network adapter connected to the Internet.
Select "Public interface connected to the Internet" and check "Enable NAT on this interface".
Now, add the interface connected to the private network.
Select the network adapter connected to the private network.
Note : Be careful, don't confuse it with the "Internal" interface that doesn't really exist.
Select "Private interface connected to the private network".
Now that your router is configured, we will configure the router option of our DHCP server.
Note : Set this option in the server options or scope options according to your case
Enter the IP address in the "003 router" option and click "Add".
Thus, clients will receive our IP address as the default gateway. The router that they must use to access the Internet.
On the client computer connected to the switch (private network), you see that it has received an IP address from our DHCP server and the IP address of the default gateway corresponds to the IP address of our server (which acts as a router).
Note : If your client computer doesn't have Internet access, check that :
- the IP address of the gateway corresponds to the IP address of your server and the server is properly configured.
- the IP address of the DNS server corresponds to the IP address of your server if you installed a DNS server on your server. Otherwise, indicate those of Google (18.104.22.168 and 22.214.171.124) in the "006 DNS Servers" option of your DHCP server.