diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-03-22 16:01:24 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-03-22 16:01:24 +0000 |
commit | 27fe918e79e8da2aff5f74045dbcb948c989641d (patch) | |
tree | 14a46b20cf4b61283d1f240fbf79ea7ae27bff72 /sbin/ipsecctl/ipsec.conf.5 | |
parent | 71946a94a0ee5c0ea815edab4f318e757ae2c26b (diff) |
add support for macros in ipsec.conf(5). some bits have already been
there.
requested by david@
ok hshoexer@, msf@
Diffstat (limited to 'sbin/ipsecctl/ipsec.conf.5')
-rw-r--r-- | sbin/ipsecctl/ipsec.conf.5 | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ipsec.conf.5 b/sbin/ipsecctl/ipsec.conf.5 index 1fa68432dc4..90d1517964b 100644 --- a/sbin/ipsecctl/ipsec.conf.5 +++ b/sbin/ipsecctl/ipsec.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ipsec.conf.5,v 1.32 2006/03/07 00:30:28 reyk Exp $ +.\" $OpenBSD: ipsec.conf.5,v 1.33 2006/03/22 16:01:23 reyk Exp $ .\" .\" Copyright (c) 2004 Mathieu Sauve-Frankel All rights reserved. .\" @@ -37,6 +37,25 @@ IP security services. The rulesets themselves can be loaded, viewed, and modified via the .Xr ipsecctl 8 userland utility. +.Sh MACROS +Much like +.Xr cpp 1 +or +.Xr m4 1 , +macros can be defined that will later be expanded in context. +Macro names must start with a letter, and may contain letters, digits +and underscores. +Macro names may not be reserved words (for example +.Ar flow , +.Ar from , +.Ar esp ) . +Macros are not expanded inside quotes. +.Pp +For example, +.Bd -literal -offset indent +remote_gw = \&"192.168.3.12\&" +flow esp from 192.168.7.0/24 to 192.168.8.0/24 peer $remote_gw +.Ed .Sh FLOWS IPsec uses .Em flows |