A pfSense OpenVPN setup comes down to three things: run the OpenVPN wizard to build the server and its firewall rules, add a user with a certificate and install the client export package, then export that user’s file and import it into OpenVPN Connect. The wizard does most of the work, and it’s still the most straightforward way to set up OpenVPN on pfSense.
The steps below are for pfSense CE 2.9.0, the current Community Edition release as of November 2026. It’s the same wizard I used when I set up OpenVPN on pfSense in January 2022, and the change that can break your VPN later is the server certificate’s lifetime. pfSense Plus (26.07) isn’t covered, so some screens may differ there.
OpenVPN or WireGuard on pfSense?
I ran pfSense for a few years, with WireGuard as my primary VPN and OpenVPN as the backup, before switching to a UniFi Cloud Gateway in late 2024. In a pfSense VPN setup, that backup is optional, but OpenVPN gives you a second way in if WireGuard stops working. If you’d rather start with WireGuard, here’s how to set up WireGuard on pfSense.
The firewall already handles every connection into your network, so it’s a good place for OpenVPN. It doesn’t have to run there, and I’ve also written up OpenVPN on a Raspberry Pi and OpenVPN on a Synology NAS.
Step 1: Configure the OpenVPN Server With the Wizard
The wizard creates the certificate authority, the server certificate, the server and both firewall rules in one pass.
1. Select VPN, then OpenVPN, and finally, Wizards.

2. Leave Type of Server as Local User Access and select Next. This uses pfSense’s own user accounts, so everyone who connects needs a certificate and a username and password.

3. On Add Certificate Authority, give the CA a descriptive name (something like OpenVPN_CA), leave Key length at 2048 bit, Lifetime at 3650 days (about 10 years) and select Add new CA.

4. On Server Certificate Selection, select Add new Certificate (Next would reuse the web GUI’s certificate, which the new CA didn’t sign). On Add a Server Certificate, give it its own name, leave Lifetime at its default of 200 and select Create new Certificate.


When I set this up in January 2022, the wizard defaulted the server certificate to 398 days. CE 2.9.0 lowered it to 200, and the help text warns that some platforms may consider a server certificate over 200 days invalid, so one made at the default expires in a little over six months. When the server certificate expires, the VPN stops working. My own OpenVPN server on pfSense had stopped working by late 2024, and I think the certificate expired because I hadn’t used it in so long. 2.9.0 added auto-renew, which Netgate says is safe for OpenVPN server certificates. The wizard leaves it off, so item 9 below turns it on.
5. Give the server a Description (something like Remote access VPN) and leave the Protocol, Interface and Local Port at their defaults: UDP on IPv4 only, WAN and 1194.


The Cryptographic Settings can stay at their defaults: AES-256-GCM, AES-128-GCM and CHACHA20-POLY1305 as the Data Encryption Algorithms, AES-256-CBC as the fallback for clients that can’t negotiate a cipher, and SHA256 as the Auth Digest Algorithm.
6. In Tunnel Settings, set the IPv4 Tunnel Network to a subnet that isn’t used anywhere on your network (in my 2022 test the LAN was 192.168.100.0/24, so I used 192.168.200.0/24), then set the IPv4 Local Network to your LAN subnet so clients can reach it.
7. Leave Redirect IPv4 Gateway unticked, its default (that’s the full tunnel switch, covered in step 3). Set Concurrent Connections if you want a cap, fill in the DNS Server fields only if clients should use a specific DNS server, and select Next.
8. On Firewall Rule Configuration, both boxes are unticked when the step loads, so tick Firewall Rule and OpenVPN rule, then select Next and Finish.

The first adds a WAN rule that lets clients reach the server’s port from anywhere (you don’t know where you’ll connect from), and the second passes all traffic from connected clients on the OpenVPN tab.
9. Select System, then Certificates, edit the wizard’s server certificate (the pencil icon), tick Auto Renew under Automatic Renewal and select Save. It then renews itself around 67 days before a 200-day certificate runs out.

