SoftEther VPN ("SoftEther" means "Software Ethernet") is a powerful, multi-OS and easy-to-use multi-protocol VPN software. It supports SSL-VPN (HTTPS), as well as OpenVPN, IPsec, L2TP, MS-SSTP, L2TPv3 and EtherIP tunneling protocols and has a clone function to support OpenVPN clients. WWW: http://www.softether.org PR: 188437 Submitted by: net@arrishq.net Reviewed by: marino
36 lines
705 B
Bash
36 lines
705 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: softether_client
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable softether_client:
|
|
# softether_client_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable
|
|
#
|
|
. /etc/rc.subr
|
|
|
|
name=softether_client
|
|
rcvar=softether_client_enable
|
|
load_rc_config ${name}
|
|
|
|
: ${softether_client_enable:=NO}
|
|
|
|
command="%%PREFIX%%/libexec/softether/vpnclient"
|
|
|
|
datadir="/var/db/softether"
|
|
|
|
start_precmd="${name}_precmd"
|
|
start_cmd="${command} start"
|
|
stop_cmd="${command} stop"
|
|
|
|
softether_client_precmd()
|
|
{
|
|
if [ ! -d "${datadir}" ]; then
|
|
mkdir -p ${datadir}
|
|
fi
|
|
}
|
|
|
|
run_rc_command "$1"
|