Bug #9748
closedopenvpn_wizard.xml: DH 15360 and 16384 fall back to 1024
100%
Description
If you select DH Parameters Length above 8192, i.e. 15360 or 16384, it creates server instance with DH length 1024
And you can't select DH length above 8192 in server configuration
Files
Updated by Viktor Gurov about 5 years ago
It shows correct number in config.xml:
<dh_length>16384</dh_length>
And on VPN / OpenVPN / Servers page
but it show 1024 on server edit page
and do not create server.conf and server.tls-auth files in /var/etc/openvpn/
only server.ca, server.cert, server.key
Updated by Jim Pingle about 5 years ago
- Assignee set to Jim Pingle
- Target version set to 2.5.0
Updated by Jim Pingle about 5 years ago
- Status changed from New to Confirmed
- Priority changed from Normal to Low
- Target version deleted (
2.5.0)
Looking deeper at the code, this is expected, but might be possible to improve.
The options are missing from the OpenVPN server because the files for those DH parameters do not exist on the filesystem, they must be created by the user since we don't ship stock DH parameters of that size, though the code supports using them.
The options are there in the wizard because they are hardcoded in the wizard XML file.
If the admin creates the files for those size DH parameters (e.g. /usr/bin/openssl dhparam -out /etc/dh-parameters.15360 15360
) then they will appear in the server and can be used.
I'll see if the wizard list can be populated dynamically instead of hardcoded.
Updated by Jim Pingle about 5 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset 52f686a97f77cfd00ddb69088bef7164676d4117.
Updated by Viktor Gurov about 5 years ago
Jim Pingle wrote:
Applied in changeset 52f686a97f77cfd00ddb69088bef7164676d4117.
checked, it's OK now
Resolved
Updated by Jim Pingle about 5 years ago
- Status changed from Feedback to Resolved
Updated by Jim Pingle about 5 years ago
- Target version changed from 2.5.0 to 2.4.5
Updated by Jim Pingle almost 5 years ago
- Status changed from Resolved to Feedback
Needs checked and/or tested again on 2.4.5 snapshots
Updated by Viktor Gurov almost 5 years ago
Jim Pingle wrote:
Needs checked and/or tested again on 2.4.5 snapshots
tested on 2.4.5.a.20191205.1442_3
ok, Resolved
Updated by Jim Pingle almost 5 years ago
- Status changed from Feedback to Resolved