Step 2: Add a User and Install the Client Export Package
pfSense needs the OpenVPN Client Export package before it can build a client file, and each person who connects needs a user with a certificate from the CA the wizard just made.
1. Select System, then Package Manager, and finally, Available Packages. Search for openvpn, select Install beside openvpn-client-export and then Confirm.

2. Select System, then User Manager, and select Add.
3. Enter a Username and Password, then tick Create a user certificate.
4. Give the certificate a name (in 2022 I used the username plus “OpenVPN certificate”), set the Certificate authority to the CA from step 1, leave the rest at defaults and select Save.

Create one user and one certificate per person, so everyone has their own file. User certificates default to 3650 days, so it’s the server certificate that runs out first. A forgotten password is changed in User Manager, and since it isn’t in the exported file, nobody needs a new one.
Step 3: Export the Client Config and Connect
The pfSense OpenVPN client export page builds a ready-to-import file for each user, and it’s where you set the address clients connect back to. If you don’t have a static external IP address (most people don’t), set up DDNS first. If you own a domain, you can set up DDNS on pfSense with Cloudflare, and if you don’t, DuckDNS on pfSense is free. It’s what I pointed to for this setup in 2022.
1. Select VPN, then OpenVPN, and finally, Client Export, which opens the Client Export Utility.
2. Set Host Name Resolution: Interface IP Address (the default) if pfSense’s WAN has your static public IP, your DDNS hostname from the list if DDNS runs on pfSense, or Other with the hostname typed into Host Name if it runs on another device. Select Save as default so every export uses them. If a client is still on OpenVPN 2.4, tick Legacy Client as well.

3. Scroll down to the user and download the OpenVPN Connect (iOS/Android) file, an .ovpn file that imports into OpenVPN Connect on a phone, Windows or macOS. Most Clients is the other common pick.

The page can also export a Windows installer, but in 2022 I preferred this file, since it let me use the newer OpenVPN Connect app and edit the file myself. It’s your pfSense OpenVPN configuration, and by default it’s a split tunnel.
Split Tunnel or Full Tunnel
A split tunnel only sends traffic for your home network through the VPN, so your public IP stays the local one. A full tunnel sends everything through home, which is what you want on open Wi-Fi, and there’s more on the difference in my guide to split-tunnel and full-tunnel VPNs.

What I did in 2022 was create two files, one split and one full, and for the full tunnel file I added this line near the top, above the certificates:
redirect-gateway def1

If you’d rather every file be full tunnel, put that line in Additional configuration options in the page’s advanced settings and select Save as default. Ticking Redirect IPv4 Gateway on the server (VPN > OpenVPN > Servers, edit it and select Save) does the same for every client.

Connect From Outside Your Network
Install the OpenVPN Connect application, import the file, and connect from outside your home network, which is easiest on a phone using mobile data. Because the server uses Local User Access, it asks for the username and password from step 2 as well. To check the tunnel, search “what is my IP” while connected: the split tunnel file shows your mobile network’s address and the full tunnel file shows your home network’s.
If It Won’t Connect, Check the Firewall Rules
When a client can’t connect, the two rules from step 1 are the first and easiest things to check, and they’re where I finished when I set this up in 2022.
- Firewall > Rules > WAN should have a pass rule for UDP to the WAN address on port 1194, with the source set to any and the description “OpenVPN Remote access VPN wizard” (the middle is your server’s Description).

- Firewall > Rules > OpenVPN should have a rule with the same description that passes all traffic from connected clients.

If both rules are there, check that the username and password match, that the device uses that user’s own file and that you’re testing from outside your network. If pfSense sits behind your ISP’s router, that router has to forward UDP 1194 to pfSense too.
Check the Server Certificate
If the VPN worked for months and then stopped, go to System > Certificates and check the Valid Until date on the wizard’s server certificate. If it has expired, select the circular-arrow icon on its row, then Renew/Reissue on the page it opens, and turn on Auto Renew as in item 9 of step 1.

Security changes over time and nothing here is guaranteed, so keep pfSense updated and only give VPN accounts to the people who actually need one.
