LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2016, 11:23 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Starting openvpn client on CentOS7


My Usenet provider includes a VPN service along with Newsgroup access so I decided to play with it. Their instructions for using the vpn with Ubuntu involve the use of the network-manager-openvpn plugin. This is not in any of the repos I use for CentOS 7 so I decided to just run the openvpn client manually. If I run this command as root I can activate the vpn
Quote:
openvpn --config bud-b01.ovpn
after entering the credentials for my vpn account. The file bud-b01.ovpn is the configuration file supplied by the provider. I contains the parameters needed to connect to their server in Budapest. I have enhanced this to
Quote:
openvpn --config ams-a01.ovpn --auth-user-pass pw
where the credentials are stored in the file pw (which is accessible only to root).

The problem is... after starting the vpn, control never returns to the terminal. I have tried running openvpn in background with & but that does not seem to work either. For the moment I have taken to stashing the terminal out of sight with screen. Not the best option.

Can anyone suggest a better way to fire up openvpn without having a root shell active?

TIA,

Ken

Actually the plugins are named NetworkManager-openvpn and NetworkManager-openvpn-gnome. The first does not seem to work and the second one is colliding with SELinux - and not working. I would like to use the command line as it does work and I understand it.

Last edited by taylorkh; 02-18-2016 at 09:46 PM. Reason: Update
 
Old 02-19-2016, 08:34 AM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
The package Network-Manager-openvpn does not work. The package Network-Manager-openvpn-gnome does seem to work. I need to test to see if it is stable. I found the vpn to periodically drop when using the network manager approach in Ubuntu. CentOS was much more stable but I had only used it in the command line mode.

I would STILL like to know how to run the command line and get back control so I can close the root shell.

TIA,

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
securing CentOS7 Server ssh/vsftp w/key | multiple client pc's thealmightyos Linux - Security 3 10-13-2014 01:23 PM
Directing OpenVPN client's traffic through the OpenVPN server mohtasham1983 Linux - Networking 1 01-17-2012 07:44 PM
OpenVPN assigning public & static IPs to pcs/devices behind an OpenVPN client dgonzalezh Linux - Networking 6 07-18-2010 10:50 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:03 AM.

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