Skip to content

OpenConnect VPN service daemon for FreeBSD rc(8)

License

Notifications You must be signed in to change notification settings

0mp/openconnect-freebsd-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenConnect FreeBSD Daemon

A service daemon for the FreeBSD rc(8) framework. It lets the user configure OpenConnect VPN in rc.conf(5) and use the standard FreeBSD tools to control the daemon.

Features:

  • Support for starting multiple OpenConnect services.
  • Support for running arbitrary commands for OTP-based authentication.

See the service files for usage details.

Installation

% make
% su
# make install

Examples

Configure and connect to a VPN with OpenConnect:

# sysrc openconnect_myvpn_enable="YES"
# sysrc openconnect_myvpn_username="charlie.root"
# sysrc openconnect_myvpn_server="vpn.example.org"
# service openconnect setpassword myvpn
Password (openconnect_myvpn):
# service openconnect start myvpn

Enable "myvpn" OpenConnect service to run on boot:

# sysrc openconnect_services+="myvpn"

Enable verbose output (e.g., for debugging):

# sysrc openconnect_myvpn_args+="--verbose"

Set the password manually:

# mkdir -p /usr/local/etc/openconnect/passwords
# (umask 077 && echo "password" > /usr/local/etc/openconnect/passwords/myvpn)

License

The 2-Clause BSD license.