> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onefirewall.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Virtual Private Server

> Technical Implementation

# pfSense OpenVPN Client setup

To configure OpenVPN, you need to:

* Get the file openvpn-clientX.vpn (request it from [support@onefirewall.com](mailto:support@onefirewall.com)).

* Open openvpn-clientX.ovpn in a text editor.

* Go to the pfSense Webconfigurator at System / Certificate / Authorities, and add a new authority CA as in figure 1.1 by importing it from the OpenVPN client.

* Get the CA certificate from `openvpn-clientX.ovpn` by copying all text between `<ca>` and `</ca>`, excluding the tags themselves.

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.1-1.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=d1c59c260b24b17b213a8a9eed0091f3" width="679" height="449" data-path="images/vps/Fig1.1-1.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.1-2.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=17bc0ebc733003b18e02fc307de88519" width="1191" height="1003" data-path="images/vps/Fig1.1-2.webp" />

Install the client's certificate and private key to connect to the OpenVPN server.
Get the certificate and private key values from the **openvpn-clientX** file, and import
the certificate under System / Certificate / Certificates as
YourOrgOpenVPN, following the steps in the figures above.

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.2-1.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=1c1a017bf6b1a404ec15f3842ae9806d" width="922" height="937" data-path="images/vps/Fig1.2-1.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.2-2.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=f4930e265d423c69af2f20c31dbdfe34" width="1277" height="812" data-path="images/vps/Fig1.2-2.webp" />

Go to VPN / OpenVPN / Client, configure it as shown above using the TLS cert from
openvpn-clientX.ovpn, and save the configuration.

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.3-1.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=8c561e4122829567b549dea6a517a979" width="292" height="405" data-path="images/vps/Fig1.3-1.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.3-2.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=e450784615cdfaa6d429476575893b8b" width="1216" height="1112" data-path="images/vps/Fig1.3-2.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.3-3.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=76a70103b05eaffe8bd3d5940d6f15da" width="1383" height="1211" data-path="images/vps/Fig1.3-3.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.3-4.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=dc89ffdf5680dfe87de2b55063ae6a84" width="1281" height="901" data-path="images/vps/Fig1.3-4.webp" />

In Status / OpenVPN, confirm the client VPN is active:

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig1.4.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=5db93b900e67209b8005c1819d1c2306" width="1307" height="132" data-path="images/vps/Fig1.4.webp" />

# PFBlockerNG - OneFirewall Blacklist setup

To set up pfBlockerNG, configure the IPv4 blacklist as shown below.

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig2.1.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=478aafa59bb9e6e664ab2f24bd0d0590" width="1183" height="1227" data-path="images/vps/Fig2.1.webp" />

# Setup System Logs (syslogs) - Settings

To set up system log mirroring, follow the configuration in Status / System Logs / Settings, shown in figure 3.1:

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig3.1-1.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=cbf5b8277531054708113624f540368e" width="1262" height="618" data-path="images/vps/Fig3.1-1.webp" />

<img src="https://mintcdn.com/onefirewall/WDi-dI7jVFz2iVVH/images/vps/Fig3.1-2.webp?fit=max&auto=format&n=WDi-dI7jVFz2iVVH&q=85&s=e022848b16477ab015325a8da5da817b" width="1619" height="830" data-path="images/vps/Fig3.1-2.webp" />
