Skip to content

Redundant "{username}-proxy" line in ovpn file of openvpn client zip export causes openvpn client to fail #798

@Coffee-Processing-Unit

Description

@Coffee-Processing-Unit

Describe the bug
When using the openvpn client export function, the exported openvpn contains the line "{username}-proxy" ({username} is the value of the user whose configuration was exposed), which causes the openvpn client the fail.

To Reproduce
Steps to reproduce the behavior:

  1. Run an API POST reuqest to api/v2/vpn/openvpn/client_export, with the following body:
    {
    "id": 0,
    "username": "username",
    "type": "confzip",
    "certref": "certref"
    }
  2. Try to connect with the resulting ovpn file and openvpn client version 2.5.11 resulting in:
    Options error: Unrecognized option or missing or extra parameter(s) in .ovpn: {username}-proxy (2.5.11)

pfSense Version & Package Version:

  • pfSense Version: pfSense 2.8.1
  • Package Version: v2.6.5

Affected Endpoints:

  • api/v2/vpn/openvpn/client_export

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions