openbsd-ports/net/xl2tpd/pkg/xl2tpd.rc
sthen 48c88527b2 import ports/net/xl2tpd, ok pirofti@
xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661),
which works by opening a pseudo-tty for communicating with pppd.

L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
servers. Another important application is Virtual Private Networks where
the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec,
RFC 3193).
2013-01-15 23:02:19 +00:00

16 lines
272 B
Bash

#!/bin/sh
#
# $OpenBSD: xl2tpd.rc,v 1.1.1.1 2013/01/15 23:02:19 sthen Exp $
daemon="${TRUEPREFIX}/sbin/xl2tpd"
daemon_user="_xl2tpd"
. /etc/rc.d/rc.subr
rc_pre() {
/usr/bin/install -d -o ${daemon_user} /var/run/xl2tpd
mkfifo /var/run/xl2tpd/l2tp-control
}
rc_cmd $1