Set Up Your Own VPN Server on Linux with Webmin

 (Video Training)

Setting up a VPN can give you more control over your network’s security, whether for personal use or remote access to private networks. This guide will walk you through configuring a PPTP (Point-to-Point Tunneling Protocol) VPN server on Linux using Webmin. PPTP is a widely supported VPN protocol, and Webmin provides an intuitive interface for managing it.

Why Use Webmin for PPTP VPN Setup?

Webmin simplifies the process of setting up a VPN server, even for users unfamiliar with the Linux command line. With Webmin, you can install, configure, and manage your PPTP VPN with ease—all from a web-based interface.

Prerequisites

Before starting, make sure you have:

  • A Linux server (e.g., Ubuntu, Debian, or CentOS).
  • Root or sudo access to the server.
  • Webmin installed. (If you haven’t installed Webmin yet, follow the steps in How to Install Webmin on Linux.

Install and Configure PPTP in Webmin

  1. Login to Webmin:
    Open a browser and go to https://your-server-ip:10000. Log in with your server credentials.

  2. Install OpenVPN:

    • In Webmin, go to Tools > Terminal in the menu.
    • Enter below commands
      • sudo apt update && sudo apt upgrade -y
      • sudo apt install pptpd
      • systemctl enable pptpd
      • systemctl start pptpd
    • Click Refresh Modules  in the menu.
  3. Set Up the PPTP Configuration:

    • Go to Networking > PPTP VPN Server.
    • Specify configuration details, such as:
      • IP Range: The IP address range assigned to PPTP clients.
      • DNS Servers: Specify DNS servers for the VPN.
      • Encryption: Set encryption preferences if desired.
  4. Save and Apply Configuration:

    • Once settings are configured, click Save.
    • Click Start Server to activate the PPTP VPN server.

Configure PPTP User Accounts

  1. Create VPN User Accounts:

    • Go to System > Users and Groups in Webmin.
    • Add a new user or select an existing user account.
    • Assign PPTP access permissions to this user.
  2. Set Passwords for Each User:

    • Ensure each PPTP user has a secure password.
    • Use System > Change Passwords if you need to modify user passwords.
  3. Save and Confirm Changes:

    • Double-check each user’s permissions to confirm they have VPN access.

Enable Firewall Rules for PPTP VPN

To allow PPTP traffic through your server’s firewall:

  1. Open the Webmin Firewall Module:

    • Go to Networking > Linux Firewall.
  2. Allow PPTP Ports:

    • Add rules to enable traffic on ports 1723 (PPTP) and 47 (GRE protocol).
    • Save and apply your firewall rules.

Connect to Your PPTP VPN Server

To connect to your PPTP VPN server, configure a VPN client on your device:

  1. Set Up the VPN Client:

    • PPTP clients are built into many operating systems, including Windows, macOS, and Linux.
    • Add a new VPN connection, select PPTP as the protocol, and enter the server’s IP address and your login credentials.
  2. Test the Connection:

    • Verify that the client connects successfully to the server.
    • Check your IP address to confirm traffic is routed through the VPN.

Additional Tips

  • Monitor Connections: Use Webmin to monitor active PPTP VPN connections.
  • Regular Updates: Keep Webmin and PPTP packages up to date for security and stability.
  • Back Up Configurations: Make backups of your Webmin and PPTP VPN settings for easy restoration if needed.

Conclusion

Using Webmin to configure a PPTP VPN server on Linux offers a straightforward and flexible solution for managing secure connections. With Webmin’s easy-to-use interface, even novice users can set up, configure, and manage a PPTP VPN server.

Leave a Reply

Your email address will not be published. Required fields are marked *