NDC & PKI

[Day 7] 4. LAB 2 Setting Up a VPN on Windows Server

D
DITISS Admin
••3 min read

Goal:
Establish a VPN on a Windows Server to allow a client machine (on VMNET4) to connect to another network (VMNET5) and acquire an IP in the VMNET5 range.


Setup Requirements

  • Networks:
    • LAN: 50 network (VMNET5)
    • WAN: 40 network (VMNET4)
  • Machines:
    • Windows Server
    • Debian (LAN-side)
    • Windows Client (WAN-side)

Steps

1. Configure VPN on Windows Server

  1. Open the Windows Server VM.

  2. Add Remote Access Role:

    • Go to Server Manager → Add Roles and Features.
    • Select Remote Access → Next → VPN (Routing and Remote Access Service).
    • Click Add Features → Install.
  3. Set Up Routing and Remote Access:

    • Open Tools → Routing and Remote Access (RRAS).
    • The RRAS server will show a red icon.
    • Right-click it and select Configure and Enable Routing and Remote Access.
    • Choose Custom Configuration → Check VPN Access → Finish.
    • Start the service (icon will turn green).
  4. Assign an IP Range for VPN Clients:

    • Right-click the green RRAS server icon → Properties → IPv4 → Settings.
    • Provide an IP range within the LAN network (e.g.,
      192.168.50.51
      to
      192.168.50.55
      ).

2. Create a User for VPN Access

  1. Open Computer Management → Users.
  2. Create a new user:
    • Name: Tinku.
    • Uncheck all options except Password Never Expires.
  3. Configure Dial-In Access:
    • Right-click user Tinku → Properties → Dial-In tab.
    • Set Network Access Permission to Allow Access.

3. Configure VPN on the Client Machine (Windows)

  1. On the Windows Client VM:

    • Go to Settings → Network & Internet → VPN → Add a VPN Connection.
  2. Enter the details:

    • VPN Provider: Windows (built-in).
    • Connection Name: Tinku's VPN.
    • Server Name or Address: 192.168.40.10. (WAN IP that you have on Windows Server)
    • VPN Type: PPTP (Point-to-Point Tunneling Protocol).
    • Credentials: Enter Tinku's username and password.
  3. Open Run (

    Windows + R
    ) → Enter
    ncpa.cpl
    → Check the list of network connections.

    • If Tinku's VPN is not visible, manually connect via VPN settings.

4. Verify VPN Connection

  1. Connect to Tinku's VPN on the client machine. (from Network & Internet option)
  2. Verify the client acquires an IP address in the VMNET5 range (
    192.168.50.x
    ).
  3. Try pinging to the Debian Machine.

Outcome:
The VPN connection is successfully established, allowing the client (Windows machine on VMNET4) to communicate with the LAN network (VMNET5) and obtain an IP address within the LAN range.

Read Next

8/26/2026

[Day 7] 5. LAB 3 GeoIP Traffic Filtering and Logging

#### Objective: To block traffic from China and log the packets received, ensuring proper traffic filtering and logging using `iptables` with the...

8/26/2026

[Day 7] 6. Extra

- **MOU**: Memorandum of Understanding; a formal agreement between two or more parties outlining their intentions to collaborate or work togeth...