<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=PI_VPN</id>
	<title>PI VPN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cramsession.net/index.php?action=history&amp;feed=atom&amp;title=PI_VPN"/>
	<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=PI_VPN&amp;action=history"/>
	<updated>2026-05-26T19:20:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://cramsession.net/index.php?title=PI_VPN&amp;diff=1459&amp;oldid=prev</id>
		<title>Mflavell: Created page with &quot;Computer Notes &gt; PI VPN  == PiVPN on Ubuntu (VMware Setup) ==  This guide covers the installation of PiVPN on an Ubuntu Server VM running within VMware. This setup uses WireGuard for high-performance, secure tunneling without the complexity of a full firewall appliance.  === 1. VM Prerequisites (VMware) === Before starting the installation, ensure the virtual machine is configured for network accessibility: * &#039;&#039;&#039;Network Adapter:&#039;&#039;&#039; Set to &#039;&#039;&#039;Bridged&#039;&#039;&#039; mode. This all...&quot;</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=PI_VPN&amp;diff=1459&amp;oldid=prev"/>
		<updated>2026-05-06T16:45:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Computer_Notes&quot; title=&quot;Computer Notes&quot;&gt;Computer Notes&lt;/a&gt; &amp;gt; PI VPN  == PiVPN on Ubuntu (VMware Setup) ==  This guide covers the installation of PiVPN on an Ubuntu Server VM running within VMware. This setup uses WireGuard for high-performance, secure tunneling without the complexity of a full firewall appliance.  === 1. VM Prerequisites (VMware) === Before starting the installation, ensure the virtual machine is configured for network accessibility: * &amp;#039;&amp;#039;&amp;#039;Network Adapter:&amp;#039;&amp;#039;&amp;#039; Set to &amp;#039;&amp;#039;&amp;#039;Bridged&amp;#039;&amp;#039;&amp;#039; mode. This all...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Computer Notes]] &amp;gt; PI VPN&lt;br /&gt;
&lt;br /&gt;
== PiVPN on Ubuntu (VMware Setup) ==&lt;br /&gt;
&lt;br /&gt;
This guide covers the installation of PiVPN on an Ubuntu Server VM running within VMware. This setup uses WireGuard for high-performance, secure tunneling without the complexity of a full firewall appliance.&lt;br /&gt;
&lt;br /&gt;
=== 1. VM Prerequisites (VMware) ===&lt;br /&gt;
Before starting the installation, ensure the virtual machine is configured for network accessibility:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Network Adapter:&amp;#039;&amp;#039;&amp;#039; Set to &amp;#039;&amp;#039;&amp;#039;Bridged&amp;#039;&amp;#039;&amp;#039; mode. This allows the VM to receive its own IP address on your local network.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Static IP:&amp;#039;&amp;#039;&amp;#039; Ensure the VM has a consistent internal IP. You can set this via {{ic|/etc/netplan/}} or a DHCP reservation on your router.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Resources:&amp;#039;&amp;#039;&amp;#039; 1 vCPU and 1GB RAM is more than sufficient for a dedicated VPN VM.&lt;br /&gt;
&lt;br /&gt;
=== 2. Installation Steps ===&lt;br /&gt;
Login to your VM via SSH or the VMware console and run the following commands:&lt;br /&gt;
&lt;br /&gt;
; Update the system:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Run the PiVPN automated installer:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
curl -L https://install.pivpn.io | bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3. Recommended Installer Settings ===&lt;br /&gt;
During the text-based wizard, use these recommended settings to avoid common pitfalls:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;User:&amp;#039;&amp;#039;&amp;#039; Select your local system user to hold the configuration files.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Protocol:&amp;#039;&amp;#039;&amp;#039; Choose &amp;#039;&amp;#039;&amp;#039;WireGuard&amp;#039;&amp;#039;&amp;#039; (highly recommended over OpenVPN for speed).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Port:&amp;#039;&amp;#039;&amp;#039; Default is &amp;#039;&amp;#039;&amp;#039;51820&amp;#039;&amp;#039;&amp;#039; (UDP).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DNS:&amp;#039;&amp;#039;&amp;#039; Select a provider (e.g., Google or Cloudflare) or point to a local Pi-hole if applicable.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Unattended Upgrades:&amp;#039;&amp;#039;&amp;#039; Enabled (highly recommended for security).&lt;br /&gt;
&lt;br /&gt;
=== 4. Client Management ===&lt;br /&gt;
PiVPN uses a simple command-line interface to manage connected devices.&lt;br /&gt;
&lt;br /&gt;
; To create a new client profile:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pivpn add&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; To generate a QR code for mobile devices:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pivpn -qr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; To list all active clients:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pivpn -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 5. Networking &amp;amp; Firewall ===&lt;br /&gt;
For the VPN to function, you must allow traffic through the Ubuntu firewall and your physical router.&lt;br /&gt;
&lt;br /&gt;
; Configure UFW (Uncomplicated Firewall):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ufw allow 51820/udp&lt;br /&gt;
sudo ufw allow OpenSSH&lt;br /&gt;
sudo ufw enable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Router Configuration:&lt;br /&gt;
Forward &amp;#039;&amp;#039;&amp;#039;UDP Port 51820&amp;#039;&amp;#039;&amp;#039; from your router&amp;#039;s WAN/Public IP to the &amp;#039;&amp;#039;&amp;#039;Internal IP&amp;#039;&amp;#039;&amp;#039; of your VMware VM.&lt;br /&gt;
&lt;br /&gt;
=== 6. Troubleshooting Commands ===&lt;br /&gt;
If you encounter issues, use the built-in self-check tool:&lt;br /&gt;
* {{ic|pivpn -d}} — Runs a full diagnostic of the network and service status.&lt;br /&gt;
* {{ic|pivpn -c}} — Shows currently connected clients and data transfer stats.&lt;br /&gt;
&lt;br /&gt;
[[Category:Networking]]&lt;br /&gt;
[[Category:Self-Hosted]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
</feed>