OpenVPN server tries to push compress parameter when it's empty
Define a Server with Compression option set to Disabled and click option "Push the selected compression setting to connecting clients" and clients won't be able to connect seeing following error:
Client exception in transport_recv: process_server_push_error: Problem accepting server-pushed compressor: option_error: option 'compress' must have at least 2 arguments. Client terminated, restarting in 2000 ms...
Add a missing break to case statement. Without it, $compression was
being filled with a bad value and also if push compress was being used,
it added the option breaking connection.
Reported by: Vinicius Dell'Aglio on Telegram pfSense group
#4 Updated by Manuel Piovan about 2 months ago
2 openvpn, server is 2.5.0 client is 2.4.5-rc
both had -> Compression = "Disable compression, retain compression packet framing"
message on the log Bad compression stub (swap) decompression header
#5 Updated by Jim Pingle about 2 months ago
- Status changed from Resolved to In Progress
I think the change didn't do what was intended here. The 'none' setting should end up with
compress only in the config which isn't happening now.
It needs to go back the way it was, I don't see a bug with the old behavior. Maybe the user didn't understand what this option is supposed to do.
Most likely they wanted "Omit Preference" -- which is not the same as this option.