diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2006-06-01 20:29:06 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2006-06-01 20:29:06 +0000 |
commit | 43d92950a69d945cf6dc1fdbd66c729b5a86dada (patch) | |
tree | c87b4617535957b881fe800108a205667ea4bfb5 /sbin | |
parent | 2f9088c66c46330f1e7e62bfa1a371ea7173c663 (diff) |
document port matching in flows; ok hshoexer@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipsecctl/ipsec.conf.5 | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ipsec.conf.5 b/sbin/ipsecctl/ipsec.conf.5 index c346c664b64..973fd5d8f93 100644 --- a/sbin/ipsecctl/ipsec.conf.5 +++ b/sbin/ipsecctl/ipsec.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ipsec.conf.5,v 1.47 2006/05/28 08:04:34 jmc Exp $ +.\" $OpenBSD: ipsec.conf.5,v 1.48 2006/06/01 20:29:05 naddy Exp $ .\" .\" Copyright (c) 2004 Mathieu Sauve-Frankel All rights reserved. .\" @@ -126,12 +126,12 @@ see the file .It Xo .Ar from .Aq Ar src +.Ar port +.Aq Ar sport .Ar to .Aq Ar dst -.Ar local -.Aq Ar localip -.Ar peer -.Aq Ar remote +.Ar port +.Aq Ar dport .Xc This rule applies for packets with source address .Aq Ar src @@ -140,10 +140,25 @@ and destination address The keyword .Ar any will match any address (i.e. 0.0.0.0/0). +The optional +.Ar port +modifiers restrict the flows to the specified ports. +They are only valid in conjunction with the +.Xr tcp 4 +and +.Xr udp 4 +protocols. +Ports can be specified by number or by name. +For a list of all port name to number mappings used by +.Xr ipsecctl 8 , +see the file +.Pa /etc/services . +.It Ar local Aq Ar localip The .Ar local parameter specifies the address or FQDN of the local endpoint of this flow and can be usually left out. +.It Ar peer Aq Ar remote The .Ar peer parameter specifies the address or FQDN of the remote endpoint of this |