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:
- Run an API POST reuqest to api/v2/vpn/openvpn/client_export, with the following body:
{
"id": 0,
"username": "username",
"type": "confzip",
"certref": "certref"
}
- 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