diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-11-24 13:52:15 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-11-24 13:52:15 +0000 |
commit | 7fbffbaf7e3799b9cd7a8945cea919cc091ca8d1 (patch) | |
tree | 0cef703fab0b082809c2f9483714feb180bfe502 /sbin/isakmpd/isakmpd.conf.5 | |
parent | 2e37005e33b1ab74053f390d46313cbefe2212ad (diff) |
add support to tag ipsec traffic belonging to specific IKE-initiated
phase 2 traffic. this allows policy-based filtering of encrypted and
unencrypted ipsec traffic with pf(4). see ipsec.conf(5) and
isakmpd.conf(5) for details and examples.
this is work in progress and still needs some testing and feedback,
but it is safe to put it in now.
ok hshoexer@
Diffstat (limited to 'sbin/isakmpd/isakmpd.conf.5')
-rw-r--r-- | sbin/isakmpd/isakmpd.conf.5 | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/sbin/isakmpd/isakmpd.conf.5 b/sbin/isakmpd/isakmpd.conf.5 index 657aa776f56..06c71c7fdf9 100644 --- a/sbin/isakmpd/isakmpd.conf.5 +++ b/sbin/isakmpd/isakmpd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: isakmpd.conf.5,v 1.118 2006/09/15 09:49:07 hshoexer Exp $ +.\" $OpenBSD: isakmpd.conf.5,v 1.119 2006/11/24 13:52:14 reyk Exp $ .\" $EOM: isakmpd.conf.5,v 1.57 2000/12/21 14:43:17 ho Exp $ .\" .\" Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -647,6 +647,41 @@ we are dealing with. Look at .Aq Sy IPsec-ID below. +.It Em PF-Tag +Add a +.Xr pf 4 +tag to all packets of phase 2 SAs created for this connection. +This will allow matching packets for this connection by defining +rules in +.Xr pf.conf 5 +using the +.Em tagged +keyword. +.Pp +The following variables can be used in tags to include information +from the remote peer on runtime: +.Pp +.Bl -tag -width $domain -compact -offset indent +.It Ar $id +The remote phase 1 ID. +It will be expanded to +.Ar id-type/id-value , +e.g.\& +.Ar fqdn/foo.bar.org . +.It Ar $domain +Extract the domain from IDs of type FQDN or UFQDN. +.El +.Pp +For example, if the ID is +.Ar fqdn/foo.bar.org +or +.Ar ufqdn/user@bar.org , +.Dq PF-Tag=ipsec-$domain +expands to +.Dq ipsec-bar.org . +The variable expansion for the +.Ar PF-Tag +directive occurs only at runtime, not during configuration file parse time. .El .It Aq Sy IPsec-configuration Parameters for IPsec configuration |