Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary cipher configuration on Fedora #762

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

randshell
Copy link
Contributor

Based on the fact that OpenVPN 2.5 removes the BF-CBC cipher from the default configuration, I expected Fedora to update its ciphers line in the RC3 of the package too which they didn't.

Upon investigation on why Fedora hard-codes the ciphers in the service file, I found out that

If an already configured OpenVPN v2.4 based server configuration deploys --cipher and/or --ncp-ciphers, the options in the configuration file will override command line options set before --config. This should not break any existing configuration.

This means that the values of cipher and ncp-ciphers we already specify in our server config will overwrite the command line options from the service file, making the sed command unnecessary.

Source: https://fedoraproject.org/wiki/Changes/New_default_cipher_in_OpenVPN

@TinCanTech
Copy link
Contributor

Using /etc/systemd/system is meant for customised unit files.
You can put what-ever you chose into these unit files.

@randshell
Copy link
Contributor Author

randshell commented Nov 17, 2020

I don't understand your context. We already customize the service file in that path but in particular using sed to change the ciphers in the service unit is unnecessary because they are overwritten by server.conf anyway.

@TinCanTech
Copy link
Contributor

After looking closer I see:

# Don't modify package-provided service

I had presumed you were writing your own unit file from scratch. My mistake.

@angristan angristan merged commit 3a5bcf5 into angristan:master Dec 13, 2021
timbo2k pushed a commit to timbo2k/openvpn-install that referenced this pull request Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants