LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2018, 06:13 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
software-based wrapper for openvpn


Hi!

I'm working on a project that will require that I set up many nodes (raspberry pies, at the moment) to connect to a VPN (I'm thinking of using openvpn). In order to try to minimize my work while still keeping things to using a plain user and not a root account to set up each node, I ended up asking myself something like: Is there an openvpn wrapper available for a given language (say python) that could connect to the openvpn server and be available to create sockets (which would not be kernel-based sockets nor routing nor anything but completely process based).

Something like https://github.com/0xa/pyopenvpn, perhaps??? But it hasn't had any work in the last 2 years and it only supports UDP.

Thanks in advance.
 
Old 03-27-2018, 06:48 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
From my understanding network-manager will work. It has a command line interface and it runs as a service, allowing you to run openvpn as a service. I have no idea what the sockets thing is all about. Normally the client opens a socket to the server, which opens a socket in and a socket out for each client.

Openvpn normally uses udp only, but it can use tcp.
 
Old 03-27-2018, 10:57 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
What I'm talking about is, say, a process-based encapsulation layer for openvpn that could open up objects with a socket-like interface (that would use the openvpn encapsulation in order to send traffic to the other side of the openvpn connection) that therefore would not require to modify host's configuration files which would, normally, require root access because a plain user shouldn't be able to run openvpn under normal conditions (not considering the changes that are introduced at the networking layer on the host by the setup of an openvpn connection).

I think I could write wrapper scripts for openvpn that could then be configured with sudo so that plain users could call them and that could take care of the details.... then a python script could take care of controlling this openvpn processes. Perhaps I shouldn't try to go that "elegant" and stick with the simpler solution.
 
  


Reply

Tags
openvpn, python, wrapper



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
LXer: OpenELEC 7.0 Linux OS Out Now with OpenVPN and Bluetooth Audio, Based on Kodi 16.1 LXer Syndicated Linux News 0 12-29-2016 04:33 PM
OpenVPN - route traffic based on ports? Sorbitol Linux - Networking 2 05-07-2013 02:50 PM
Background http/ftp downloader software wtihout GUI (wget wrapper). ErV Linux - Software 3 09-01-2008 04:43 PM
anyone using OpenVPN or other linux software based one... sir-lancealot Linux - Security 2 03-28-2008 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 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