1cf43a054SHajimu UMEMOTO.\" $KAME: setkey.8,v 1.89 2003/09/07 22:17:41 itojun Exp $ 23c62e87aSJun-ichiro itojun Hagino.\" 39a4365d0SYoshinobu Inoue.\" Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 49a4365d0SYoshinobu Inoue.\" All rights reserved. 59a4365d0SYoshinobu Inoue.\" 69a4365d0SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without 79a4365d0SYoshinobu Inoue.\" modification, are permitted provided that the following conditions 89a4365d0SYoshinobu Inoue.\" are met: 99a4365d0SYoshinobu Inoue.\" 1. Redistributions of source code must retain the above copyright 109a4365d0SYoshinobu Inoue.\" notice, this list of conditions and the following disclaimer. 119a4365d0SYoshinobu Inoue.\" 2. Redistributions in binary form must reproduce the above copyright 129a4365d0SYoshinobu Inoue.\" notice, this list of conditions and the following disclaimer in the 139a4365d0SYoshinobu Inoue.\" documentation and/or other materials provided with the distribution. 149a4365d0SYoshinobu Inoue.\" 3. Neither the name of the project nor the names of its contributors 159a4365d0SYoshinobu Inoue.\" may be used to endorse or promote products derived from this software 169a4365d0SYoshinobu Inoue.\" without specific prior written permission. 179a4365d0SYoshinobu Inoue.\" 189a4365d0SYoshinobu Inoue.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 199a4365d0SYoshinobu Inoue.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 209a4365d0SYoshinobu Inoue.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 219a4365d0SYoshinobu Inoue.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 229a4365d0SYoshinobu Inoue.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 239a4365d0SYoshinobu Inoue.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 249a4365d0SYoshinobu Inoue.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 259a4365d0SYoshinobu Inoue.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 269a4365d0SYoshinobu Inoue.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 279a4365d0SYoshinobu Inoue.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 289a4365d0SYoshinobu Inoue.\" SUCH DAMAGE. 299a4365d0SYoshinobu Inoue.\" 306b806d21SRuslan Ermilov.\" $FreeBSD$ 316b806d21SRuslan Ermilov.\" 32*db881946SAndrey V. Elsukov.Dd February 27, 2017 339a4365d0SYoshinobu Inoue.Dt SETKEY 8 3433841545SHajimu UMEMOTO.Os 353c62e87aSJun-ichiro itojun Hagino.\" 369a4365d0SYoshinobu Inoue.Sh NAME 379a4365d0SYoshinobu Inoue.Nm setkey 386992e2a5SRuslan Ermilov.Nd "manually manipulate the IPsec SA/SP database" 393c62e87aSJun-ichiro itojun Hagino.\" 409a4365d0SYoshinobu Inoue.Sh SYNOPSIS 41e97407b4SRuslan Ermilov.Nm 42cf43a054SHajimu UMEMOTO.Op Fl v 439a4365d0SYoshinobu Inoue.Fl c 44e97407b4SRuslan Ermilov.Nm 45cf43a054SHajimu UMEMOTO.Op Fl v 469a4365d0SYoshinobu Inoue.Fl f Ar filename 47e97407b4SRuslan Ermilov.Nm 48cf43a054SHajimu UMEMOTO.Op Fl aPlv 499a4365d0SYoshinobu Inoue.Fl D 50e97407b4SRuslan Ermilov.Nm 51cf43a054SHajimu UMEMOTO.Op Fl Pv 529a4365d0SYoshinobu Inoue.Fl F 53e97407b4SRuslan Ermilov.Nm 549a4365d0SYoshinobu Inoue.Op Fl h 559a4365d0SYoshinobu Inoue.Fl x 569a4365d0SYoshinobu Inoue.\" 579a4365d0SYoshinobu Inoue.Sh DESCRIPTION 58490d5836SPhilippe CharnierThe 599a4365d0SYoshinobu Inoue.Nm 606992e2a5SRuslan Ermilovutility adds, updates, dumps, or flushes 613c62e87aSJun-ichiro itojun HaginoSecurity Association Database (SAD) entries 623c62e87aSJun-ichiro itojun Haginoas well as Security Policy Database (SPD) entries in the kernel. 639a4365d0SYoshinobu Inoue.Pp 64490d5836SPhilippe CharnierThe 659a4365d0SYoshinobu Inoue.Nm 666992e2a5SRuslan Ermilovutility takes a series of operations from the standard input 676992e2a5SRuslan Ermilov(if invoked with 686992e2a5SRuslan Ermilov.Fl c ) 693c62e87aSJun-ichiro itojun Haginoor the file named 709a4365d0SYoshinobu Inoue.Ar filename 716992e2a5SRuslan Ermilov(if invoked with 726992e2a5SRuslan Ermilov.Fl f Ar filename ) . 736992e2a5SRuslan Ermilov.Bl -tag -width indent 749a4365d0SYoshinobu Inoue.It Fl D 759a4365d0SYoshinobu InoueDump the SAD entries. 769a4365d0SYoshinobu InoueIf with 779a4365d0SYoshinobu Inoue.Fl P , 789a4365d0SYoshinobu Inouethe SPD entries are dumped. 799a4365d0SYoshinobu Inoue.It Fl F 803c62e87aSJun-ichiro itojun HaginoFlush the SAD entries. 819a4365d0SYoshinobu InoueIf with 829a4365d0SYoshinobu Inoue.Fl P , 833c62e87aSJun-ichiro itojun Haginothe SPD entries are flushed. 849a4365d0SYoshinobu Inoue.It Fl a 856992e2a5SRuslan ErmilovThe 86cf43a054SHajimu UMEMOTO.Nm 876992e2a5SRuslan Ermilovutility 88cf43a054SHajimu UMEMOTOusually does not display dead SAD entries with 899a4365d0SYoshinobu Inoue.Fl D . 903c62e87aSJun-ichiro itojun HaginoIf with 919a4365d0SYoshinobu Inoue.Fl a , 923c62e87aSJun-ichiro itojun Haginothe dead SAD entries will be displayed as well. 933c62e87aSJun-ichiro itojun HaginoA dead SAD entry means that 94cf43a054SHajimu UMEMOTOit has been expired but remains in the system 95cf43a054SHajimu UMEMOTObecause it is referenced by some SPD entries. 969a4365d0SYoshinobu Inoue.It Fl h 979a4365d0SYoshinobu InoueAdd hexadecimal dump on 989a4365d0SYoshinobu Inoue.Fl x 99f2e366a1SSheldon Hearnmode. 1009a4365d0SYoshinobu Inoue.It Fl l 1019a4365d0SYoshinobu InoueLoop forever with short output on 1029a4365d0SYoshinobu Inoue.Fl D . 1039a4365d0SYoshinobu Inoue.It Fl v 1049a4365d0SYoshinobu InoueBe verbose. 10533841545SHajimu UMEMOTOThe program will dump messages exchanged on 1069a4365d0SYoshinobu Inoue.Dv PF_KEY 10733841545SHajimu UMEMOTOsocket, including messages sent from other processes to the kernel. 108cf43a054SHajimu UMEMOTO.It Fl x 109cf43a054SHajimu UMEMOTOLoop forever and dump all the messages transmitted to 110cf43a054SHajimu UMEMOTO.Dv PF_KEY 111cf43a054SHajimu UMEMOTOsocket. 112cf43a054SHajimu UMEMOTO.Fl xx 1137cb0189dSEitan Adlermakes each timestamp unformatted. 1149a4365d0SYoshinobu Inoue.El 115cf43a054SHajimu UMEMOTO.Ss Configuration syntax 116cf43a054SHajimu UMEMOTOWith 117cf43a054SHajimu UMEMOTO.Fl c 118cf43a054SHajimu UMEMOTOor 119cf43a054SHajimu UMEMOTO.Fl f 120cf43a054SHajimu UMEMOTOon the command line, 121cf43a054SHajimu UMEMOTO.Nm 122cf43a054SHajimu UMEMOTOaccepts the following configuration syntax. 1236992e2a5SRuslan ErmilovLines starting with hash signs 1246992e2a5SRuslan Ermilov.Pq Ql # 1256992e2a5SRuslan Ermilovare treated as comment lines. 1266992e2a5SRuslan Ermilov.Bl -tag -width indent 1279a4365d0SYoshinobu Inoue.It Xo 1289a4365d0SYoshinobu Inoue.Li add 129cf43a054SHajimu UMEMOTO.Op Fl 46n 1309a4365d0SYoshinobu Inoue.Ar src Ar dst Ar protocol Ar spi 1319a4365d0SYoshinobu Inoue.Op Ar extensions 1329a4365d0SYoshinobu Inoue.Ar algorithm ... 13335471bf8SJoel Dahl.Li \&; 1349a4365d0SYoshinobu Inoue.Xc 1353c62e87aSJun-ichiro itojun HaginoAdd an SAD entry. 136cf43a054SHajimu UMEMOTO.Li add 137cf43a054SHajimu UMEMOTOcan fail with multiple reasons, 138cf43a054SHajimu UMEMOTOincluding when the key length does not match the specified algorithm. 1399a4365d0SYoshinobu Inoue.\" 1409a4365d0SYoshinobu Inoue.It Xo 1419a4365d0SYoshinobu Inoue.Li get 142cf43a054SHajimu UMEMOTO.Op Fl 46n 1439a4365d0SYoshinobu Inoue.Ar src Ar dst Ar protocol Ar spi 14435471bf8SJoel Dahl.Li \&; 1459a4365d0SYoshinobu Inoue.Xc 1463c62e87aSJun-ichiro itojun HaginoShow an SAD entry. 1479a4365d0SYoshinobu Inoue.\" 1489a4365d0SYoshinobu Inoue.It Xo 1499a4365d0SYoshinobu Inoue.Li delete 150cf43a054SHajimu UMEMOTO.Op Fl 46n 1519a4365d0SYoshinobu Inoue.Ar src Ar dst Ar protocol Ar spi 15235471bf8SJoel Dahl.Li \&; 1539a4365d0SYoshinobu Inoue.Xc 1543c62e87aSJun-ichiro itojun HaginoRemove an SAD entry. 1559a4365d0SYoshinobu Inoue.\" 1569a4365d0SYoshinobu Inoue.It Xo 15733841545SHajimu UMEMOTO.Li deleteall 158cf43a054SHajimu UMEMOTO.Op Fl 46n 15933841545SHajimu UMEMOTO.Ar src Ar dst Ar protocol 16035471bf8SJoel Dahl.Li \&; 16133841545SHajimu UMEMOTO.Xc 16233841545SHajimu UMEMOTORemove all SAD entries that match the specification. 16333841545SHajimu UMEMOTO.\" 16433841545SHajimu UMEMOTO.It Xo 1659a4365d0SYoshinobu Inoue.Li flush 1669a4365d0SYoshinobu Inoue.Op Ar protocol 16735471bf8SJoel Dahl.Li \&; 1689a4365d0SYoshinobu Inoue.Xc 1693c62e87aSJun-ichiro itojun HaginoClear all SAD entries matched by the options. 170cf43a054SHajimu UMEMOTO.Fl F 171cf43a054SHajimu UMEMOTOon the command line achieves the same functionality. 1729a4365d0SYoshinobu Inoue.\" 1739a4365d0SYoshinobu Inoue.It Xo 1749a4365d0SYoshinobu Inoue.Li dump 1759a4365d0SYoshinobu Inoue.Op Ar protocol 17635471bf8SJoel Dahl.Li \&; 1779a4365d0SYoshinobu Inoue.Xc 1783c62e87aSJun-ichiro itojun HaginoDumps all SAD entries matched by the options. 179cf43a054SHajimu UMEMOTO.Fl D 180cf43a054SHajimu UMEMOTOon the command line achieves the same functionality. 1819a4365d0SYoshinobu Inoue.\" 1829a4365d0SYoshinobu Inoue.It Xo 1839a4365d0SYoshinobu Inoue.Li spdadd 184cf43a054SHajimu UMEMOTO.Op Fl 46n 1859a4365d0SYoshinobu Inoue.Ar src_range Ar dst_range Ar upperspec Ar policy 18635471bf8SJoel Dahl.Li \&; 1879a4365d0SYoshinobu Inoue.Xc 1883c62e87aSJun-ichiro itojun HaginoAdd an SPD entry. 1899a4365d0SYoshinobu Inoue.\" 1909a4365d0SYoshinobu Inoue.It Xo 1919a4365d0SYoshinobu Inoue.Li spddelete 192cf43a054SHajimu UMEMOTO.Op Fl 46n 1933c62e87aSJun-ichiro itojun Hagino.Ar src_range Ar dst_range Ar upperspec Fl P Ar direction 19435471bf8SJoel Dahl.Li \&; 1959a4365d0SYoshinobu Inoue.Xc 1963c62e87aSJun-ichiro itojun HaginoDelete an SPD entry. 1979a4365d0SYoshinobu Inoue.\" 1989a4365d0SYoshinobu Inoue.It Xo 1999a4365d0SYoshinobu Inoue.Li spdflush 20035471bf8SJoel Dahl.Li \&; 2019a4365d0SYoshinobu Inoue.Xc 2029a4365d0SYoshinobu InoueClear all SPD entries. 203cf43a054SHajimu UMEMOTO.Fl FP 204cf43a054SHajimu UMEMOTOon the command line achieves the same functionality. 2059a4365d0SYoshinobu Inoue.\" 2069a4365d0SYoshinobu Inoue.It Xo 2079a4365d0SYoshinobu Inoue.Li spddump 20835471bf8SJoel Dahl.Li \&; 2099a4365d0SYoshinobu Inoue.Xc 21017deb182SYoshinobu InoueDumps all SPD entries. 211cf43a054SHajimu UMEMOTO.Fl DP 212cf43a054SHajimu UMEMOTOon the command line achieves the same functionality. 2139a4365d0SYoshinobu Inoue.El 2149a4365d0SYoshinobu Inoue.\" 2159a4365d0SYoshinobu Inoue.Pp 2169a4365d0SYoshinobu InoueMeta-arguments are as follows: 217059b1593SBen Smithurst.Pp 2186992e2a5SRuslan Ermilov.Bl -tag -compact -width indent 2199a4365d0SYoshinobu Inoue.It Ar src 2209a4365d0SYoshinobu Inoue.It Ar dst 2219a4365d0SYoshinobu InoueSource/destination of the secure communication is specified as 2229a4365d0SYoshinobu InoueIPv4/v6 address. 2236992e2a5SRuslan ErmilovThe 2249a4365d0SYoshinobu Inoue.Nm 2256992e2a5SRuslan Ermilovutility 226cf43a054SHajimu UMEMOTOcan resolve a FQDN into numeric addresses. 227cf43a054SHajimu UMEMOTOIf the FQDN resolves into multiple addresses, 228cf43a054SHajimu UMEMOTO.Nm 229cf43a054SHajimu UMEMOTOwill install multiple SAD/SPD entries into the kernel 230cf43a054SHajimu UMEMOTOby trying all possible combinations. 231cf43a054SHajimu UMEMOTO.Fl 4 , 232cf43a054SHajimu UMEMOTO.Fl 6 2339a4365d0SYoshinobu Inoueand 234cf43a054SHajimu UMEMOTO.Fl n 235cf43a054SHajimu UMEMOTOrestricts the address resolution of FQDN in certain ways. 236cf43a054SHajimu UMEMOTO.Fl 4 237cf43a054SHajimu UMEMOTOand 238cf43a054SHajimu UMEMOTO.Fl 6 239cf43a054SHajimu UMEMOTOrestrict results into IPv4/v6 addresses only, respectively. 240cf43a054SHajimu UMEMOTO.Fl n 241cf43a054SHajimu UMEMOTOavoids FQDN resolution and requires addresses to be numeric addresses. 2429a4365d0SYoshinobu Inoue.\" 2439a4365d0SYoshinobu Inoue.Pp 2449a4365d0SYoshinobu Inoue.It Ar protocol 2459a4365d0SYoshinobu Inoue.Ar protocol 2469a4365d0SYoshinobu Inoueis one of following: 2479a4365d0SYoshinobu Inoue.Bl -tag -width Fl -compact 2489a4365d0SYoshinobu Inoue.It Li esp 249cf43a054SHajimu UMEMOTOESP based on rfc2406 2509a4365d0SYoshinobu Inoue.It Li esp-old 2519a4365d0SYoshinobu InoueESP based on rfc1827 2529a4365d0SYoshinobu Inoue.It Li ah 2539a4365d0SYoshinobu InoueAH based on rfc2402 2549a4365d0SYoshinobu Inoue.It Li ah-old 2559a4365d0SYoshinobu InoueAH based on rfc1826 2569a4365d0SYoshinobu Inoue.It Li ipcomp 257cf43a054SHajimu UMEMOTOIPComp 2581922fd12SBruce M Simpson.It Li tcp 2591922fd12SBruce M SimpsonTCP-MD5 based on rfc2385 2609a4365d0SYoshinobu Inoue.El 2619a4365d0SYoshinobu Inoue.\" 2629a4365d0SYoshinobu Inoue.Pp 2639a4365d0SYoshinobu Inoue.It Ar spi 264cf43a054SHajimu UMEMOTOSecurity Parameter Index 2656992e2a5SRuslan Ermilov(SPI) 266cf43a054SHajimu UMEMOTOfor the SAD and the SPD. 267cf43a054SHajimu UMEMOTO.Ar spi 268cf43a054SHajimu UMEMOTOmust be a decimal number, or a hexadecimal number with 2696992e2a5SRuslan Ermilov.Ql 0x 270cf43a054SHajimu UMEMOTOprefix. 271cf43a054SHajimu UMEMOTOSPI values between 0 and 255 are reserved for future use by IANA 272cf43a054SHajimu UMEMOTOand they cannot be used. 2739a4365d0SYoshinobu Inoue.\" 2749a4365d0SYoshinobu Inoue.Pp 2759a4365d0SYoshinobu Inoue.It Ar extensions 276cf43a054SHajimu UMEMOTOtake some of the following: 2779a4365d0SYoshinobu Inoue.Bl -tag -width Fl -compact 2783c62e87aSJun-ichiro itojun Hagino.\" 2799a4365d0SYoshinobu Inoue.It Fl m Ar mode 2803c62e87aSJun-ichiro itojun HaginoSpecify a security protocol mode for use. 2819a4365d0SYoshinobu Inoue.Ar mode 2829a4365d0SYoshinobu Inoueis one of following: 2839a4365d0SYoshinobu Inoue.Li transport , tunnel 2849a4365d0SYoshinobu Inoueor 2859a4365d0SYoshinobu Inoue.Li any . 2863c62e87aSJun-ichiro itojun HaginoThe default value is 2873c62e87aSJun-ichiro itojun Hagino.Li any . 2883c62e87aSJun-ichiro itojun Hagino.\" 2899a4365d0SYoshinobu Inoue.It Fl r Ar size 2909a4365d0SYoshinobu InoueSpecify window size of bytes for replay prevention. 2919a4365d0SYoshinobu Inoue.Ar size 29233841545SHajimu UMEMOTOmust be decimal number in 32-bit word. 29333841545SHajimu UMEMOTOIf 2949a4365d0SYoshinobu Inoue.Ar size 2956992e2a5SRuslan Ermilovis zero or not specified, replay check does not take place. 2963c62e87aSJun-ichiro itojun Hagino.\" 2973c62e87aSJun-ichiro itojun Hagino.It Fl u Ar id 29833841545SHajimu UMEMOTOSpecify the identifier of the policy entry in SPD. 29933841545SHajimu UMEMOTOSee 30033841545SHajimu UMEMOTO.Ar policy . 3013c62e87aSJun-ichiro itojun Hagino.\" 3029a4365d0SYoshinobu Inoue.It Fl f Ar pad_option 30333841545SHajimu UMEMOTOdefines the content of the ESP padding. 3049a4365d0SYoshinobu Inoue.Ar pad_option 3059a4365d0SYoshinobu Inoueis one of following: 30633841545SHajimu UMEMOTO.Bl -tag -width random-pad -compact 30733841545SHajimu UMEMOTO.It Li zero-pad 30833841545SHajimu UMEMOTOAll of the padding are zero. 30933841545SHajimu UMEMOTO.It Li random-pad 31033841545SHajimu UMEMOTOA series of randomized values are set. 31133841545SHajimu UMEMOTO.It Li seq-pad 31233841545SHajimu UMEMOTOA series of sequential increasing numbers started from 1 are set. 31333841545SHajimu UMEMOTO.El 3143c62e87aSJun-ichiro itojun Hagino.\" 3153c62e87aSJun-ichiro itojun Hagino.It Fl f Li nocyclic-seq 3166992e2a5SRuslan ErmilovDo not allow cyclic sequence number. 3173c62e87aSJun-ichiro itojun Hagino.\" 3189a4365d0SYoshinobu Inoue.It Fl lh Ar time 3199a4365d0SYoshinobu Inoue.It Fl ls Ar time 32033841545SHajimu UMEMOTOSpecify hard/soft life time duration of the SA. 3219a4365d0SYoshinobu Inoue.El 3229a4365d0SYoshinobu Inoue.\" 3239a4365d0SYoshinobu Inoue.Pp 3249a4365d0SYoshinobu Inoue.It Ar algorithm 3259a4365d0SYoshinobu Inoue.Bl -tag -width Fl -compact 3269a4365d0SYoshinobu Inoue.It Fl E Ar ealgo Ar key 327cf43a054SHajimu UMEMOTOSpecify an encryption algorithm 328cf43a054SHajimu UMEMOTO.Ar ealgo 329cf43a054SHajimu UMEMOTOfor ESP. 330cf43a054SHajimu UMEMOTO.It Xo 331cf43a054SHajimu UMEMOTO.Fl E Ar ealgo Ar key 332cf43a054SHajimu UMEMOTO.Fl A Ar aalgo Ar key 333cf43a054SHajimu UMEMOTO.Xc 334cf43a054SHajimu UMEMOTOSpecify a encryption algorithm 335cf43a054SHajimu UMEMOTO.Ar ealgo , 336cf43a054SHajimu UMEMOTOas well as a payload authentication algorithm 337cf43a054SHajimu UMEMOTO.Ar aalgo , 338cf43a054SHajimu UMEMOTOfor ESP. 339ec2f949eSTim Vanderhoek.It Fl A Ar aalgo Ar key 340cf43a054SHajimu UMEMOTOSpecify an authentication algorithm for AH. 3419a4365d0SYoshinobu Inoue.It Fl C Ar calgo Op Fl R 342cf43a054SHajimu UMEMOTOSpecify a compression algorithm for IPComp. 3439a4365d0SYoshinobu InoueIf 3449a4365d0SYoshinobu Inoue.Fl R 345fb170c44SGeorge V. Neville-Neilis specified, the 3469a4365d0SYoshinobu Inoue.Ar spi 347cf43a054SHajimu UMEMOTOfield value will be used as the IPComp CPI 3486992e2a5SRuslan Ermilov(compression parameter index) 349cf43a054SHajimu UMEMOTOon wire as is. 3509a4365d0SYoshinobu InoueIf 3519a4365d0SYoshinobu Inoue.Fl R 352cf43a054SHajimu UMEMOTOis not specified, 353cf43a054SHajimu UMEMOTOthe kernel will use well-known CPI on wire, and 3549a4365d0SYoshinobu Inoue.Ar spi 355cf43a054SHajimu UMEMOTOfield will be used only as an index for kernel internal usage. 3569a4365d0SYoshinobu Inoue.El 3579a4365d0SYoshinobu Inoue.Pp 3589a4365d0SYoshinobu Inoue.Ar key 359cf43a054SHajimu UMEMOTOmust be double-quoted character string, or a series of hexadecimal digits 360cf43a054SHajimu UMEMOTOpreceded by 3616992e2a5SRuslan Ermilov.Ql 0x . 3629a4365d0SYoshinobu Inoue.Pp 3639a4365d0SYoshinobu InouePossible values for 3649a4365d0SYoshinobu Inoue.Ar ealgo , 3659a4365d0SYoshinobu Inoue.Ar aalgo 3669a4365d0SYoshinobu Inoueand 3679a4365d0SYoshinobu Inoue.Ar calgo 3689a4365d0SYoshinobu Inoueare specified in separate section. 3699a4365d0SYoshinobu Inoue.\" 370059b1593SBen Smithurst.Pp 3719a4365d0SYoshinobu Inoue.It Ar src_range 3729a4365d0SYoshinobu Inoue.It Ar dst_range 3733c62e87aSJun-ichiro itojun HaginoThese are selections of the secure communication specified as 3749a4365d0SYoshinobu InoueIPv4/v6 address or IPv4/v6 address range, and it may accompany 3759a4365d0SYoshinobu InoueTCP/UDP port specification. 3769a4365d0SYoshinobu InoueThis takes the following form: 37762890a39SRuslan Ermilov.Bd -unfilled 3789a4365d0SYoshinobu Inoue.Ar address 3799a4365d0SYoshinobu Inoue.Ar address/prefixlen 3809a4365d0SYoshinobu Inoue.Ar address[port] 3819a4365d0SYoshinobu Inoue.Ar address/prefixlen[port] 3829a4365d0SYoshinobu Inoue.Ed 3839a4365d0SYoshinobu Inoue.Pp 3849a4365d0SYoshinobu Inoue.Ar prefixlen 3859a4365d0SYoshinobu Inoueand 3869a4365d0SYoshinobu Inoue.Ar port 387fb170c44SGeorge V. Neville-Neilmust be a decimal number. 388fb170c44SGeorge V. Neville-NeilThe square brackets around 3899a4365d0SYoshinobu Inoue.Ar port 390fb170c44SGeorge V. Neville-Neilare necessary and are not manpage metacharacters. 391cf43a054SHajimu UMEMOTOFor FQDN resolution, the rules applicable to 3929a4365d0SYoshinobu Inoue.Ar src 3939a4365d0SYoshinobu Inoueand 394cf43a054SHajimu UMEMOTO.Ar dst 395cf43a054SHajimu UMEMOTOapply here as well. 3969a4365d0SYoshinobu Inoue.\" 397059b1593SBen Smithurst.Pp 3989a4365d0SYoshinobu Inoue.It Ar upperspec 399fb170c44SGeorge V. Neville-NeilThe upper layer protocol to be used. 400fb170c44SGeorge V. Neville-NeilYou can use one of the words in 40133841545SHajimu UMEMOTO.Pa /etc/protocols 40233841545SHajimu UMEMOTOas 403fb170c44SGeorge V. Neville-Neil.Ar upperspec , 404fb170c44SGeorge V. Neville-Neilas well as 405f1b1c5daSBrian Somers.Li icmp6 , 406f1b1c5daSBrian Somers.Li ip4 , 407fb170c44SGeorge V. Neville-Neilor 408fb170c44SGeorge V. Neville-Neil.Li any . 4098266d476SRuslan ErmilovThe word 4108266d476SRuslan Ermilov.Li any 4119a4365d0SYoshinobu Inouestands for 4129a4365d0SYoshinobu Inoue.Dq any protocol . 413fb170c44SGeorge V. Neville-NeilThe protocol number may also be used to specify the 414fb170c44SGeorge V. Neville-Neil.Ar upperspec . 415fb170c44SGeorge V. Neville-NeilA type and code related to ICMPv6 may also be specified as an 416fb170c44SGeorge V. Neville-Neil.Ar upperspec . 417fb170c44SGeorge V. Neville-NeilThe type is specified first, followed by a comma and then the relevant 418fb170c44SGeorge V. Neville-Neilcode. 419fb170c44SGeorge V. Neville-NeilThe specification must be placed after 420cf43a054SHajimu UMEMOTO.Li icmp6 . 421fb170c44SGeorge V. Neville-NeilThe kernel considers a zero to be a wildcard but 422fb170c44SGeorge V. Neville-Neilcannot distinguish between a wildcard and an ICMPv6 423fb170c44SGeorge V. Neville-Neiltype which is zero. 424fb170c44SGeorge V. Neville-NeilThe following example shows a policy where IPSec is not required for 425fb170c44SGeorge V. Neville-Neilinbound Neighbor Solicitations: 4266992e2a5SRuslan Ermilov.Pp 4276992e2a5SRuslan Ermilov.Dl "spdadd ::/0 ::/0 icmp6 135,0 -P in none;" 4289a4365d0SYoshinobu Inoue.Pp 4299a4365d0SYoshinobu InoueNOTE: 4309a4365d0SYoshinobu Inoue.Ar upperspec 431fb170c44SGeorge V. Neville-Neildoes not work in the forwarding case at this moment, 432fb170c44SGeorge V. Neville-Neilas it requires extra reassembly at forwarding node, 433fb170c44SGeorge V. Neville-Neilwhich is not implemented at this moment. 434fb170c44SGeorge V. Neville-NeilAlthough there are many protocols in 43533841545SHajimu UMEMOTO.Pa /etc/protocols , 436fb170c44SGeorge V. Neville-Neilprotocols other than TCP, UDP and ICMP may not be suitable to use with IPsec. 4379a4365d0SYoshinobu Inoue.\" 438059b1593SBen Smithurst.Pp 4399a4365d0SYoshinobu Inoue.It Ar policy 4409a4365d0SYoshinobu Inoue.Ar policy 441fb170c44SGeorge V. Neville-Neilis expressed in one of the following three formats: 442b2e52cedSUlrich Spörlein.Pp 44329e758c2SJoel Dahl.Bl -tag -width 2n -compact 444cf43a054SHajimu UMEMOTO.It Fl P Ar direction Li discard 445cf43a054SHajimu UMEMOTO.It Fl P Ar direction Li none 446cf43a054SHajimu UMEMOTO.It Xo Fl P Ar direction Li ipsec 447cf43a054SHajimu UMEMOTO.Ar protocol/mode/src-dst/level Op ... 44833841545SHajimu UMEMOTO.Xc 449b2e52cedSUlrich Spörlein.El 4509a4365d0SYoshinobu Inoue.Pp 451fb170c44SGeorge V. Neville-NeilThe direction of a policy must be specified as 452fb170c44SGeorge V. Neville-Neilone of: 453fb170c44SGeorge V. Neville-Neil.Li out , 454fb170c44SGeorge V. Neville-Neil.Li in , 4558266d476SRuslan Ermilov.Li discard , 456fb170c44SGeorge V. Neville-Neil.Li none , 457fb170c44SGeorge V. Neville-Neilor 458fb170c44SGeorge V. Neville-Neil.Li ipsec . 4598266d476SRuslan ErmilovThe 4608266d476SRuslan Ermilov.Li discard 4618266d476SRuslan Ermilovdirection 462fb170c44SGeorge V. Neville-Neilmeans that packets matching the supplied indices will be discarded 463fb170c44SGeorge V. Neville-Neilwhile 4649a4365d0SYoshinobu Inoue.Li none 465fb170c44SGeorge V. Neville-Neilmeans that IPsec operations will not take place on the packet and 4669a4365d0SYoshinobu Inoue.Li ipsec 4679a4365d0SYoshinobu Inouemeans that IPsec operation will take place onto the packet. 468fb170c44SGeorge V. Neville-NeilThe 469cf43a054SHajimu UMEMOTO.Ar protocol/mode/src-dst/level 470fb170c44SGeorge V. Neville-Neilstatement gives the rule for how to process the packet. 4718266d476SRuslan ErmilovThe 4728266d476SRuslan Ermilov.Ar protocol 4738266d476SRuslan Ermilovis specified as 4749a4365d0SYoshinobu Inoue.Li ah , 4759a4365d0SYoshinobu Inoue.Li esp 4769a4365d0SYoshinobu Inoueor 47719d35886SMaxim Konovalov.Li ipcomp . 478fb170c44SGeorge V. Neville-NeilThe 4799a4365d0SYoshinobu Inoue.Ar mode 4809a4365d0SYoshinobu Inoueis either 4819a4365d0SYoshinobu Inoue.Li transport 4829a4365d0SYoshinobu Inoueor 4839a4365d0SYoshinobu Inoue.Li tunnel . 48433841545SHajimu UMEMOTOIf 48533841545SHajimu UMEMOTO.Ar mode 48633841545SHajimu UMEMOTOis 48733841545SHajimu UMEMOTO.Li tunnel , 488fb170c44SGeorge V. Neville-Neilyou must specify the end-point addresses of the SA as 4899a4365d0SYoshinobu Inoue.Ar src 4909a4365d0SYoshinobu Inoueand 4919a4365d0SYoshinobu Inoue.Ar dst 492fb170c44SGeorge V. Neville-Neilwith a dash, 493fb170c44SGeorge V. Neville-Neil.Sq - , 494fb170c44SGeorge V. Neville-Neilbetween the addresses. 49533841545SHajimu UMEMOTOIf 49633841545SHajimu UMEMOTO.Ar mode 49733841545SHajimu UMEMOTOis 49833841545SHajimu UMEMOTO.Li transport , 49933841545SHajimu UMEMOTOboth 50033841545SHajimu UMEMOTO.Ar src 50133841545SHajimu UMEMOTOand 50233841545SHajimu UMEMOTO.Ar dst 50357bd0fc6SJens Schweikhardtcan be omitted. 504fb170c44SGeorge V. Neville-NeilThe 5059a4365d0SYoshinobu Inoue.Ar level 506fb170c44SGeorge V. Neville-Neilis one of the following: 50733841545SHajimu UMEMOTO.Li default , use , require 5089a4365d0SYoshinobu Inoueor 50933841545SHajimu UMEMOTO.Li unique . 51033841545SHajimu UMEMOTOIf the SA is not available in every level, the kernel will request 511fb170c44SGeorge V. Neville-Neilthe SA from the key exchange daemon. 512fb170c44SGeorge V. Neville-NeilA value of 5139a4365d0SYoshinobu Inoue.Li default 514fb170c44SGeorge V. Neville-Neiltells the kernel to use the system wide default protocol 515c14beb68SWarren Blocke.g.,\& the one from the 5169a4365d0SYoshinobu Inoue.Li esp_trans_deflev 5173c62e87aSJun-ichiro itojun Haginosysctl variable, when the kernel processes the packet. 5188266d476SRuslan ErmilovA value of 5198266d476SRuslan Ermilov.Li use 520fb170c44SGeorge V. Neville-Neilmeans that the kernel will use an SA if it is available, 521fb170c44SGeorge V. Neville-Neilotherwise the kernel will pass the packet as it would normally. 5228266d476SRuslan ErmilovA value of 5238266d476SRuslan Ermilov.Li require 524fb170c44SGeorge V. Neville-Neilmeans that an SA is required whenever the kernel sends a packet matched 525fb170c44SGeorge V. Neville-Neilthat matches the policy. 526fb170c44SGeorge V. Neville-NeilThe 52733841545SHajimu UMEMOTO.Li unique 528fb170c44SGeorge V. Neville-Neillevel is the same as 529fb170c44SGeorge V. Neville-Neil.Li require 530fb170c44SGeorge V. Neville-Neilbut, in addition, it allows the policy to bind with the unique out-bound SA. 531fb170c44SGeorge V. Neville-NeilFor example, if you specify the policy level 532cf43a054SHajimu UMEMOTO.Li unique , 533cf43a054SHajimu UMEMOTO.Xr racoon 8 534cf43a054SHajimu UMEMOTOwill configure the SA for the policy. 535cf43a054SHajimu UMEMOTOIf you configure the SA by manual keying for that policy, 53633841545SHajimu UMEMOTOyou can put the decimal number as the policy identifier after 53733841545SHajimu UMEMOTO.Li unique 53833841545SHajimu UMEMOTOseparated by colon 5396992e2a5SRuslan Ermilov.Ql :\& 540fb170c44SGeorge V. Neville-Neilas in the following example: 54133841545SHajimu UMEMOTO.Li unique:number . 5426992e2a5SRuslan ErmilovIn order to bind this policy to the SA, 54333841545SHajimu UMEMOTO.Li number 544fb170c44SGeorge V. Neville-Neilmust be between 1 and 32767, 545fb170c44SGeorge V. Neville-Neilwhich corresponds to 546cf43a054SHajimu UMEMOTO.Ar extensions Fl u 547fb170c44SGeorge V. Neville-Neilof manual SA configuration. 548fb170c44SGeorge V. Neville-Neil.Pp 5498266d476SRuslan ErmilovWhen you want to use an SA bundle, you can define multiple rules. 5508266d476SRuslan ErmilovFor 551fb170c44SGeorge V. Neville-Neilexample, if an IP header was followed by an AH header followed by an 552fb170c44SGeorge V. Neville-NeilESP header followed by an upper layer protocol header, the rule would 553fb170c44SGeorge V. Neville-Neilbe: 55429e758c2SJoel Dahl.Pp 555cf43a054SHajimu UMEMOTO.Dl esp/transport//require ah/transport//require ; 55629e758c2SJoel Dahl.Pp 557cf43a054SHajimu UMEMOTOThe rule order is very important. 55833841545SHajimu UMEMOTO.Pp 5599a4365d0SYoshinobu InoueNote that 5609a4365d0SYoshinobu Inoue.Dq Li discard 5619a4365d0SYoshinobu Inoueand 5629a4365d0SYoshinobu Inoue.Dq Li none 5639a4365d0SYoshinobu Inoueare not in the syntax described in 5649a4365d0SYoshinobu Inoue.Xr ipsec_set_policy 3 . 565fb170c44SGeorge V. Neville-NeilThere are small, but important, differences in the syntax. 5669a4365d0SYoshinobu InoueSee 5679a4365d0SYoshinobu Inoue.Xr ipsec_set_policy 3 568fb170c44SGeorge V. Neville-Neilfor details. 5699a4365d0SYoshinobu Inoue.El 5709a4365d0SYoshinobu Inoue.\" 5719a4365d0SYoshinobu Inoue.Sh ALGORITHMS 5729a4365d0SYoshinobu InoueThe following list shows the supported algorithms. 573fb170c44SGeorge V. Neville-NeilThe 5749a4365d0SYoshinobu Inoue.Sy protocol 5759a4365d0SYoshinobu Inoueand 5769a4365d0SYoshinobu Inoue.Sy algorithm 577fb170c44SGeorge V. Neville-Neilare almost completely orthogonal. 578fb170c44SGeorge V. Neville-NeilThe following list of authentication algorithms can be used as 5799a4365d0SYoshinobu Inoue.Ar aalgo 580fb170c44SGeorge V. Neville-Neilin the 5819a4365d0SYoshinobu Inoue.Fl A Ar aalgo 582fb170c44SGeorge V. Neville-Neilof the 5839a4365d0SYoshinobu Inoue.Ar protocol 5849a4365d0SYoshinobu Inoueparameter: 5859a4365d0SYoshinobu Inoue.Bd -literal -offset indent 5869a4365d0SYoshinobu Inouealgorithm keylen (bits) comment 5879a4365d0SYoshinobu Inouehmac-md5 128 ah: rfc2403 5889a4365d0SYoshinobu Inoue 128 ah-old: rfc2085 5899a4365d0SYoshinobu Inouehmac-sha1 160 ah: rfc2404 5909a4365d0SYoshinobu Inoue 160 ah-old: 128bit ICV (no document) 5919a4365d0SYoshinobu Inouekeyed-md5 128 ah: 96bit ICV (no document) 5929a4365d0SYoshinobu Inoue 128 ah-old: rfc1828 5939a4365d0SYoshinobu Inouekeyed-sha1 160 ah: 96bit ICV (no document) 5949a4365d0SYoshinobu Inoue 160 ah-old: 128bit ICV (no document) 5959a4365d0SYoshinobu Inouenull 0 to 2048 for debugging 596*db881946SAndrey V. Elsukovhmac-sha2-256 256 ah: 128bit ICV (RFC4868) 59733841545SHajimu UMEMOTO 256 ah-old: 128bit ICV (no document) 598*db881946SAndrey V. Elsukovhmac-sha2-384 384 ah: 192bit ICV (RFC4868) 59933841545SHajimu UMEMOTO 384 ah-old: 128bit ICV (no document) 600*db881946SAndrey V. Elsukovhmac-sha2-512 512 ah: 256bit ICV (RFC4868) 60133841545SHajimu UMEMOTO 512 ah-old: 128bit ICV (no document) 602492528c0SHajimu UMEMOTOhmac-ripemd160 160 ah: 96bit ICV (RFC2857) 603492528c0SHajimu UMEMOTO ah-old: 128bit ICV (no document) 604db540018SHajimu UMEMOTOaes-xcbc-mac 128 ah: 96bit ICV (RFC3566) 605db540018SHajimu UMEMOTO 128 ah-old: 128bit ICV (no document) 6061922fd12SBruce M Simpsontcp-md5 8 to 640 tcp: rfc2385 6079a4365d0SYoshinobu Inoue.Ed 6089a4365d0SYoshinobu Inoue.Pp 609fb170c44SGeorge V. Neville-NeilThe following is the list of encryption algorithms that can be used as the 6109a4365d0SYoshinobu Inoue.Ar ealgo 611fb170c44SGeorge V. Neville-Neilin the 6129a4365d0SYoshinobu Inoue.Fl E Ar ealgo 613fb170c44SGeorge V. Neville-Neilof the 6149a4365d0SYoshinobu Inoue.Ar protocol 6159a4365d0SYoshinobu Inoueparameter: 6169a4365d0SYoshinobu Inoue.Bd -literal -offset indent 6179a4365d0SYoshinobu Inouealgorithm keylen (bits) comment 6189a4365d0SYoshinobu Inouedes-cbc 64 esp-old: rfc1829, esp: rfc2405 6199a4365d0SYoshinobu Inoue3des-cbc 192 rfc2451 620cf43a054SHajimu UMEMOTOnull 0 to 2048 rfc2410 6219a4365d0SYoshinobu Inoueblowfish-cbc 40 to 448 rfc2451 6229a4365d0SYoshinobu Inouecast128-cbc 40 to 128 rfc2451 623cf43a054SHajimu UMEMOTOdes-deriv 64 ipsec-ciph-des-derived-01 624cf43a054SHajimu UMEMOTOrijndael-cbc 128/192/256 rfc3602 625db540018SHajimu UMEMOTOaes-ctr 160/224/288 draft-ietf-ipsec-ciph-aes-ctr-03 626987de844SGeorge V. Neville-Neilaes-gcm-16 160/224/288 rfc4106 627c14beb68SWarren Blockcamellia-cbc 128/192/256 rfc4312 6289a4365d0SYoshinobu Inoue.Ed 6299a4365d0SYoshinobu Inoue.Pp 6304c4090f5SPawel Jakub DawidekNote that the first 128/192/256 bits of a key for 631987de844SGeorge V. Neville-Neil.Li aes-ctr or aes-gcm-16 632b42ac57fSHajimu UMEMOTOwill be used as AES key, and remaining 32 bits will be used as nonce. 633b42ac57fSHajimu UMEMOTO.Pp 634fb170c44SGeorge V. Neville-NeilThe following are the list of compression algorithms that can be used 635fb170c44SGeorge V. Neville-Neilas the 6369a4365d0SYoshinobu Inoue.Ar calgo 637fb170c44SGeorge V. Neville-Neilin the 6389a4365d0SYoshinobu Inoue.Fl C Ar calgo 639fb170c44SGeorge V. Neville-Neilof the 6409a4365d0SYoshinobu Inoue.Ar protocol 6419a4365d0SYoshinobu Inoueparameter: 6429a4365d0SYoshinobu Inoue.Bd -literal -offset indent 6439a4365d0SYoshinobu Inouealgorithm comment 6449a4365d0SYoshinobu Inouedeflate rfc2394 6459a4365d0SYoshinobu Inoue.Ed 6469a4365d0SYoshinobu Inoue.\" 647a866e170SRuslan Ermilov.Sh EXIT STATUS 6486992e2a5SRuslan Ermilov.Ex -std 649cf43a054SHajimu UMEMOTO.\" 6509a4365d0SYoshinobu Inoue.Sh EXAMPLES 651fb170c44SGeorge V. Neville-NeilAdd an ESP SA between two IPv6 addresses using the 652fb170c44SGeorge V. Neville-Neildes-cbc encryption algorithm. 65346355096SJoel Dahl.Bd -literal -offset indent 6549a4365d0SYoshinobu Inoueadd 3ffe:501:4819::1 3ffe:501:481d::1 esp 123457 655cf43a054SHajimu UMEMOTO -E des-cbc 0x3ffe05014819ffff ; 656c14beb68SWarren Block.Pp 657fb170c44SGeorge V. Neville-Neil.Ed 658fb170c44SGeorge V. Neville-Neil.\" 659fb170c44SGeorge V. Neville-NeilAdd an authentication SA between two FQDN specified hosts: 66046355096SJoel Dahl.Bd -literal -offset indent 661cf43a054SHajimu UMEMOTOadd -6 myhost.example.com yourhost.example.com ah 123456 6629a4365d0SYoshinobu Inoue -A hmac-sha1 "AH SA configuration!" ; 663c14beb68SWarren Block.Pp 664fb170c44SGeorge V. Neville-Neil.Ed 665fb170c44SGeorge V. Neville-NeilUse both ESP and AH between two numerically specified hosts: 66646355096SJoel Dahl.Bd -literal -offset indent 6679a4365d0SYoshinobu Inoueadd 10.0.11.41 10.0.11.33 esp 0x10001 668cf43a054SHajimu UMEMOTO -E des-cbc 0x3ffe05014819ffff 6699a4365d0SYoshinobu Inoue -A hmac-md5 "authentication!!" ; 670c14beb68SWarren Block.Pp 671fb170c44SGeorge V. Neville-Neil.Ed 67216d1ba4fSMaxim KonovalovGet the SA information associated with first example above: 67346355096SJoel Dahl.Bd -literal -offset indent 6749a4365d0SYoshinobu Inoueget 3ffe:501:4819::1 3ffe:501:481d::1 ah 123456 ; 675c14beb68SWarren Block.Pp 676fb170c44SGeorge V. Neville-Neil.Ed 677fb170c44SGeorge V. Neville-NeilFlush all entries from the database: 67846355096SJoel Dahl.Bd -literal -offset indent 6799a4365d0SYoshinobu Inoueflush ; 680c14beb68SWarren Block.Pp 681fb170c44SGeorge V. Neville-Neil.Ed 682fb170c44SGeorge V. Neville-NeilDump the ESP entries from the database: 68346355096SJoel Dahl.Bd -literal -offset indent 6849a4365d0SYoshinobu Inouedump esp ; 685c14beb68SWarren Block.Pp 686fb170c44SGeorge V. Neville-Neil.Ed 687fb170c44SGeorge V. Neville-NeilAdd a security policy between two networks that uses ESP in tunnel mode: 68846355096SJoel Dahl.Bd -literal -offset indent 6899a4365d0SYoshinobu Inouespdadd 10.0.11.41/32[21] 10.0.11.33/32[any] any 6909a4365d0SYoshinobu Inoue -P out ipsec esp/tunnel/192.168.0.1-192.168.1.2/require ; 691c14beb68SWarren Block.Pp 692fb170c44SGeorge V. Neville-Neil.Ed 693fb170c44SGeorge V. Neville-NeilUse TCP MD5 between two numerically specified hosts: 69446355096SJoel Dahl.Bd -literal -offset indent 6951922fd12SBruce M Simpsonadd 10.1.10.34 10.1.10.36 tcp 0x1000 -A tcp-md5 "TCP-MD5 BGP secret" ; 6969a4365d0SYoshinobu Inoue.Ed 6979a4365d0SYoshinobu Inoue.\" 6989a4365d0SYoshinobu Inoue.Sh SEE ALSO 6999a4365d0SYoshinobu Inoue.Xr ipsec_set_policy 3 , 7005521ff5aSRuslan Ermilov.Xr racoon 8 , 7015521ff5aSRuslan Ermilov.Xr sysctl 8 702cf43a054SHajimu UMEMOTO.Rs 703cf43a054SHajimu UMEMOTO.%T "Changed manual key configuration for IPsec" 704aa4a335bSRuslan Ermilov.%U http://www.kame.net/newsletter/19991007/ 705cf43a054SHajimu UMEMOTO.%D "October 1999" 706cf43a054SHajimu UMEMOTO.Re 7079a4365d0SYoshinobu Inoue.\" 7089a4365d0SYoshinobu Inoue.Sh HISTORY 7099a4365d0SYoshinobu InoueThe 7109a4365d0SYoshinobu Inoue.Nm 7116992e2a5SRuslan Ermilovutility first appeared in WIDE Hydrangea IPv6 protocol stack kit. 7126992e2a5SRuslan ErmilovThe utility was completely re-designed in June 1998. 713032a05d5SSevan JaniyanIt first appeared in 714032a05d5SSevan Janiyan.Fx 4.0 . 7153c62e87aSJun-ichiro itojun Hagino.\" 716cf43a054SHajimu UMEMOTO.Sh BUGS 7176992e2a5SRuslan ErmilovThe 718cf43a054SHajimu UMEMOTO.Nm 7196992e2a5SRuslan Ermilovutility 720cf43a054SHajimu UMEMOTOshould report and handle syntax errors better. 721cf43a054SHajimu UMEMOTO.Pp 722cf43a054SHajimu UMEMOTOFor IPsec gateway configuration, 723cf43a054SHajimu UMEMOTO.Ar src_range 724cf43a054SHajimu UMEMOTOand 725cf43a054SHajimu UMEMOTO.Ar dst_range 726cf43a054SHajimu UMEMOTOwith TCP/UDP port number do not work, as the gateway does not reassemble 727cf43a054SHajimu UMEMOTOpackets 7286992e2a5SRuslan Ermilov(cannot inspect upper-layer headers). 729