Skip to content
omarteloPublic

About

The lazier way to manage openvpn connections

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

lazyovpn

A terminal UI for managing OpenVPN connections, written in Go.

Release Go License

lazyovpn

Features

  • Lists OpenVPN configs from /etc/openvpn/client, /etc/openvpn, and ~/.config/lazyovpn/connections.
  • Connect / disconnect — openvpn runs as root via pkexec; the TUI itself stays unprivileged.
  • Live per-connection log streaming with a connection-state badge (connecting / connected / disconnected / error).
  • The connected entry is marked in the sidebar.
  • Prompts for credentials on auth-user-pass configs — the password is masked and never written to plaintext storage. Optionally save it to the OS keyring (Secret Service / libsecret) so later connects skip the prompt.
  • Import a config through the native file chooser (zenity / kdialog); it's copied into ~/.config/lazyovpn/connections.
  • Per-connection action menu (x) to rename, delete, or forget saved credentials.
  • Scrollable log pane: focus it with tab (or the mouse wheel) and page back through history.
  • Application log written per run under ~/.local/state/lazyovpn/logs; open the newest with lazyovpn log.

Quick Start

Requirements

  • Linux with openvpn and pkexec (polkit) on PATH.
  • zenity or kdialog — only needed to import a config from the file chooser.

Install

Script

Download the latest release binary, verify its checksum, and install it:

curl -fsSL https://raw.githubusercontent.com/omartelo/lazyovpn/main/install.sh | sh

Go

go install github.com/omartelo/lazyovpn@latest

Manual

Download a prebuilt binary from the releases page, extract it, and put lazyovpn on your PATH:

tar -xzf lazyovpn_*_linux_amd64.tar.gz
sudo install lazyovpn /usr/local/bin/

Usage

Call lazyovpn in your terminal to launch:

lazyovpn

It discovers your OpenVPN configs on startup and opens the connection list. Pick one and press enter to connect, or press a to import a new .ovpn/.conf. No configs yet? It still launches — just add one with a.

Keys

Key Action
↑/↓, j/k navigate (sidebar) / scroll (log pane)
enter connect
a add a connection
d disconnect
x open the action menu (rename, delete, forget saved credentials)
tab focus the log pane to scroll (tab/esc to go back)
pgup/pgdn page the log (while focused)
q quit

When prompted for credentials, ctrl+s toggles saving them to the OS keyring.

Commands

Command Description
lazyovpn launch the TUI
lazyovpn log open the newest application log in $EDITOR (falls back to vi)
lazyovpn doctor check that the external programs lazyovpn needs are installed

License

MIT

About

The lazier way to manage openvpn connections

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages