summaryrefslogtreecommitdiff
path: root/security/spiped/MESSAGE.smf
blob: 1d93b6c718774c0c5d846757faf54aa5527ef4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
===========================================================================
$NetBSD: MESSAGE.smf,v 1.2 2014/05/14 14:00:42 jperkin Exp $

 This package supports multiple SMF instances.

 Configure using the SMF properties: mode, source, target and key.
 Mode can have the value "encrypt" or "decrypt". Source and target are
 formatted as described in spiped(1). The key is a path to the keyfile.

 To generate a new keyfile:

  dd if=/dev/urandom bs=32 count=1 > ${PKG_SYSCONFDIR}/spiped_example.key

 Add a example service instance:

  svccfg -s spiped add example
  svccfg -s spiped:example addpg spiped application
  svccfg -s spiped:example setprop spiped/mode = astring: decrypt
  svccfg -s spiped:example setprop spiped/source = astring: [0.0.0.0]:2323
  svccfg -s spiped:example setprop spiped/target = astring: [127.0.0.1]:23
  svccfg -s spiped:example setprop \
        spiped/key = astring: "${PKG_SYSCONFDIR}/spiped_example.key"

===========================================================================