pfSense OpenVPN server setup
IMPORTANT Backup your current pfsense configuration first
- System - Certificate Manager CAs (Certificate Authority) / Create a new Certificate Authority.
System-Certificate Manger-CAs - Create new
descriptive name ( pfsense firewall) or smth that you want
method create an internal certificate authority
fill State province city country etc
- Create a SERVER certificate
- System\Certificate Manager\Certificates\ add
- Create an internal Certificate
- Name: company-vpn
- Common Name : "company"-cn
- Certificate type : Server Certificate
- Create users... Go to : System - User manager and create the Users that you want to connect to vpn. Click to create a user certificate (new certificate from the same screen , by choosing the CA you just created on step1)
- Create the OpenVPN server
- VPN\OpenVPN\Wizards
- Type of server : Local user access
- Cert authority : PfsenseFirewall
- Certificate: company-vpn
- Interface--- Chose what interface you want to connect from.
- Protocol UDP4 on IPV4 only
- Tunnel Network : Here you type the Internal network that your vpn's will connect through. (e.g. 10.20.30.0/24)
- check redirect gateway : ON/OFF choose
- Local network(s) : Type the LAN IP of the company. (e.g. 192.168.2.0/24)
- Concurrent connections : Number
- Interclient communication: ON
- DNS settings : the AD domain (e.g. mazars-gr.local)
- DNS Servers: the Domain Controller or the pfsense
- Click next
- Firewall Rule [x]
- OpenVPN rule [x]
- Go to Firewall - Rules - (Interface you choose on 4.5)
Find OpenVPN Remote-Access Wizard Rule and Edit.
Change Destination from : (Interface) Adress to ----> any
- VPN/ OpenVPN / Client Export
Host Name Resolution: "company".dyndns.org
Save as default.
- Reboot pfsense in case you have restored configuration from basic setup. (because of domain name change , and hostname change)
- IMPORTANT!! save pfsense configuration
This topic: KnowledgeBase
> KnowledgeBase > PfSenseOpenVPNInstallation
Topic revision:
13 Mar 2020, ChristosLivas