summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl
diff options
context:
space:
mode:
authorLandry Breuil <landry@cvs.openbsd.org>2019-11-10 20:51:54 +0000
committerLandry Breuil <landry@cvs.openbsd.org>2019-11-10 20:51:54 +0000
commitad5aa688cf240954f448366d01bc2159b2f02688 (patch)
tree43f8870f0f8ac9125a5e7f174da59c02f840dc14 /sbin/ipsecctl
parent0bdcc0485ff22df3717c9b06c2796e7ed9d7b1fb (diff)
Consistently use _rcctl enable foo_ in examples, it's simpler and less
error prone than manually editing rc.conf.local, and also works to enable ipsec and accounting. tweak from schwarze@ to use the \(dq\(dq syntax for quotes in '.Dl foo_flags="" lines' instead of \&"\&". while at it, fix a reference to a bogus /dev/dhclient.conf file that recently snuck in. ok jmc@ deraadt@ schwarze@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r--sbin/ipsecctl/ipsec.conf.535
1 files changed, 21 insertions, 14 deletions
diff --git a/sbin/ipsecctl/ipsec.conf.5 b/sbin/ipsecctl/ipsec.conf.5
index 77eecc19d00..a956a37835c 100644
--- a/sbin/ipsecctl/ipsec.conf.5
+++ b/sbin/ipsecctl/ipsec.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ipsec.conf.5,v 1.155 2018/04/17 12:13:29 stsp Exp $
+.\" $OpenBSD: ipsec.conf.5,v 1.156 2019/11/10 20:51:52 landry Exp $
.\"
.\" Copyright (c) 2004 Mathieu Sauve-Frankel All rights reserved.
.\"
@@ -22,7 +22,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 17 2018 $
+.Dd $Mdocdate: November 10 2019 $
.Dt IPSEC.CONF 5
.Os
.Sh NAME
@@ -71,22 +71,29 @@ and the procedures for setting them up.
.Pp
The keying daemon,
.Xr isakmpd 8 ,
-can be enabled to run at boot time via the
-.Va isakmpd_flags
-variable in
-.Xr rc.conf.local 8 .
-Note that it will probably need to be run with at least the
-.Fl K
-option, to avoid
+can be enabled to run at boot time via
+.Dq rcctl enable isakmpd .
+Note that to avoid
.Xr keynote 4
-policy checking.
+policy checking, it will probably need to be run with at least the
+.Fl K
+option via the
+.Dq rcctl set isakmpd flags -K
+command which sets
+.Pp
+.Dl isakmpd_flags=\(dq-K\(dq
+.Pp
+in
+.Xr rc.conf.local 8 .
The
.Nm
configuration itself is loaded at boot time
-if the variable
-.Va ipsec
-is set to
-.Dv YES
+if IPsec is enabled by using
+.Dq rcctl enable ipsec ,
+which sets
+.Pp
+.Dl ipsec=YES
+.Pp
in
.Xr rc.conf.local 8 .
A utility called