项目作者: 0mp

项目描述 :
OpenConnect VPN service daemon for FreeBSD rc(8)
高级语言: Shell
项目地址: git://github.com/0mp/openconnect-freebsd-daemon.git
创建时间: 2021-05-21T16:01:06Z
项目社区:https://github.com/0mp/openconnect-freebsd-daemon

开源协议:Other

下载


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

  1. % make
  2. % su
  3. # make install

Examples

Configure and connect to a VPN with OpenConnect:

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

Enable “myvpn” OpenConnect service to run on boot:

  1. # sysrc openconnect_services+="myvpn"

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

  1. # sysrc openconnect_myvpn_args+="--verbose"

Set the password manually:

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

License

The 2-Clause BSD license.