r/OpenVPN

I made a simple OpenVPN Manager for Linux

I made a simple OpenVPN Manager for Linux

Hey everybody!

I wrote this OpenVPN Manager because I needed to maintain OpenVPN servers for work.

I wanted something simple that could handle the common tasks without having to remember a lot of commands or manually edit configuration files.

GitHub: https://github.com/cirtron/OpenVPN-Manager

It's a single Bash script with a menu-based interface. It currently supports:

  • Installing and configuring OpenVPN
  • Creating VPN users and .ovpn files
  • Revoking users properly with CRL
  • Listing and regenerating client configurations
  • Checking server and client status
  • Restarting or removing the OpenVPN server
  • NAT and firewall configuration
  • Multiple Linux distributions

The client configuration is generated as a single .ovpn file with the required certificates and keys included.

I originally built it just for my own work, mainly to make maintenance easier and reduce repetitive manual work. After making a few improvements, I decided to put it on GitHub in case it is useful to someone else.

It's a relatively small project, but I'd be happy to hear any feedback or suggestions.

u/wahwahwong — 4 days ago
▲ 10 r/OpenVPN+1 crossposts

Run shell script when OpenVPN connects (route-up) on Fedora 44

I'm on Fedora 44 and using an OpenVPN tunnel configured in NetworkManager. This tunnel is working fine in general. The connection is to a private server for a company portal.

When I'm using OpenVPN on Windows 🤮 the ovpn config file has the option --route-up in it that executes a script/batch file.

When configuring the connection in NetworkManager VPN dialog there isn't an option to configure the route-up option.

I'm aware that I also need to set the script-security option to allow scripts to execute, which also doesn't exist. I know that running scripts is classes as a security risk but in this case it just opens a web page to a status page hosted by the VPN Server.

Apart from running OpenVPN from the command line, is there a way the it can be configured through the NetworkManager config options.

I've tried adding the options directly to the NM config file but that doesn't work either. I think this is more of a Fedora/Gnome issue than an OpenVPN issue.

Any ideas to get a script to execute on VPN connect?

reddit.com
u/shoulditdothat — 9 days ago

TLS-Crypt vs TLS-Crypt-V2

Looking at tweaking the config on my OpenVPN server. It's currently configured to use tls-crypt but wondering if its worth changing to use tls-crypt-v2.

I've had a play and got both working, I'm just wondering what the benefits of changing to tls-crypt-v2 are over sticking with the older tls-crypt apart from the 'use v2 its newer and shiny'. Looking for technical reasons to change and justify the time spent reconfiguring things.

Currently using a bit of a mish-mash of versions the community versions from 2.5.x to the latest 2.7 on Windows, Linux and some GSM routers.

reddit.com
u/shoulditdothat — 7 days ago