LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 05-05-2020, 06:17 PM   #1
rcx11
Member
 
Registered: Oct 2006
Location: Louisana, USA
Distribution: Fedora 34 x86_64, new to Raspbian
Posts: 83

Rep: Reputation: 15
Fedora 32 and OpenVPN: What is the proper configuration?


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?
 
Old 05-05-2020, 06:35 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,793

Rep: Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952Reputation: 5952
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

https://www.linuxquestions.org/quest...on-4175674645/
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora 32 and OpenVPN: What is the proper configuration? rcx11 Linux - Networking 4 05-05-2020 09:58 PM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-24-2009 02:42 AM
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-06-2009 09:23 AM
OpenVPN Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration