pfsense:vpn:openvpn:configure_an_openvpn_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:vpn:openvpn:configure_an_openvpn_server [2021/01/06 18:09] – peter | pfsense:vpn:openvpn:configure_an_openvpn_server [2021/02/19 11:19] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PFSense - VPN - OpenVPN - Configure an OpenVPN Server ====== | ====== PFSense - VPN - OpenVPN - Configure an OpenVPN Server ====== | ||
+ | |||
+ | [[PFSense: | ||
[[PFSense: | [[PFSense: | ||
[[PFSense: | [[PFSense: | ||
- | |||
- | Navigate to **VPN -> OpenVPN -> Servers**. | ||
- | |||
- | Click on **Wizard**. | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | These components can also be created individually if required. | ||
- | </ | ||
- | |||
- | * Select **Local User Access**. | ||
- | |||
- | |||
- | Now create the CA, as a necessary parameter we must enter a **Descriptive name** that will allow us to identify it, while all the other parameters can be left by default. | ||
- | |||
- | * Key length: **2048 bit**. | ||
- | * Lifetime: | ||
- | |||
- | Create the Server Certificate to be associated with our VPN server, as per the CA will require a **Descriptive name** and leave the other default parameters. | ||
- | |||
- | * Key length: **2048 bit**. | ||
- | * Lifetime: | ||
- | |||
- | * Click **Next**. | ||
- | |||
- | |||
- | Now Create the actual VPN server configuration. | ||
- | |||
- | General OpenVPN Server Information: | ||
- | |||
- | * Interface: | ||
- | * Protocol: | ||
- | * Local Port: **1194**. | ||
- | * Description: | ||
- | |||
- | |||
- | |||
- | Cryptographic Settings: | ||
- | |||
- | * TLS Authentication: | ||
- | * Generate TLS Key: **Checked**, | ||
- | * DH Parameters Length: **2048**. | ||
- | * Encryption Algorithm: | ||
- | * Auth Digest Algorithm: | ||
- | * Hardware Crypto: | ||
- | |||
- | |||
- | Tunnel Settings: | ||
- | |||
- | * Tunnel Network: | ||
- | * Redirect Gateway: | ||
- | * Local Network: | ||
- | * Concurrent Connections: | ||
- | * Compression: | ||
- | * Type-of-Service: | ||
- | * Inter-Client-Communication: | ||
- | * Duplicate Connections: | ||
- | |||
- | |||
- | Client Settings: | ||
- | |||
- | * Dynamic IP: **Checked**. | ||
- | * Topology: | ||
- | * Netbios Node Type: **None**. | ||
- | * Click **Next**. | ||
- | |||
- | |||
- | Wizard Firewall Rule Setup | ||
- | |||
- | * Firewall Rule: **Checked**. | ||
- | * OpenVPN Rule: **Checked**. | ||
- | * Click **Next**. | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Create the OpenVPN Users ===== | ||
- | |||
- | Create the users we want to connect to in VPN. | ||
- | |||
- | Navigate to **System -> User Manager -> Users**. | ||
- | |||
- | * Username: | ||
- | * Password: | ||
- | * Certificate: | ||
- | * Descriptive name: **Peter-cert**. | ||
- | * Certificate authority: | ||
- | * Key length: | ||
- | * Lifetime: | ||
- | |||
- | In this way we will have created both the user and the associated certificate in a single operation | ||
- | |||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | In the **System -> Certificate Manager** section we will see the certificate associated with the VPN server and all those associated with the users created. | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Install the package openvpn-client-export ===== | ||
- | |||
- | Navigate to **System -> Package Manager -> Available Packages**. | ||
- | |||
- | Search for **openvpn-client-export**. | ||
- | |||
- | Install the Package. | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | |||
- | Under **Remote Access Server** we select our created VPN server. | ||
- | |||
- | In the **Client Connection Behavior** section we will enter the parameters with which the .ovpn configuration file will be generated for the user, in particular we recommend configuring as follows: | ||
- | |||
- | * Host Name Resolution: | ||
- | * Host Name: **Enter the Public IP address of the network**. | ||
- | * Verify Server CN: **Automatic - Use verify-x509-name (OpenVPN 2.3+) where possible**. | ||
- | |||
- | |||
- | |||
- | Once the parameters are configured, we can export our users configuration file to be installed on the clients. | ||
- | |||
- | To do this we have various choices, the most recommended below: | ||
- | |||
- | * **Most Clients**: Generates an .ovpn file containing both the configuration and the certificates and the easily imported keys, compatible with clients: OpenVPN for Windows, Tunnelblick for OS X. | ||
- | * **OpenVPN Connect**: | ||
- | * **Archive**: | ||
- | * Under the **Current Windows Installer** section we can generate self-installing and pre-configured files for Windows clients. | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== References ===== | ||
- | |||
- | https:// | ||
pfsense/vpn/openvpn/configure_an_openvpn_server.1609956572.txt.gz · Last modified: 2021/01/06 18:09 by peter