Add an openvpn rc script
This script doesn't set any default flag, usage is documented in README as suggested by sthen@ and ajacoutot@. ok remi@ danj@ sthen@ ajacoutot@
This commit is contained in:
parent
ccef10da10
commit
d4cb88a62f
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.88 2018/03/06 12:44:29 jca Exp $
|
||||
# $OpenBSD: Makefile,v 1.89 2018/03/09 12:37:12 jca Exp $
|
||||
|
||||
COMMENT= easy-to-use, robust, and highly configurable VPN
|
||||
|
||||
DISTNAME= openvpn-2.4.5
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= net security
|
||||
|
||||
HOMEPAGE= https://openvpn.net/index.php/open-source/
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.22 2017/09/29 16:36:23 jca Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.23 2018/03/09 12:37:12 jca Exp $
|
||||
@newgroup _openvpn:577
|
||||
@newuser _openvpn:577:_openvpn:daemon:OpenVPN Daemon:/nonexistent:/sbin/nologin
|
||||
include/openvpn/
|
||||
@ -63,3 +63,4 @@ share/examples/openvpn/sample-scripts/bridge-start
|
||||
share/examples/openvpn/sample-scripts/bridge-stop
|
||||
share/examples/openvpn/sample-scripts/ucn.pl
|
||||
share/examples/openvpn/sample-scripts/verify-cn
|
||||
@rcscript ${RCDIR}/openvpn
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: README,v 1.4 2018/03/06 12:44:29 jca Exp $
|
||||
$OpenBSD: README,v 1.5 2018/03/09 12:37:12 jca Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
@ -13,6 +13,14 @@ layer-2 (bridged) connections should now use the tap(4) interface
|
||||
instead as on other OS. Consult the upgrade guide for 5.9 for more
|
||||
information.
|
||||
|
||||
Using the openvpn rc script
|
||||
---------------------------
|
||||
|
||||
# rcctl enable openvpn
|
||||
# rcctl set openvpn flags '--config /etc/openvpn/server.conf'
|
||||
|
||||
To handle multiple openvpn instances see EXAMPLES in rcctl(8).
|
||||
|
||||
Using an /etc/hostname.* file without persist-tun
|
||||
-------------------------------------------------
|
||||
OpenVPN normally re-creates the tun/tap interface at startup.
|
||||
|
9
net/openvpn/pkg/openvpn.rc
Normal file
9
net/openvpn/pkg/openvpn.rc
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/ksh
|
||||
#
|
||||
# $OpenBSD: openvpn.rc,v 1.1 2018/03/09 12:37:12 jca Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/openvpn --daemon"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user