Policy format is direction [priority specification] policy
discard means that packets will be dropped if they match the policy.entrust means to consult the SPD defined by setkey(8).bypass means to bypass the IPsec processing. (the packet will be transmitted in clear). This is for privileged sockets.ipsec means that the matching packets are subject to IPsec processing. ipsec can be followed by one or more request strings, which are formatted as below:Request format for IPSec is protocol / mode / src - dst [/ level].
ah, esp, or ipcomp.transport or tunnel.level must be set to one of the following: default, use, require, or unique.
You may need the identifier in order to relate the policy and the SA when you define the SA by manual keying. You can put the decimal number as the identifier after unique like unique: number. number must be between 1 and 32767 .
If the request string is kept unambiguous, level and slash prior to level can be omitted. However, it is encouraged to specify them explicitly to avoid unintended behavior. If level is omitted, it will be interpreted as default.