Greetings!
I'm trying to setup OpenVPN on a freshly built Fedora 32 server. I'm using the installation tutorial located
here as a guide. Most of it seems to work until I get to the server startup. Instead of disabling the firewall, I've configured it to accept the OpenVPN port. I'd also prefer not to completely disable SELinux, but I'm willing to do that for temporary testing. (Question #1 is how to configure SELinux for OpenVPN.) I've also adjusted the mask of the virtual subnet to 255.255.0.0 and changed the DNS servers to my local ISP servers. Cert and key directives are named for the local machine on which they reside.
The second portion is starting the service. The tutorial directs use of the command
Code:
systemctl -f enable openvpn@server.service
followed by
Code:
systemctl start openvpn@server.service
Fedora appears to name the service openvpn-server@.service. I've attempted to start using that in place in the commands with no significant success. Running the first command:
Code:
[user@server1 ~]$ systemctl -f enable openvpn-server@.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====
Authentication is required to manage system service or unit files.
Authenticating as: user
Password:
==== AUTHENTICATION COMPLETE ====
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ====
Authentication is required to reload the systemd state.
Authenticating as: user
Password:
==== AUTHENTICATION COMPLETE ====
Following it:
Code:
[user@server1 ~]$ systemctl start openvpn-server@.service
Failed to start openvpn-server@.service: Unit name openvpn-server@.service is missing the instance name.
See system logs and 'systemctl status openvpn-server@.service' for details.
Code:
[user@server1 ~]$ systemctl status openvpn-server@.service
Failed to get properties: Unit name openvpn-server@.service is neither a valid invocation ID nor unit name.
What does that mean? Additionally, is the configuration file for OpenVPN required to be named 'server.conf', or can it be something else? Is the 'server' in openvpn-server@.service required to be server, or is it supposed to match some other particular piece of information in the configuration?