Skip to main content

OpenVPN - Create a new OpenVPN user

To follow this procedure you need administrative access to the OPNSense firewall.

Create user
  •  Navigate to:
    • System -> Access -> User
  • Click on the + (Add) button

image.png

This will open a form where you can configure the new user.

Configure User Details

Fill in the required fields:

  • Username
  • Password
  • (Optional) Description or additional details

These credentials will be used by the user to connect to the VPN.

image.png

It's fundamental to add the user to the vpn_users group under Group membership.
Without this step, the user will not be able to access the VPN.

Create / Assign User Certificate

To allow OpenVPN authentication, a certificate must be associated with the user.

    Navigate to:
      Trust -> Certificates section Click “+ Add”

      image.png

      Fill in the fields:

        Description: name.surname Issuer: select your CA (e.g. OpenVPN-auth) Lifetime: 18262 Common name: name.surname

        Save the certificate.

        image.png