> ## 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 (Please, ask to [support@onefirewall.com](mailto:support@onefirewall.com) for that).

* Open the openvpn-clientX.ovpn with an editor text.

* Go to the pfSense Webconfigurator at System / Certificate / Authorities and

* add a new authority CA as in figure 1.1 by importing that from the openvpn client

* Get the CA certificate from `openvpn-clientX.ovpn`, copy all text content between `<ca>` and `</ca> without `<ca />\`

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

<img src="https://mintcdn.com/onefirewall/GBluirlWMPo2oQeM/images/vps/Fig1.1-2.png?fit=max&auto=format&n=GBluirlWMPo2oQeM&q=85&s=9ec245f4d1151961b8d5aba2c5ae5ed7" width="1191" height="1003" data-path="images/vps/Fig1.1-2.png" />

Install the certificate and private key of the client to connect with the openvpn server.
Get the value from **openvpn-clientX** file, for the certificate and private key, and import
the certificate in the certificates section of System / Certificate / Certificates section as
YourOrgOpenVPN. Do steps like in fig. above.

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

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

Go to VPN / OpenVPN / Client and setup as in the Fig above by getting the tls cert from
openvpn-clientX.ovpn and save the configuration.

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

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

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

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

At the end, in Status / OpenVPN you should find the client vpn active:

<img src="https://mintcdn.com/onefirewall/GBluirlWMPo2oQeM/images/vps/Fig1.4.png?fit=max&auto=format&n=GBluirlWMPo2oQeM&q=85&s=6221f62ce0acb3c238c31aee659795c7" width="1307" height="132" data-path="images/vps/Fig1.4.png" />

# PFBlockerNG - OneFirewall Blacklist setup

To setup the pfBlockerNG, you can setup ipv4 blacklist like in figure below

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

# Setup System Logs (syslogs) - Settings

To setup the mirroring of the system logs, you can follow the guidelines like in figure 3.1
from the Status / System Logs / Settings:

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

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