Featured Article

Setting Up WireGuard on Proxmox

William Aug 14, 2026

Streamlining your network infrastructure with a secure and high-performance VPN is a critical component of any modern IT setup. In this comprehensive guide, we'll explore how to set up WireGuard on a Proxmox host, creating a robust, user-friendly, and lightning-fast VPN solution.

Current image: Proxmox automation projects 2
Current image: Proxmox automation projects 2

WireGuard is a simple and fast VPN protocol that utilizes state-of-the-art cryptography. Proxmox, on the other hand, is a leading open-source virtualization platform. Combining these two powerhouses results in a VPN solution that's both easy to manage and highly effective. Let's dive into the details.

Simple steps to installing Proxmox VE
Simple steps to installing Proxmox VE

WireGuard Installation and Initial Configuration

Before we proceed, ensure your Proxmox host is up-to-date. You can update the system packages by running `apt update && apt upgrade` in the console.

WireGuard Installation on Raspberry Pi: Easy Setup Guide
WireGuard Installation on Raspberry Pi: Easy Setup Guide

Now, let's install WireGuard. Open a terminal and run:

apt install wireguard

My Proxmox Home Server Walk-Through: Part 1 (TrueNAS, Portainer, Wireguard)
My Proxmox Home Server Walk-Through: Part 1 (TrueNAS, Portainer, Wireguard)

Generating Key Pairs

WireGuard employs public key cryptography for authentication. Run the following commands to generate private and public keys for your Proxmox host:

wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey

Proxmox Install Beginners Guide
Proxmox Install Beginners Guide

Configuring the Proxmox Host

Create a new WireGuard interface configuration file with the following command:

nano /etc/wireguard/wg0.conf

First 10 Steps I do on Proxmox in 2024
First 10 Steps I do on Proxmox in 2024

Paste the following content into the file, replacing the keys with your own:

[Interface] PrivateKey = your-private-key-here Address = 10.0.0.1/24 ListenPort = 51820 [Peer] PublicKey = peer-public-key-here AllowedIPs = 10.0.0.0/24

Proxmox GPU PassThrough: Step-by-step Guide
Proxmox GPU PassThrough: Step-by-step Guide
Mullvad VPN's WireGuard Daemon Aces Cure53 Security Audit
Mullvad VPN's WireGuard Daemon Aces Cure53 Security Audit
Proxmox Homelab: First 5 Basic Configuration Steps
Proxmox Homelab: First 5 Basic Configuration Steps
How to Install Proxmox Virtual Environment on a Linux Server
How to Install Proxmox Virtual Environment on a Linux Server
screenshot of the web dashboard with data displayed on it and an arrow pointing up
screenshot of the web dashboard with data displayed on it and an arrow pointing up
Proxmox Import OVF: Easy VM Migration Guide
Proxmox Import OVF: Easy VM Migration Guide
Virtual Network in Proxmox for MPTCP Test lab
Virtual Network in Proxmox for MPTCP Test lab
Unleash Power with Proxmox Private Cloud Solutions
Unleash Power with Proxmox Private Cloud Solutions
Current image: Proxmox monitoring like a boss
Current image: Proxmox monitoring like a boss
The 7 Proxmox Commands I Use Constantly in My Home Lab
The 7 Proxmox Commands I Use Constantly in My Home Lab
Current image: Proxmox turnkey appliances 3
Current image: Proxmox turnkey appliances 3
Install Proxmox in VMware Workstation Pro
Install Proxmox in VMware Workstation Pro
Simplify Your Proxmox Backup Process – Insights from a Guest Post Expert
Simplify Your Proxmox Backup Process – Insights from a Guest Post Expert
Current image: 5 proxmox management tools
Current image: 5 proxmox management tools
I Set Up My Own Proxy Server—Here's Why, and How You Can Do It Yourself
I Set Up My Own Proxy Server—Here's Why, and How You Can Do It Yourself
Proxmox 7.1 Guide: From blank system to Hypervisor
Proxmox 7.1 Guide: From blank system to Hypervisor
Proxmox Datacenter Manager 1.1 Quietly Added Its Best Feature Yet
Proxmox Datacenter Manager 1.1 Quietly Added Its Best Feature Yet
7 hidden Proxmox features buried in the admin guide Your Home Lab Needs
7 hidden Proxmox features buried in the admin guide Your Home Lab Needs

Here, we've set up a single peer - a client that will connect to the Proxmox host. You can add more peers as needed.

Setting up the Firewall

To ensure your WireGuard interface is accessible, you need to configure the firewall. Assuming you're using the standard Proxmox firewall rules, run the following command:

iptables -A INPUT -p udp --dport 51820 -j ACCEPT

This command allows incoming UDP traffic on port 51820, which WireGuard uses.

Starting the WireGuard Service

Now, let's start the WireGuard service and enable it to start on boot. Run the following commands:

systemctl start wg-quick@wg0 systemctl enable wg-quick@wg0

Finally, verify that your WireGuard interface is up and running:

ip a

The output should display the WireGuard interface (wg0) with the IP address you configured earlier.

And there you have it! Your Proxmox host is now configured to act as a WireGuard VPN server. The next step is to configure clients with the public key of your Proxmox host and the appropriate peer configuration. For more information on this, refer to the official WireGuard documentation.

Now that you've streamlined your network infrastructure with a secure and high-performance VPN, consider exploring other Proxmox features to further enhance your IT setup. Happy networking!