Skip to content

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

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

Activity

  1. Coffee-Processing-Unit commented on Dec 3, 2025

    @Coffee-Processing-Unit
    Author

    @jaredhendrickson13 can you please take a look at this one? It is urgent to me. Thank you!

  2. jaredhendrickson13 commented on Dec 3, 2025

    @jaredhendrickson13
    Member

    I'll look into this today. I have an idea as to where the issue might be.

  3. Coffee-Processing-Unit commented on Dec 3, 2025

    @Coffee-Processing-Unit
    Author

    Thank you very much

  4. jaredhendrickson13 commented on Dec 3, 2025

    @jaredhendrickson13
    Member

    v2.6.7-dev-6c4370c contains a fix for this if you want to verify it resolves your issue beforehand. Otherwise, I should have the full patch out later tonight or tomorrow.

  5. Coffee-Processing-Unit commented on Dec 4, 2025

    @Coffee-Processing-Unit
    Author

    The fix is working, thank you Jared, I highly appreciate it

  6. linked a pull request that will close this issuev2.6.7 Fixes #800on Dec 4, 2025
  7. added a commit that references this issue on Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions