How to Setup a VPN on an Edgerouter Lite Router

Edgerouter lite is a small and affordable router that supports both wired and wireless connections. Not only does it support the usual set of WiFi standards and Wi-Fi protected access (WPA/WPA2) security, but it also offers an open VPN server that you can use to securely access the Internet from anywhere.

The default VPN server configuration provided by Edgerouter lite provides a PPTP (L2TP/IPSec) tunnel that you can use to securely access the Internet via a VPN. It also provides a L2TP/IPSec VPN client that you can run on a desktop or mobile device, allowing you to connect to the VPN and access private servers whenever you want.

This tutorial will walk you step-by-step through the process of configuring a VPN server using an Edgerouter lite router, including installing the VPN software, configuring a dedicated IP address, and making secure connections via the VPN.

Step 1: Before Starting, Make Sure You Have Everything

Before you begin, it is essential to make sure that you have everything. First, make sure that you have an Ethernet cable and WiFi adapter. Second, you will need a non-public IP address from your Internet service provider (ISP). Third, you will need the IP address of your router. It is recommended to connect your computer or server to the Internet using a wired connection because it is more secure than WiFi. Finally, you will need to ensure that your router is on and connected to the network.

If you are new to VPNs, make sure to read our helpful guide which provides useful information on how to set up a VPN.

Step 2: Install And Configure OpenVPN

OpenVPN is a piece of free and open-source software that provides secure and encrypted connections via VPN. It is available for Linux, macOS, and Windows. You can download the latest version of OpenVPN from the official website. This version of OpenVPN only has a server mode, but it is the best starting point for any router.

After you download OpenVPN, you will need to install it on your computer or server. The next step is to run the client, which will connect you to the VPN network.

The main difference between the server and client modes of OpenVPN is that the server mode provides a VPN server while the client mode provides a VPN client. A VPN server allows you to establish a secure connection to a protected network, like the Internet, and provides you with a dedicated IP address that is not tied to your physical network connection. A VPN client is used to connect to a VPN server, allowing you to securely access a private network or the Internet via a VPN.

To install and run OpenVPN on your computer or server, follow these steps:

  • Open the downloaded file that you just installed, and click on Run to launch the program.
  • Type in the IP address of your router (for example, 192.168.1.1) in the text box, and then click on OK.
  • You will now be prompted to enter a name for the VPN (for example, “IoT”). Choose a memorable and distinctive name for your VPN, and then click on OK.
  • To establish a secure connection with your VPN, you will need to enter a username and password. It is recommended to use a strong password containing a mixture of uppercase and lowercase letters, and numbers. The default password is “openvpn”. To prevent unauthorized access to your computer or server, you should change the password immediately after setting it.
  • To connect to your VPN, click on the Settings button, and then select Remote Authentication for both server and client modes.
  • Check the “Allow users to use their own VPN client” box, and then click on OK to save changes.
  • You can now close the OpenVPN client, which you will now use to connect to your VPN. To prevent unauthorized access to your computer or server, remove the USB cable that is currently connected to it, and plug it back in when you need to use it.

Once you have established a connection with your VPN, you can use the network resources, including the Internet, with complete security and confidence. To ensure that your computer or server is always protected, you should configure your VPN to automatically connect whenever you start or use it. This can be done by selecting the “Always” option under the Auto connect drop-down list for both server and client modes.

Step 3: Test Your Installation

Once you have installed and configured OpenVPN on your computer or server, you can test it by connecting to the VPN and browsing the Internet as usual. However, before you can use your VPN to connect to private networks or the Internet, you will need to configure your router to forward all network traffic via the VPN.

You will need to add a VPN server address to your router’s configuration page (usually accessed via a web browser). The default server address for OpenVPN is 1.2.3.4 (ipv4), where 1.2.3.4 is the IP address of the VPN server. You can use any IP address that you choose, as long as it is not on the same network segment as your physical network connection.

To add the VPN server address to the router’s configuration page, follow these steps:

  • Access the router’s configuration page via a web browser.
  • Click on the Network icon (looks like a WiFi connection with an upside-down U shape) to open up a list of available network connections.
  • Click on the WiFi connection to view the available network settings.
  • To add the 1.2.3.4 address to the list of available IP addresses, type in the address in the text field, click on the IPv4 Settings button to the right of the text field, and then click on the Save Settings button at the bottom of the page.
  • You can now close the web browser and ensure that your VPN is working by connecting to the 1.2.3.4 address in your router’s configuration page (usually accessed via a web browser).

To ensure that your VPN is always working and provide complete security, you should configure your router to perform VPN operations whenever you connect to it.

Step 4: Customize Your Router To Meet Your Needs

You can further protect your computer or server by turning on IPv6 forwarding. IPv6 forwarding provides better security and superior performance over IPv4 forwarding. To do this, follow these steps:

  • Access the router’s configuration page via a web browser.
  • Click on the Network icon to open up a list of available network connections.
  • Click on the WiFi connection to view the available network settings.
  • To enable IPv6 forwarding, make sure that the “[Title]: Use IPv6 addressing” box is checked, and then click on the Save Settings button at the bottom of the page.
  • You can now close the web browser and ensure that your router is working by connecting to the 1.2.3.4 address in your router’s configuration page (usually accessed via a web browser).

To make your router more secure, you can change its password and use a strong and complex password for both authentication and encryption. You can also use firewall rules to prevent unauthorized access to your computer or server. To do this, follow these steps:

Similar Posts