Guide: Enabling UDP (WireGuard / Pangolin) on Oracle Cloud Free Tier VPS
This walkthrough is based on Ubuntu running on Oracle Cloud Free Tier. The key issue many hit is that UDP port 51820 is blocked by default — so even if WireGuard or Pangolin is installed correctly, nothing works until you fix the networking rules.
Enable IP Forwarding
Edit the sysctl config:
sudo nano /etc/sysctl.conf
Uncomment (remove #) or add these lines:
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
Save (CTRL+X, then Y, then Enter) and apply:
sudo sysctl -p
Open UDP Port 51820 in Oracle Cloud Console
Oracle uses VCN Security Lists instead of a traditional firewall. You must allow UDP traffic explicitly:
-
Log in to Oracle Cloud Console.
-
Go to Networking → Virtual Cloud Networks (VCN).
-
Select your VCN (usually only one if you’re on Free Tier).
-
Open the Default Security List.
-
Add an Ingress Rule:
- Stateless: Yes
- Source CIDR:
0.0.0.0/0 - IP Protocol: UDP
- Destination Port Range:
51820
For Pangolin’s web UI, ensure TCP ports 80 and 443 are also open (these are often allowed by default).
Install Pangolin + Docker
Use the official quick‑install script from Pangolin Docs:
curl -fsSL https://get.pangolin.run | sudo bash
The installer will:
- Install Docker if missing
- Set up Pangolin containers
- Optionally ask about CrowdSec (skip for now unless you want to manage it manually)
Configure Pangolin + Newt
- Access the Pangolin dashboard at your domain (with Let’s Encrypt SSL auto‑configured).
- Create your admin account and organization.
- Add applications and configure Newt clients as needed.
Important Notes
-
Do not enable UFW on Oracle Cloud Ubuntu images. It conflicts with Oracle’s iptables rules and can lock you out of SSH.
-
If UDP still seems blocked, test with netcat:
On VPS:
sudo nc -u -l -p 51820From another machine:
echo "test" | nc -u yourdomain.com 51820If you see
teston the VPS, UDP is flowing. If not, recheck Oracle’s security rules. -
Remember: sometimes it’s not the water’s fault if you can’t swim
— the port really has to be open.
With these steps, UDP on port 51820 should be working, and Pangolin + Newt should connect without issues.
