@@ -286,7 +286,7 @@ in {
286286 On initiators this setting specifies whether an INITIAL_CONTACT notify is
287287 sent during IKE_AUTH if no existing connection is found with the remote
288288 peer (determined by the identities of the first authentication
289− round). Only if set to keep or replace will the client send a notify.
289+ round). Unless set to <literal>never</literal> the client will send a notify.
290290 '';
291291
292292 reauth_time = mkDurationParam "0s" ''
@@ -444,7 +444,12 @@ in {
444444 <literal>ike:</literal> prefix are configured any signature scheme
445445 constraint (without <literal>ike:</literal> prefix) will also apply to
446446 IKEv2 authentication, unless this is disabled in
447− <literal>strongswan.conf</literal>.
447+ <literal>strongswan.conf</literal>. To use RSASSA-PSS signatures use
448+ <literal>rsa/pss</literal> instead of <literal>pubkey</literal> or
449+ <literal>rsa</literal> as in e.g.
450+ <literal>ike:rsa/pss-sha256</literal>. If <literal>pubkey</literal> or
451+ <literal>rsa</literal> constraints are configured RSASSA-PSS signatures
452+ will only be used if enabled in <literal>strongswan.conf</literal>(5).
448453 </para></listitem>
449454 </itemizedlist>
450455 '';
@@ -585,7 +590,12 @@ in {
585590 <option>local</option> section's <option>auth</option> keyword for
586591 details), such key types and hash algorithms are also applied as
587592 constraints against IKEv2 signature authentication schemes used by the
588− remote side.
593+ remote side. To require RSASSA-PSS signatures use
594+ <literal>rsa/pss</literal> instead of <literal>pubkey</literal> or
595+ <literal>rsa</literal> as in e.g. <literal>rsa/pss-sha256</literal>. If
596+ <literal>pubkey</literal> or <literal>rsa</literal> constraints are
597+ configured RSASSA-PSS signatures will only be accepted if enabled in
598+ <literal>strongswan.conf</literal>(5).
589599 </para><para>
590600 To specify trust chain constraints for EAP-(T)TLS, append a colon to the
591601 EAP method, followed by the key type/size and hash algorithm as
@@ -872,27 +882,39 @@ in {
872882 '';
873883
874884 mark_in = mkStrParam "0/0x00000000" ''
875− Netfilter mark and mask for input traffic. On Linux Netfilter may
876− require marks on each packet to match an SA having that option set. This
877− allows Netfilter rules to select specific tunnels for incoming
878− traffic. The special value <literal>%unique</literal> sets a unique mark
879− on each CHILD_SA instance, beyond that the value
880− <literal>%unique-dir</literal> assigns a different unique mark for each
881− CHILD_SA direction (in/out).
885+ Netfilter mark and mask for input traffic. On Linux, Netfilter may
886+ require marks on each packet to match an SA/policy having that option
887+ set. This allows installing duplicate policies and enables Netfilter
888+ rules to select specific SAs/policies for incoming traffic. Note that
889+ inbound marks are only set on policies, by default, unless
890+ <option>mark_in_sa</option> is enabled. The special value
891+ <literal>%unique</literal> sets a unique mark on each CHILD_SA instance,
892+ beyond that the value <literal>%unique-dir</literal> assigns a different
893+ unique mark for each
882894 </para><para>
883895 An additional mask may be appended to the mark, separated by
884896 <literal>/</literal>. The default mask if omitted is
885897 <literal>0xffffffff</literal>.
886898 '';
887899
900+ mark_in_sa = mkYesNoParam no ''
901+ Whether to set <option>mark_in</option> on the inbound SA. By default,
902+ the inbound mark is only set on the inbound policy. The tuple destination
903+ address, protocol and SPI is unique and the mark is not required to find
904+ the correct SA, allowing to mark traffic after decryption instead (where
905+ more specific selectors may be used) to match different policies. Marking
906+ packets before decryption is still possible, even if no mark is set on
907+ the SA.
908+ '';
909+
888910 mark_out = mkStrParam "0/0x00000000" ''
889− Netfilter mark and mask for output traffic. On Linux Netfilter may
890− require marks on each packet to match a policy having that option
891− set. This allows Netfilter rules to select specific tunnels for outgoing
892− traffic. The special value <literal>%unique</literal> sets a unique mark
893− on each CHILD_SA instance, beyond that the value
894− <literal>%unique-dir</literal> assigns a different unique mark for each
895− CHILD_SA direction (in/out).
911+ Netfilter mark and mask for output traffic. On Linux, Netfilter may
912+ require marks on each packet to match a policy/SA having that option
913+ set. This allows installing duplicate policies and enables Netfilter
914+ rules to select specific policies/SAs for outgoing traffic. The special
915+ value <literal>%unique</literal> sets a unique mark on each CHILD_SA
916+ instance, beyond that the value <literal>%unique-dir</literal> assigns a
917+ different unique mark for each CHILD_SA direction (in/out).
896918 </para><para>
897919 An additional mask may be appended to the mark, separated by
898920 <literal>/</literal>. The default mask if omitted is