Windows 11 – L2TP VPN – 2024

Click on “Start” Windows symbol and click on “Settings”

Head into “Settings” > “Network & Internet” > “VPN”. Click on “Add VPN”.


Click on “Add a VPN connection.”
Fill in the fields as in the image below:
VPN Provider: Windows (default)
Connection name: rilheva
Server name or address: vpn.rilheva.com
VPN Type: L2TP/IPsec with pre-shared key
Type of sign-in info: Username and password
Pre-shared key, Username and Password: Rilheva will provide you with this data



Click on the “Save” button.

In the search box on the taskbar, type control panel, and then select Control Panel. 

Find and click “Network and Sharing Center”.

On the left, click on “Change adapter settings”

The “Network Connections” tab will open.

Right click on “rilheva”, click on “Properties”.

Choose the “Networking” tab and select “Internet  Protocol Version 4 (TCP/IPv4)”

Click on the “Properties” button.

In the “Internet protocol version 4 (TCP/IPv4) Properties” panel, click on the “Advanced” button.

From the “Advanced TCP/IP Settings” panel, uncheck “Use default gateway on remote network”. This setting is very important, otherwise the internet will no longer work. Just leave the checkbox on “Automatic metric”.

Click the “OK” button for all open panels.

Click the “Internet Access” button in the lower right corner of your monitor and click on the “VPN” button

Click on “rilheva” and click on the “connect” button

Right click on “Windows Powershell” as administrator

Copy and paste the command written below into the Powershell panel; it adds the route to reach the specific plant).

The route is enabled when the VPN is connected after executing the command. Disconnect and connect the VPN.

EXAMPLE COMMAND:

Add-VpnConnectionRoute -ConnectionName rilheva -DestinationPrefix 172.16.0.0/24 –PassThru

TEMPLATE:

Add-VpnConnectionRoute -ConnectionName <VPN Name> -DestinationPrefix <Ip VPN plant with zero at the end>/24 –PassThru

Was this helpful?

0 / 0