git.iko.soy/typeable/nixpkgs
on master help sign in
strongswan-swanctl: support strongswan-5.6.2 configuration options
commit592a89befc71867b22960da752b80ab4707ff586 authorBas van Dijk <v.dijk.bas@gmail.com> dateWed 28 Feb 2018, 11:04 (9 years ago) parent7c94804
3 files changed+37−5
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nix+1−1 nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nix+32−1 nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix+4−3
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nix+1−1
@@ -19,7 +19,7 @@ in {
1919 '';
2020
2121 cache_crls = mkYesNoParam no ''
22− Whether Certicate Revocation Lists (CRLs) fetched via HTTP or LDAP
22+ Whether Certificate Revocation Lists (CRLs) fetched via HTTP or LDAP
2323 should be saved under a unique file name derived from the public
2424 key of the Certification Authority (CA) to
2525 <literal>/etc/ipsec.d/crls</literal> (stroke) or
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nix+32−1
@@ -423,6 +423,12 @@ lib : with (import ./param-constructors.nix lib); {
423423 nodes. Set to 0 to disable.
424424 '';
425425
426+ ha.buflen = mkIntParam 2048 ''
427+ Buffer size for received HA messages. For IKEv1 the public DH factors are
428+ also transmitted so depending on the DH group the HA messages can get quite
429+ big (the default should be fine up to <literal>modp4096</literal>).
430+ '';
431+
426432 ha.fifo_interface = mkYesNoParam yes "";
427433
428434 ha.heartbeat_delay = mkIntParam 1000 "";
@@ -461,7 +467,7 @@ lib : with (import ./param-constructors.nix lib); {
461467 If the maximum Netlink socket receive buffer in bytes set by
462468 receive_buffer_size exceeds the system-wide maximum from
463469 <literal>/proc/sys/net/core/rmem_max</literal>, this option can be used to
464− override the limit. Enabling this option requires special priviliges
470+ override the limit. Enabling this option requires special privileges
465471 (CAP_NET_ADMIN).
466472 '';
467473
@@ -482,6 +488,12 @@ lib : with (import ./param-constructors.nix lib); {
482488 MTU to set on installed routes, 0 to disable.
483489 '';
484490
491+ kernel-netlink.process_rules = mkYesNoParam no ''
492+ Whether to process changes in routing rules to trigger roam events. This is
493+ currently only useful if the kernel based route lookup is used (i.e. if
494+ route installation is disabled or an inverted fwmark match is configured).
495+ '';
496+
485497 kernel-netlink.receive_buffer_size = mkIntParam 0 ''
486498 Maximum Netlink socket receive buffer in bytes. This value controls how many
487499 bytes of Netlink messages can be received on a Netlink socket. The default
@@ -845,6 +857,25 @@ lib : with (import ./param-constructors.nix lib); {
845857 Whether OCSP validation should be enabled.
846858 '';
847859
860+ save-keys.load = mkYesNoParam no ''
861+ Whether to load the plugin.
862+ '';
863+
864+ save-keys.esp = mkYesNoParam no ''
865+ Whether to save ESP keys.
866+ '';
867+
868+ save-keys.ike = mkYesNoParam no ''
869+ Whether to save IKE keys.
870+ '';
871+
872+ save-keys.wireshark_keys = mkOptionalStrParam ''
873+ Directory where the keys are stored in the format supported by Wireshark.
874+ IKEv1 keys are stored in the <literal>ikev1_decryption_table</literal> file.
875+ IKEv2 keys are stored in the <literal>ikev2_decryption_table</literal> file.
876+ Keys for ESP CHILD_SAs are stored in the <literal>esp_sa</literal> file.
877+ '';
878+
848879 socket-default.fwmark = mkOptionalStrParam ''
849880 Firewall mark to set on outbound packets (a possible use case are
850881 host-to-host tunnels with kernel-libipsec).
nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix+4−3
@@ -583,9 +583,10 @@ in {
583583 <literal>rsa-2048-ecdsa-256</literal>). To limit the acceptable set of
584584 hashing algorithms for trustchain validation, append hash algorithms to
585585 pubkey or a key strength definition (for example
586− <literal>pubkey-sha1-sha256</literal> or
587− <literal>rsa-2048-ecdsa-256-sha256-sha384-sha512</literal>). Unless
588− disabled in <literal>strongswan.conf</literal>, or explicit IKEv2
586+ <literal>pubkey-sha256-sha512</literal>,
587+ <literal>rsa-2048-sha256-sha384-sha512</literal> or
588+ <literal>rsa-2048-sha256-ecdsa-256-sha256-sha384</literal>).
589+ Unless disabled in <literal>strongswan.conf</literal>, or explicit IKEv2
589590 signature constraints are configured (refer to the description of the
590591 <option>local</option> section's <option>auth</option> keyword for
591592 details), such key types and hash algorithms are also applied as