git.iko.soy/typeable/nixpkgs
on master help sign in
strongswan-swanctl: support strongswan-5.6.1 configuration options

I determined which options got changed by executing the following commands in the strongswan repository: git diff -U20 5.6.0..5.6.1 src/swanctl/swanctl.opt git diff -U20 5.6.0..5.6.1 conf

commit7cc5ee235482232c7c4137ba46ca2c8dba7f9618 authorBas van Dijk <v.dijk.bas@gmail.com> dateTue 28 Nov 2017, 00:51 (9 years ago) parentbd24b3a
4 files changed+88−23
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nix+4 nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nix+10 nixos/modules/services/networking/strongswan-swanctl/strongswan-params.nix+35−6 nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix+39−17
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nix+4
@@ -431,6 +431,10 @@ in {
431431 Priority of the routing table.
432432 '';
433433
434+ rsa_pss = mkYesNoParam no ''
435+ Whether to use RSA with PSS padding instead of PKCS#1 padding by default.
436+ '';
437+
434438 send_delay = mkIntParam 0 ''
435439 Delay in ms for sending packets, to simulate larger RTT.
436440 '';
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nix+10
@@ -214,6 +214,11 @@ lib : with (import ./param-constructors.nix lib); {
214214 virtual IP.
215215 '';
216216
217+ eap-radius.accounting_send_class = mkYesNoParam no ''
218+ If enabled, adds the Class attributes received in Access-Accept
219+ message to the RADIUS accounting messages.
220+ '';
221+
217222 eap-radius.class_group = mkYesNoParam no ''
218223 Use the class attribute sent in the Access-Accept message as group
219224 membership information, see EapRadius.
@@ -916,6 +921,11 @@ lib : with (import ./param-constructors.nix lib); {
916921 strptime(3) format used to parse threshold option.
917922 '';
918923
924+ systime-fix.timeout = mkDurationParam "0s" ''
925+ How long to wait for a valid system time if an interval is
926+ configured. 0 to recheck indefinitely.
927+ '';
928+
919929 tnc-ifmap.client_cert = mkOptionalStrParam ''
920930 Path to X.509 certificate file of IF-MAP client.
921931 '';
nixos/modules/services/networking/strongswan-swanctl/strongswan-params.nix+35−6
@@ -144,12 +144,6 @@ in {
144144 '';
145145 };
146146
147− pacman.database = mkOptionalStrParam ''
148− Database URI for the database that stores the package information. If it
149− contains a password, make sure to adjust the permissions of the config
150− file accordingly.
151− '';
152−
153147 pki.load = mkSpaceSepListParam [] ''
154148 Plugins to load in ipsec pki tool.
155149 '';
@@ -174,6 +168,41 @@ in {
174168 Plugins to load in ipsec scepclient tool.
175169 '';
176170
171+ sec-updater = {
172+ database = mkOptionalStrParam ''
173+ Global IMV policy database URI. If it contains a password, make
174+ sure to adjust the permissions of the config file accordingly.
175+ '';
176+
177+ swid_gen.command = mkStrParam "/usr/local/bin/swid_generator" ''
178+ SWID generator command to be executed.
179+ '';
180+
181+ swid_gen.tag_creator.name = mkStrParam "strongSwan Project" ''
182+ Name of the tagCreator entity.
183+ '';
184+
185+ swid_gen.tag_creator.regid = mkStrParam "strongswan.org" ''
186+ regid of the tagCreator entity.
187+ '';
188+
189+ tnc_manage_command = mkStrParam "/var/www/tnc/manage.py" ''
190+ strongTNC manage.py command used to import SWID tags.
191+ '';
192+
193+ tmp.deb_file = mkStrParam "/tmp/sec-updater.deb" ''
194+ Temporary storage for downloaded deb package file.
195+ '';
196+
197+ tmp.tag_file = mkStrParam "/tmp/sec-updater.tag" ''
198+ Temporary storage for generated SWID tags.
199+ '';
200+
201+ load = mkSpaceSepListParam [] ''
202+ Plugins to load in sec-updater tool.
203+ '';
204+ };
205+
177206 starter = {
178207 config_file = mkStrParam "\${sysconfdir}/ipsec.conf" ''
179208 Location of the ipsec.conf file.
nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix+39−17
@@ -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