{"id":3211,"date":"2022-12-20T16:43:50","date_gmt":"2022-12-20T19:43:50","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ipxfrm-man8\/"},"modified":"2022-12-20T16:43:50","modified_gmt":"2022-12-20T19:43:50","slug":"ipxfrm-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ipxfrm-man8\/","title":{"rendered":"IP&minus;XFRM (man8)"},"content":{"rendered":"<h1 align=\"center\">IP\u2212XFRM<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ip-xfrm \u2212 transform configuration<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip<\/b> [ <i>OPTIONS<\/i> ] <b>xfrm<\/b> { <i>COMMAND<\/i> | <b>help<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm<\/b> <i>XFRM-OBJECT<\/i> { <i>COMMAND<\/i> | <b>help<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>XFRM-OBJECT<\/i> := <b>state<\/b> | <b>policy<\/b> | <b>monitor<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm state<\/b> { <b>add<\/b> | <b>update<\/b> } <i>ID<\/i> [ <i>ALGO-LIST<\/i> ] [ <b>mode<\/b> <i>MODE<\/i> ] [ <b>mark<\/b> <i>MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ] [ <b>reqid<\/b> <i>REQID<\/i> ] [ <b>seq<\/b> <i>SEQ<\/i> ] [ <b>replay-window<\/b> <i>SIZE<\/i> ] [ <b>replay-seq<\/b> <i>SEQ<\/i> ] [ <b>replay-oseq<\/b> <i>SEQ<\/i> ] [ <b>replay-seq-hi<\/b> <i>SEQ<\/i> ] [ <b>replay-oseq-hi<\/b> <i>SEQ<\/i> ] [ <b>flag<\/b> <i>FLAG-LIST<\/i> ] [ <b>sel<\/b> <i>SELECTOR<\/i> ] [ <i>LIMIT-LIST<\/i> ] [ <b>encap<\/b> <i>ENCAP<\/i> ] [ <b>coa<\/b> <i>ADDR<\/i>[\/<i>PLEN<\/i>] ] [ <b>ctx<\/b> <i>CTX<\/i> ] [ <b>extra-flag<\/b> <i>EXTRA-FLAG-LIST<\/i> ] [ <b>output-mark<\/b> <i>OUTPUT-MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ] [ <b>if_id<\/b> <i>IF-ID<\/i> ] [ <b>tfcpad<\/b> <i>LENGTH<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm state allocspi<\/b> <i>ID<\/i> [ <b>mode<\/b> <i>MODE<\/i> ] [ <b>mark<\/b> <i>MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ] [ <b>reqid<\/b> <i>REQID<\/i> ] [ <b>seq<\/b> <i>SEQ<\/i> ] [ <b>min<\/b> <i>SPI<\/i> <b>max<\/b> <i>SPI<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm state<\/b> { <b>delete<\/b> | <b>get<\/b> } <i>ID<\/i> [ <b>mark<\/b> <i>MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip<\/b> [ <b>-4<\/b> | <b>-6<\/b> ] <b>xfrm state deleteall<\/b> [ <i>ID<\/i> ] [ <b>mode<\/b> <i>MODE<\/i> ] [ <b>reqid<\/b> <i>REQID<\/i> ] [ <b>flag<\/b> <i>FLAG-LIST<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip<\/b> [ <b>-4<\/b> | <b>-6<\/b> ] <b>xfrm state list<\/b> [ <i>ID<\/i> ] [ <b>nokeys<\/b> ] [ <b>mode<\/b> <i>MODE<\/i> ] [ <b>reqid<\/b> <i>REQID<\/i> ] [ <b>flag<\/b> <i>FLAG-LIST<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm state flush<\/b> [ <b>proto<\/b> <i>XFRM-PROTO<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm state count<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ID<\/i> := [ <b>src<\/b> <i>ADDR<\/i> ] [ <b>dst<\/b> <i>ADDR<\/i> ] [ <b>proto<\/b> <i>XFRM-PROTO<\/i> ] [ <b>spi<\/b> <i>SPI<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>XFRM-PROTO<\/i> := <b>esp<\/b> | <b>ah<\/b> | <b>comp<\/b> | <b>route2<\/b> | <b>hao<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ALGO-LIST<\/i> := [ <i>ALGO-LIST<\/i> ] <i>ALGO<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ALGO<\/i> := { <b>enc<\/b> | <b>auth<\/b> } <i>ALGO-NAME ALGO-KEYMAT<\/i> | <b><br \/> auth-trunc<\/b> <i>ALGO-NAME ALGO-KEYMAT ALGO-TRUNC-LEN<\/i> | <b><br \/> aead<\/b> <i>ALGO-NAME ALGO-KEYMAT ALGO-ICV-LEN<\/i> | <b><br \/> comp<\/b> <i>ALGO-NAME<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>MODE<\/i> := <b>transport<\/b> | <b>tunnel<\/b> | <b>beet<\/b> | <b>ro<\/b> | <b>in_trigger<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>FLAG-LIST<\/i> := [ <i>FLAG-LIST<\/i> ] <i>FLAG<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>FLAG<\/i> := <b>noecn<\/b> | <b>decap-dscp<\/b> | <b>nopmtudisc<\/b> | <b>wildrecv<\/b> | <b>icmp<\/b> | <b>af-unspec<\/b> | <b>align4<\/b> | <b>esn<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>SELECTOR<\/i> := [ <b>src<\/b> <i>ADDR<\/i>[\/<i>PLEN<\/i>] ] [ <b>dst<\/b> <i>ADDR<\/i>[\/<i>PLEN<\/i>] ] [ <b>dev<\/b> <i>DEV<\/i> ] <br \/> [ <i>UPSPEC<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>UPSPEC<\/i> := <b>proto<\/b> { <i>PROTO<\/i> | <br \/> { <b>tcp<\/b> | <b>udp<\/b> | <b>sctp<\/b> | <b>dccp<\/b> } [ <b>sport<\/b> <i>PORT<\/i> ] [ <b>dport<\/b> <i>PORT<\/i> ] | <br \/> { <b>icmp<\/b> | <b>ipv6-icmp<\/b> | <b>mobility-header<\/b> } [ <b>type<\/b> <i>NUMBER<\/i> ] [ <b>code<\/b> <i>NUMBER<\/i> ] | <b><br \/> gre<\/b> [ <b>key<\/b> { <i>DOTTED-QUAD<\/i> | <i>NUMBER<\/i> } ] }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LIMIT-LIST<\/i> := [ <i>LIMIT-LIST<\/i> ] <b>limit<\/b> <i>LIMIT<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LIMIT<\/i> := { <b>time-soft<\/b> | <b>time-hard<\/b> | <b>time-use-soft<\/b> | <b>time-use-hard<\/b> } <i>SECONDS<\/i> | <br \/> { <b>byte-soft<\/b> | <b>byte-hard<\/b> } <i>SIZE<\/i> | <br \/> { <b>packet-soft<\/b> | <b>packet-hard<\/b> } <i>COUNT<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ENCAP<\/i> := { <b>espinudp<\/b> | <b>espinudp-nonike<\/b> | <b>espintcp<\/b> } <i>SPORT DPORT OADDR<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>EXTRA-FLAG-LIST<\/i> := [ <i>EXTRA-FLAG-LIST<\/i> ] <i>EXTRA-FLAG<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>EXTRA-FLAG<\/i> := <b>dont-encap-dscp<\/b> | <b>oseq-may-wrap<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm policy<\/b> { <b>add<\/b> | <b>update<\/b> } <i>SELECTOR<\/i> <b>dir<\/b> <i>DIR<\/i> [ <b>ctx<\/b> <i>CTX<\/i> ] [ <b>mark<\/b> <i>MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ] [ <b>index<\/b> <i>INDEX<\/i> ] [ <b>ptype<\/b> <i>PTYPE<\/i> ] [ <b>action<\/b> <i>ACTION<\/i> ] [ <b>priority<\/b> <i>PRIORITY<\/i> ] [ <b>flag<\/b> <i>FLAG-LIST<\/i> ] [ <b>if_id<\/b> <i>IF-ID<\/i> ] [ <i>LIMIT-LIST<\/i> ] [ <i>TMPL-LIST<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm policy<\/b> { <b>delete<\/b> | <b>get<\/b> } { <i>SELECTOR<\/i> | <b>index<\/b> <i>INDEX<\/i> } <b>dir<\/b> <i>DIR<\/i> [ <b>ctx<\/b> <i>CTX<\/i> ] [ <b>mark<\/b> <i>MARK<\/i> [ <b>mask<\/b> <i>MASK<\/i> ] ] [ <b>ptype<\/b> <i>PTYPE<\/i> ] [ <b>if_id<\/b> <i>IF-ID<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip<\/b> [ <b>-4<\/b> | <b>-6<\/b> ] <b>xfrm policy<\/b> { <b>deleteall<\/b> | <b>list<\/b> } [ <b>nosock<\/b> ] [ <i>SELECTOR<\/i> ] [ <b>dir<\/b> <i>DIR<\/i> ] [ <b>index<\/b> <i>INDEX<\/i> ] [ <b>ptype<\/b> <i>PTYPE<\/i> ] [ <b>action<\/b> <i>ACTION<\/i> ] [ <b>priority<\/b> <i>PRIORITY<\/i> ] [ <b>flag<\/b> <i>FLAG-LIST<\/i>]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm policy flush<\/b> [ <b>ptype<\/b> <i>PTYPE<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm policy count<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm policy set<\/b> [ <b>hthresh4<\/b> <i>LBITS RBITS<\/i> ] [ <b>hthresh6<\/b> <i>LBITS RBITS<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>SELECTOR<\/i> := [ <b>src<\/b> <i>ADDR<\/i>[\/<i>PLEN<\/i>] ] [ <b>dst<\/b> <i>ADDR<\/i>[\/<i>PLEN<\/i>] ] [ <b>dev<\/b> <i>DEV<\/i> ] [ <i>UPSPEC<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>UPSPEC<\/i> := <b>proto<\/b> { <i>PROTO<\/i> | <br \/> { <b>tcp<\/b> | <b>udp<\/b> | <b>sctp<\/b> | <b>dccp<\/b> } [ <b>sport<\/b> <i>PORT<\/i> ] [ <b>dport<\/b> <i>PORT<\/i> ] | <br \/> { <b>icmp<\/b> | <b>ipv6-icmp<\/b> | <b>mobility-header<\/b> } [ <b>type<\/b> <i>NUMBER<\/i> ] [ <b>code<\/b> <i>NUMBER<\/i> ] | <b><br \/> gre<\/b> [ <b>key<\/b> { <i>DOTTED-QUAD<\/i> | <i>NUMBER<\/i> } ] }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>DIR<\/i> := <b>in<\/b> | <b>out<\/b> | <b>fwd<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>PTYPE<\/i> := <b>main<\/b> | <b>sub<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ACTION<\/i> := <b>allow<\/b> | <b>block<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>FLAG-LIST<\/i> := [ <i>FLAG-LIST<\/i> ] <i>FLAG<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>FLAG<\/i> := <b>localok<\/b> | <b>icmp<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LIMIT-LIST<\/i> := [ <i>LIMIT-LIST<\/i> ] <b>limit<\/b> <i>LIMIT<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LIMIT<\/i> := { <b>time-soft<\/b> | <b>time-hard<\/b> | <b>time-use-soft<\/b> | <b>time-use-hard<\/b> } <i>SECONDS<\/i> | <br \/> { <b>byte-soft<\/b> | <b>byte-hard<\/b> } <i>SIZE<\/i> | <br \/> { <b>packet-soft<\/b> | <b>packet-hard<\/b> } <i>COUNT<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>TMPL-LIST<\/i> := [ <i>TMPL-LIST<\/i> ] <b>tmpl<\/b> <i>TMPL<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>TMPL<\/i> := <i>ID<\/i> [ <b>mode<\/b> <i>MODE<\/i> ] [ <b>reqid<\/b> <i>REQID<\/i> ] [ <b>level<\/b> <i>LEVEL<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>ID<\/i> := [ <b>src<\/b> <i>ADDR<\/i> ] [ <b>dst<\/b> <i>ADDR<\/i> ] [ <b>proto<\/b> <i>XFRM-PROTO<\/i> ] [ <b>spi<\/b> <i>SPI<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>XFRM-PROTO<\/i> := <b>esp<\/b> | <b>ah<\/b> | <b>comp<\/b> | <b>route2<\/b> | <b>hao<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>MODE<\/i> := <b>transport<\/b> | <b>tunnel<\/b> | <b>beet<\/b> | <b>ro<\/b> | <b>in_trigger<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LEVEL<\/i> := <b>required<\/b> | <b>use<\/b><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip xfrm monitor<\/b> [ <b>all-nsid<\/b> ] [ <b>nokeys<\/b> ] [ <b>all<\/b> <br \/> | <i>LISTofXFRM-OBJECTS<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>LISTofXFRM-OBJECTS<\/i> := [ <i>LISTofXFRM-OBJECTS<\/i> ] <i>XFRM-OBJECT<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>XFRM-OBJECT<\/i> := <b>acquire<\/b> | <b>expire<\/b> | <b>SA<\/b> | <b>policy<\/b> | <b>aevent<\/b> | <b>report<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">xfrm is an IP framework for transforming packets (such as encrypting their payloads). This framework is used to implement the IPsec protocol suite (with the <b>state<\/b> object operating on the Security Association Database, and the <b>policy<\/b> object operating on the Security Policy Database). It is also used for the IP Payload Compression Protocol and features of Mobile IPv6.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"31%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"54%\"> <\/td>\n<\/tr>\n<\/table>\n<p align=\"center\"><img decoding=\"async\" src=\"grohtml-1049631.png\" alt=\"Image grohtml-1049631.png\"><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><i>ID<\/i><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>is specified by a source address, destination address, transform protocol <i>XFRM-PROTO<\/i>, and\/or Security Parameter Index <i>SPI<\/i>. (For IP Payload Compression, the Compression Parameter Index or CPI is used for <i>SPI<\/i>.)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>XFRM-PROTO<\/i><\/p>\n<p style=\"margin-left:22%;\">specifies a transform protocol: IPsec Encapsulating Security Payload (<b>esp<\/b>), IPsec Authentication Header (<b>ah<\/b>), IP Payload Compression (<b>comp<\/b>), Mobile IPv6 Type 2 Routing Header (<b>route2<\/b>), or Mobile IPv6 Home Address Option (<b>hao<\/b>).<\/p>\n<p style=\"margin-left:11%;\"><i>ALGO-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">contains one or more algorithms to use. Each algorithm <i>ALGO<\/i> is specified by:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>the algorithm type: encryption (<b>enc<\/b>), authentication (<b>auth<\/b> or <b>auth-trunc<\/b>), authenticated encryption with associated data (<b>aead<\/b>), or compression (<b>comp<\/b>)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>the algorithm name <i>ALGO-NAME<\/i> (see below)<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>(for all except <b>comp<\/b>) the keying material <i>ALGO-KEYMAT<\/i>, which may include both a key and a salt or nonce value; refer to the corresponding RFC<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>(for <b>auth-trunc<\/b> only) the truncation length <i>ALGO-TRUNC-LEN<\/i> in bits<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>(for <b>aead<\/b> only) the Integrity Check Value length <i>ALGO-ICV-LEN<\/i> in bits<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Encryption algorithms include <b>ecb(cipher_null)<\/b>, <b>cbc(des)<\/b>, <b>cbc(des3_ede)<\/b>, <b>cbc(cast5)<\/b>, <b>cbc(blowfish)<\/b>, <b>cbc(aes)<\/b>, <b>cbc(serpent)<\/b>, <b>cbc(camellia)<\/b>, <b>cbc(twofish)<\/b>, and <b>rfc3686(ctr(aes))<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Authentication algorithms include <b>digest_null<\/b>, <b>hmac(md5)<\/b>, <b>hmac(sha1)<\/b>, <b>hmac(sha256)<\/b>, <b>hmac(sha384)<\/b>, <b>hmac(sha512)<\/b>, <b>hmac(rmd160)<\/b>, and <b>xcbc(aes)<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Authenticated encryption with associated data (AEAD) algorithms include <b>rfc4106(gcm(aes))<\/b>, <b>rfc4309(ccm(aes))<\/b>, and <b>rfc4543(gcm(aes))<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Compression algorithms include <b>deflate<\/b>, <b>lzs<\/b>, and <b>lzjh<\/b>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p style=\"margin-top: 1em\"><i>MODE<\/i><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">specifies a mode of operation for the transform protocol. IPsec and IP Payload Compression modes are <b>transport<\/b>, <b>tunnel<\/b>, and (for IPsec ESP only) Bound End-to-End Tunnel (<b>beet<\/b>). Mobile IPv6 modes are route optimization (<b>ro<\/b>) and inbound trigger (<b>in_trigger<\/b>).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>FLAG-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">contains one or more of the following optional flags: <b>noecn<\/b>, <b>decap-dscp<\/b>, <b>nopmtudisc<\/b>, <b>wildrecv<\/b>, <b>icmp<\/b>, <b>af-unspec<\/b>, <b>align4<\/b>, or <b>esn<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><i>SELECTOR<\/i><\/p>\n<p style=\"margin-left:22%;\">selects the traffic that will be controlled by the policy, based on the source address, the destination address, the network device, and\/or <i>UPSPEC<\/i>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>UPSPEC<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>selects traffic by protocol. For the <b>tcp<\/b>, <b>udp<\/b>, <b>sctp<\/b>, or <b>dccp<\/b> protocols, the source and destination port can optionally be specified. For the <b>icmp<\/b>, <b>ipv6-icmp<\/b>, or <b>mobility-header<\/b> protocols, the type and code numbers can optionally be specified. For the <b>gre<\/b> protocol, the key can optionally be specified as a dotted-quad or number. Other protocols can be selected by name or number <i>PROTO<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>LIMIT-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">sets limits in seconds, bytes, or numbers of packets.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>ENCAP<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>encapsulates packets with protocol <b>espinudp<\/b>, <b>espinudp-nonike<\/b>, or <b>espintcp<\/b>, using source port <i>SPORT<\/i>, destination port <i>DPORT<\/i> , and original address <i>OADDR<\/i>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>MARK<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>used to match xfrm policies and states<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>OUTPUT-MARK<\/i><\/p>\n<p style=\"margin-left:22%;\">used to set the output mark to influence the routing of the packets emitted by the state<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>IF-ID<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>xfrm interface identifier used to in both xfrm policies and states<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1049632.png\" alt=\"Image grohtml-1049632.png\"><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>nosock<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">filter (remove) all socket policies from the output.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>SELECTOR<\/i><\/p>\n<p style=\"margin-left:22%;\">selects the traffic that will be controlled by the policy, based on the source address, the destination address, the network device, and\/or <i>UPSPEC<\/i>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>UPSPEC<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>selects traffic by protocol. For the <b>tcp<\/b>, <b>udp<\/b>, <b>sctp<\/b>, or <b>dccp<\/b> protocols, the source and destination port can optionally be specified. For the <b>icmp<\/b>, <b>ipv6-icmp<\/b>, or <b>mobility-header<\/b> protocols, the type and code numbers can optionally be specified. For the <b>gre<\/b> protocol, the key can optionally be specified as a dotted-quad or number. Other protocols can be selected by name or number <i>PROTO<\/i>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>DIR<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>selects the policy direction as <b>in<\/b>, <b>out<\/b>, or <b>fwd<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>CTX<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>sets the security context.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>PTYPE<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>can be <b>main<\/b> (default) or <b>sub<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><i>ACTION<\/i><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>can be <b>allow<\/b> (default) or <b>block<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>PRIORITY<\/i><\/p>\n<p style=\"margin-left:22%;\">is a number that defaults to zero.<\/p>\n<p style=\"margin-left:11%;\"><i>FLAG-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">contains one or both of the following optional flags: <b>local<\/b> or <b>icmp<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><i>LIMIT-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">sets limits in seconds, bytes, or numbers of packets.<\/p>\n<p style=\"margin-left:11%;\"><i>TMPL-LIST<\/i><\/p>\n<p style=\"margin-left:22%;\">is a template list specified using <i>ID<\/i>, <i>MODE<\/i>, <i>REQID<\/i>, and\/or <i>LEVEL<\/i>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><i>ID<\/i><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>is specified by a source address, destination address, transform protocol <i>XFRM-PROTO<\/i>, and\/or Security Parameter Index <i>SPI<\/i>. (For IP Payload Compression, the Compression Parameter Index or CPI is used for <i>SPI<\/i>.)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><i>XFRM-PROTO<\/i><\/p>\n<p style=\"margin-left:22%;\">specifies a transform protocol: IPsec Encapsulating Security Payload (<b>esp<\/b>), IPsec Authentication Header (<b>ah<\/b>), IP Payload Compression (<b>comp<\/b>), Mobile IPv6 Type 2 Routing Header (<b>route2<\/b>), or Mobile IPv6 Home Address Option (<b>hao<\/b>).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>MODE<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>specifies a mode of operation for the transform protocol. IPsec and IP Payload Compression modes are <b>transport<\/b>, <b>tunnel<\/b>, and (for IPsec ESP only) Bound End-to-End Tunnel (<b>beet<\/b>). Mobile IPv6 modes are route optimization (<b>ro<\/b>) and inbound trigger (<b>in_trigger<\/b>).<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>LEVEL<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>can be <b>required<\/b> (default) or <b>use<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1049633.png\" alt=\"Image grohtml-1049633.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Use one or more -s options to display more details, including policy hash table information.<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1049634.png\" alt=\"Image grohtml-1049634.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Security policies whose address prefix lengths are greater than or equal policy hash table thresholds are hashed. Others are stored in the policy_inexact chained list.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p style=\"margin-top: 1em\"><i>LBITS<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">specifies the minimum local address prefix length of policies that are stored in the Security Policy Database hash table.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><i>RBITS<\/i><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>specifies the minimum remote address prefix length of policies that are stored in the Security Policy Database hash table.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1049635.png\" alt=\"Image grohtml-1049635.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The xfrm objects to monitor can be optionally specified.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>all-nsid<\/b> option is set, the program listens to all network namespaces that have a nsid assigned into the network namespace were the program is running. A prefix is displayed to show the network namespace where the message originates. Example:<\/p>\n<p style=\"margin-left:14%; margin-top: 1em\">[nsid 1]Flushed state proto 0<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Manpage revised by David Ward <david.ward@ll.mit.edu> <br \/> Manpage revised by Christophe Gouault <christophe.gouault@6wind.com> <br \/> Manpage revised by Nicolas Dichtel <nicolas.dichtel@6wind.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ip-xfrm \u2212 transform configuration <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,352,4],"class_list":["post-3211","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-ip-xfrm","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3211"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3211\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}