git.iko.soy/typeable/nixpkgs
on master help sign in
strongswan-swanctl: actually removed the strongswan parameter files
commite9de38eb61e159e36ce4d905b02b8f4898ddae89 authorBas van Dijk <v.dijk.bas@gmail.com> dateMon 26 Mar 2018, 17:18 (9 years ago) parent85abad9
6 files changed+2−2273
nixos/modules/services/networking/strongswan-swanctl/module.nix+2−12 nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nix−572 nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nix−1111 nixos/modules/services/networking/strongswan-swanctl/strongswan-libimcv-params.nix−291 nixos/modules/services/networking/strongswan-swanctl/strongswan-loglevel-params.nix−29 nixos/modules/services/networking/strongswan-swanctl/strongswan-params.nix−258
nixos/modules/services/networking/strongswan-swanctl/module.nix+2−12
@@ -5,12 +5,7 @@ with (import ./param-lib.nix lib);
55
66let
77 cfg = config.services.strongswan-swanctl;
8−
9− # TODO: auto-generate these files using:
10− # https://github.com/strongswan/strongswan/tree/master/conf
11− # IDEA: extend the format-options.py script to output these Nix files.
12− #strongswanParams = import ./strongswan-params.nix lib;
13− swanctlParams = import ./swanctl-params.nix lib;
8+ swanctlParams = import ./swanctl-params.nix lib;
149in {
1510 options.services.strongswan-swanctl = {
1611 enable = mkEnableOption "strongswan-swanctl service";
@@ -32,11 +27,7 @@ in {
3227 '';
3328 };
3429
35− # The structured strongswan configuration is commented out for
36− # now in favour of the literal config above. We should first
37− # discus if we want to add the 600+ options by default.
38− #strongswan = paramsToOptions strongswanParams;
39− swanctl = paramsToOptions swanctlParams;
30+ swanctl = paramsToOptions swanctlParams;
4031 };
4132
4233 config = mkIf cfg.enable {
@@ -76,7 +67,6 @@ in {
7667 path = with pkgs; [ kmod iproute iptables utillinux ];
7768 environment.STRONGSWAN_CONF = pkgs.writeTextFile {
7869 name = "strongswan.conf";
79− #text = paramsToConf cfg.strongswan strongswanParams;
8070 text = cfg.strongswan.extraConfig;
8171 };
8272 restartTriggers = [ config.environment.etc."swanctl/swanctl.conf".source ];
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-params.nixdeleted−572
@@ -1,572 +0,0 @@
1−lib: with (import ./param-constructors.nix lib);
2−
3−let loglevelParams = import ./strongswan-loglevel-params.nix lib;
4−in {
5− accept_unencrypted_mainmode_messages = mkYesNoParam no ''
6− Accept unencrypted ID and HASH payloads in IKEv1 Main Mode. Some
7− implementations send the third Main Mode message unencrypted, probably
8− to find the PSKs for the specified ID for authentication. This is very
9− similar to Aggressive Mode, and has the same security implications: A
10− passive attacker can sniff the negotiated Identity, and start brute
11− forcing the PSK using the HASH payload. It is recommended to keep this
12− option to no, unless you know exactly what the implications are and
13− require compatibility to such devices (for example, some SonicWall
14− boxes).
15− '';
16−
17− block_threshold = mkIntParam 5 ''
18− Maximum number of half-open IKE_SAs for a single peer IP.
19− '';
20−
21− cache_crls = mkYesNoParam no ''
22− Whether Certificate Revocation Lists (CRLs) fetched via HTTP or LDAP
23− should be saved under a unique file name derived from the public
24− key of the Certification Authority (CA) to
25− <literal>/etc/ipsec.d/crls</literal> (stroke) or
26− <literal>/etc/swanctl/x509crl</literal> (vici), respectively.
27− '';
28−
29− cert_cache = mkYesNoParam yes ''
30− Whether relations in validated certificate chains should be cached in memory.
31− '';
32−
33− cisco_unity = mkYesNoParam no ''
34− Send Cisco Unity vendor ID payload (IKEv1 only), see unity plugin.
35− '';
36−
37− close_ike_on_child_failure = mkYesNoParam no ''
38− Close the IKE_SA if setup of the CHILD_SA along with IKE_AUTH failed.
39− '';
40−
41− cookie_threshold = mkIntParam 10 ''
42− Number of half-open IKE_SAs that activate the cookie mechanism.
43− '';
44−
45− crypto_test.bench = mkYesNoParam no ''
46− Benchmark crypto algorithms and order them by efficiency.
47− '';
48−
49− crypto_test.bench_size = mkIntParam 1024 ''
50− Buffer size used for crypto benchmark.
51− '';
52−
53− crypto_test.bench_time = mkIntParam 50 ''
54− Number of iterations to test each algorithm.
55− '';
56−
57− crypto_test.on_add = mkYesNoParam no ''
58− Test crypto algorithms during registration
59− (requires test vectors provided by the test-vectors plugin).
60− '';
61−
62− crypto_test.on_create = mkYesNoParam no ''
63− Test crypto algorithms on each crypto primitive instantiation.
64− '';
65−
66− crypto_test.required = mkYesNoParam no ''
67− Strictly require at least one test vector to enable an algorithm.
68− '';
69−
70− crypto_test.rng_true = mkYesNoParam no ''
71− Whether to test RNG with TRUE quality; requires a lot of entropy.
72− '';
73−
74− delete_rekeyed = mkYesNoParam no ''
75− Delete CHILD_SAs right after they got successfully rekeyed (IKEv1 only).
76− Reduces the number of stale CHILD_SAs in scenarios with a lot of rekeyings.
77− However, this might cause problems with implementations that continue
78− to use rekeyed SAs until they expire.
79− '';
80−
81− delete_rekeyed_delay = mkIntParam 5 ''
82− Delay in seconds until inbound IPsec SAs are deleted after rekeyings
83− (IKEv2 only).
84− </para><para>
85− To process delayed packets the inbound part of a CHILD_SA is kept
86− installed up to the configured number of seconds after it got replaced
87− during a rekeying. If set to 0 the CHILD_SA will be kept installed until
88− it expires (if no lifetime is set it will be destroyed immediately).
89− '';
90−
91− dh_exponent_ansi_x9_42 = mkYesNoParam yes ''
92− Use ANSI X9.42 DH exponent size or optimum size matched to
93− cryptographical strength.
94− '';
95−
96− dlopen_use_rtld_now = mkYesNoParam no ''
97− Use RTLD_NOW with dlopen() when loading plugins and IMV/IMCs to reveal
98− missing symbols immediately. Useful during development of custom plugins.
99− '';
100−
101− dns1 = mkOptionalStrParam ''
102− DNS server assigned to peer via configuration payload (CP), see attr plugin.
103− '';
104−
105− dns2 = mkOptionalStrParam ''
106− DNS server assigned to peer via configuration payload (CP).
107− '';
108−
109− dos_protection = mkYesNoParam yes ''
110− Enable Denial of Service protection using cookies and aggressiveness checks.
111− '';
112−
113− ecp_x_coordinate_only = mkYesNoParam yes ''
114− Compliance with the errata for RFC 4753.
115− '';
116−
117− filelog = mkAttrsOfParams ({
118− append = mkYesNoParam yes ''
119− If this option is enabled log entries are appended to the existing file.
120− '';
121−
122− flush_line = mkYesNoParam no ''
123− Enabling this option disables block buffering and enables line
124− buffering. That is, a flush to disk is enforced for each logged line.
125− '';
126−
127− ike_name = mkYesNoParam no ''
128− Prefix each log entry with the connection name and a unique numerical
129− identifier for each IKE_SA.
130− '';
131−
132− time_format = mkOptionalStrParam ''
133− Prefix each log entry with a timestamp. The option accepts a format string
134− as passed to strftime(3).
135− '';
136−
137− time_add_ms = mkYesNoParam no ''
138− Adds the milliseconds within the current second after the timestamp
139− (separated by a dot, so time_format should end with %S or %T)
140− '';
141− } // loglevelParams) ''Section to define file loggers, see LoggerConfiguration.'';
142−
143− flush_auth_cfg = mkYesNoParam no ''
144− If enabled objects used during authentication (certificates, identities
145− etc.) are released to free memory once an IKE_SA is
146− established. Enabling this might conflict with plugins that later need
147− access to e.g. the used certificates.
148− '';
149−
150− follow_redirects = mkYesNoParam yes ''
151− Whether to follow IKEv2 redirects (RFC 5685).
152− '';
153−
154− fragment_size = mkIntParam 1280 ''
155− Maximum size (complete IP datagram size in bytes) of a sent IKE fragment
156− when using proprietary IKEv1 or standardized IKEv2 fragmentation,
157− defaults to 1280 (use 0 for address family specific default values,
158− which uses a lower value for IPv4). If specified this limit is used for
159− both IPv4 and IPv6.
160− '';
161−
162− group = mkOptionalStrParam ''
163− Name of the group the daemon changes to after startup.
164− '';
165−
166− half_open_timeout = mkIntParam 30 ''
167− Timeout in seconds for connecting IKE_SAs, also see IKE_SA_INIT dropping.
168− '';
169−
170− hash_and_url = mkYesNoParam no ''
171− Enable hash and URL support.
172− '';
173−
174− host_resolver.max_threads = mkIntParam 3 ''
175− Maximum number of concurrent resolver threads (they are terminated if unused).
176− '';
177−
178− host_resolver.min_threads = mkIntParam 0 ''
179− Minimum number of resolver threads to keep around.
180− '';
181−
182− i_dont_care_about_security_and_use_aggressive_mode_psk = mkYesNoParam no ''
183− If enabled responders are allowed to use IKEv1 Aggressive Mode with
184− pre-shared keys, which is discouraged due to security concerns (offline
185− attacks on the openly transmitted hash of the PSK).
186− '';
187−
188− ignore_acquire_ts = mkYesNoParam no ''
189− If this is disabled the traffic selectors from the kernel's acquire
190− events, which are derived from the triggering packet, are prepended to
191− the traffic selectors from the configuration for IKEv2 connection. By
192− enabling this, such specific traffic selectors will be ignored and only
193− the ones in the config will be sent. This always happens for IKEv1
194− connections as the protocol only supports one set of traffic selectors
195− per CHILD_SA.
196− '';
197−
198− ignore_routing_tables = mkSpaceSepListParam [] ''
199− A space-separated list of routing tables to be excluded from route lookup.
200− '';
201−
202− ikesa_limit = mkIntParam 0 ''
203− Maximum number of IKE_SAs that can be established at the same time
204− before new connection attempts are blocked.
205− '';
206−
207− ikesa_table_segments = mkIntParam 1 ''
208− Number of exclusively locked segments in the hash table, see IKE_SA
209− lookup tuning.
210− '';
211−
212− ikesa_table_size = mkIntParam 1 ''
213− Size of the IKE_SA hash table, see IKE_SA lookup tuning.
214− '';
215−
216− inactivity_close_ike = mkYesNoParam no ''
217− Whether to close IKE_SA if the only CHILD_SA closed due to inactivity.
218− '';
219−
220− init_limit_half_open = mkIntParam 0 ''
221− Limit new connections based on the current number of half open IKE_SAs,
222− see IKE_SA_INIT dropping.
223− '';
224−
225− init_limit_job_load = mkIntParam 0 ''
226− Limit new connections based on the number of jobs currently queued for
227− processing, see IKE_SA_INIT dropping.
228− '';
229−
230− initiator_only = mkYesNoParam no ''
231− Causes charon daemon to ignore IKE initiation requests.
232− '';
233−
234− install_routes = mkYesNoParam yes ''
235− Install routes into a separate routing table for established IPsec
236− tunnels. If disabled a more efficient lookup for source and next-hop
237− addresses is used since 5.5.2.
238− '';
239−
240− install_virtual_ip = mkYesNoParam yes ''
241− Install virtual IP addresses.
242− '';
243−
244− install_virtual_ip_on = mkOptionalStrParam ''
245− The name of the interface on which virtual IP addresses should be
246− installed. If not specified the addresses will be installed on the
247− outbound interface.
248− '';
249−
250− integrity_test = mkYesNoParam no ''
251− Check daemon, libstrongswan and plugin integrity at startup.
252− '';
253−
254− interfaces_ignore = mkCommaSepListParam [] ''
255− List of network interfaces that should be ignored, if
256− <option>interfaces_use</option> is specified this option has no effect.
257− '';
258−
259− interfaces_use = mkCommaSepListParam [] ''
260− List of network interfaces that should be used by
261− charon. All other interfaces are ignored.
262− '';
263−
264− keep_alive = mkIntParam 20 ''
265− NAT keep alive interval in seconds.
266− '';
267−
268− leak_detective.detailed = mkYesNoParam yes ''
269− Includes source file names and line numbers in leak detective output.
270− '';
271−
272− leak_detective.usage_threshold = mkIntParam 10240 ''
273− Threshold in bytes for leaks to be reported (0 to report all).
274− '';
275−
276− leak_detective.usage_threshold_count = mkIntParam 0 ''
277− Threshold in number of allocations for leaks to be reported (0 to report
278− all).
279− '';
280−
281− load = mkSpaceSepListParam [] ''
282− Plugins to load in IKEv2 charon daemon, see PluginLoad.
283− '';
284−
285− load_modular = mkYesNoParam no ''
286− If enabled the list of plugins to load is determined by individual load
287− settings for each plugin, see PluginLoad.
288− '';
289−
290− make_before_break = mkYesNoParam no ''
291− Initiate IKEv2 reauthentication with a make-before-break instead of a
292− break-before-make scheme. Make-before-break uses overlapping IKE and
293− CHILD_SA during reauthentication by first recreating all new SAs before
294− deleting the old ones. This behavior can be beneficial to avoid
295− connectivity gaps during reauthentication, but requires support for
296− overlapping SAs by the peer. strongSwan can handle such overlapping SAs
297− since 5.3.0.
298− '';
299−
300− max_ikev1_exchanges = mkIntParam 3 ''
301− Maximum number of IKEv1 phase 2 exchanges per IKE_SA to keep state about
302− and track concurrently.
303− '';
304−
305− max_packet = mkIntParam 10000 ''
306− Maximum packet size accepted by charon.
307− '';
308−
309− multiple_authentication = mkYesNoParam yes ''
310− Enable multiple authentication exchanges (RFC 4739).
311− '';
312−
313− nbns1 = mkOptionalStrParam ''
314− WINS server assigned to peer via configuration payload (CP), see attr
315− plugin.
316− '';
317−
318− nbns2 = mkOptionalStrParam ''
319− WINS server assigned to peer via configuration payload (CP).
320− '';
321−
322− port = mkIntParam 500 ''
323− UDP port used locally. If set to 0 a random port will be allocated.
324− '';
325−
326− port_nat_t = mkIntParam 4500 ''
327− UDP port used locally in case of NAT-T. If set to 0 a random port will
328− be allocated. Has to be different from charon.port, otherwise a random
329− port will be allocated.
330− '';
331−
332− prefer_best_path = mkYesNoParam no ''
333− By default, charon keeps SAs on the routing path with addresses it
334− previously used if that path is still usable. By enabling this option,
335− it tries more aggressively to update SAs with MOBIKE on routing priority
336− changes using the cheapest path. This adds more noise, but allows to
337− dynamically adapt SAs to routing priority changes. This option has no
338− effect if MOBIKE is not supported or disabled.
339− '';
340−
341− prefer_configured_proposals = mkYesNoParam yes ''
342− Prefer locally configured proposals for IKE/IPsec over supplied ones as
343− responder (disabling this can avoid keying retries due to
344− INVALID_KE_PAYLOAD notifies).
345− '';
346−
347− prefer_temporary_addrs = mkYesNoParam no ''
348− By default public IPv6 addresses are preferred over temporary ones
349− (according to RFC 4941), to make connections more stable. Enable this
350− option to reverse this.
351− '';
352−
353− process_route = mkYesNoParam yes ''
354− Process RTM_NEWROUTE and RTM_DELROUTE events.
355− '';
356−
357− processor.priority_threads = {
358− critical = mkIntParam 0 ''
359− Threads reserved for CRITICAL priority class jobs.
360− '';
361−
362− high = mkIntParam 0 ''
363− Threads reserved for HIGH priority class jobs.
364− '';
365−
366− medium = mkIntParam 0 ''
367− Threads reserved for MEDIUM priority class jobs.
368− '';
369−
370− low = mkIntParam 0 ''
371− Threads reserved for LOW priority class jobs.
372− '';
373− };
374−
375− receive_delay = mkIntParam 0 ''
376− Delay in ms for receiving packets, to simulate larger RTT.
377− '';
378−
379− receive_delay_response = mkYesNoParam yes ''
380− Delay response messages.
381− '';
382−
383− receive_delay_request = mkYesNoParam yes ''
384− Delay request messages.
385− '';
386−
387− receive_delay_type = mkIntParam 0 ''
388− Specific IKEv2 message type to delay, 0 for any.
389− '';
390−
391− replay_window = mkIntParam 32 ''
392− Size of the AH/ESP replay window, in packets.
393− '';
394−
395− retransmit_base = mkFloatParam "1.8" ''
396− Base to use for calculating exponential back off, see Retransmission.
397− '';
398−
399− retransmit_jitter = mkIntParam 0 ''
400− Maximum jitter in percent to apply randomly to calculated retransmission
401− timeout (0 to disable).
402− '';
403−
404− retransmit_limit = mkIntParam 0 ''
405− Upper limit in seconds for calculated retransmission timeout (0 to
406− disable).
407− '';
408−
409− retransmit_timeout = mkFloatParam "4.0" ''
410− Timeout in seconds before sending first retransmit.
411− '';
412−
413− retransmit_tries = mkIntParam 5 ''
414− Number of times to retransmit a packet before giving up.
415− '';
416−
417− retry_initiate_interval = mkIntParam 0 ''
418− Interval in seconds to use when retrying to initiate an IKE_SA (e.g. if
419− DNS resolution failed), 0 to disable retries.
420− '';
421−
422− reuse_ikesa = mkYesNoParam yes ''
423− Initiate CHILD_SA within existing IKE_SAs (always enabled for IKEv1).
424− '';
425−
426− routing_table = mkIntParam 220 ''
427− Numerical routing table to install routes to.
428− '';
429−
430− routing_table_prio = mkIntParam 220 ''
431− Priority of the routing table.
432− '';
433−
434− rsa_pss = mkYesNoParam no ''
435− Whether to use RSA with PSS padding instead of PKCS#1 padding by default.
436− '';
437−
438− send_delay = mkIntParam 0 ''
439− Delay in ms for sending packets, to simulate larger RTT.
440− '';
441−
442− send_delay_request = mkYesNoParam yes ''
443− Delay request messages.
444− '';
445−
446− send_delay_response = mkYesNoParam yes ''
447− Delay response messages.
448− '';
449−
450− send_delay_type = mkIntParam 0 ''
451− Specific IKEv2 message type to delay, 0 for any.
452− '';
453−
454− send_vendor_id = mkYesNoParam no ''
455− Send strongSwan vendor ID payload.
456− '';
457−
458− signature_authentication = mkYesNoParam yes ''
459− Whether to enable Signature Authentication as per RFC 7427.
460− '';
461−
462− signature_authentication_constraints = mkYesNoParam yes ''
463− If enabled, signature schemes configured in rightauth, in addition to
464− getting used as constraints against signature schemes employed in the
465− certificate chain, are also used as constraints against the signature
466− scheme used by peers during IKEv2.
467− '';
468−
469− spi_min = mkHexParam "0xc0000000" ''
470− The lower limit for SPIs requested from the kernel for IPsec SAs. Should
471− not be set lower than 0x00000100 (256), as SPIs between 1 and 255 are
472− reserved by IANA.
473− '';
474−
475− spi_max = mkHexParam "0xcfffffff" ''
476− The upper limit for SPIs requested from the kernel for IPsec SAs.
477− '';
478−
479− start-scripts = mkAttrsOfParam (mkStrParam "" "") ''
480− Section containing a list of scripts (name = path) that are executed
481− when the daemon is started.
482− '';
483−
484− stop-scripts = mkAttrsOfParam (mkStrParam "" "") ''
485− Section containing a list of scripts (name = path) that are executed
486− when the daemon is terminated.
487− '';
488−
489− syslog = loglevelParams // {
490− identifier = mkOptionalStrParam ''
491− Identifier for use with openlog(3).
492− </para><para>
493− Global identifier used for an openlog(3) call, prepended to each log
494− message by syslog. If not configured, openlog(3) is not called, so
495− the value will depend on system defaults (often the program name).
496− '';
497−
498− ike_name = mkYesNoParam no ''
499− Prefix each log entry with the connection name and a unique numerical
500− identifier for each IKE_SA.
501− '';
502− };
503−
504− threads = mkIntParam 16 ''
505− Number of worker threads in charon. Several of these are reserved for
506− long running tasks in internal modules and plugins. Therefore, make sure
507− you don't set this value too low. The number of idle worker threads
508− listed in ipsec statusall might be used as indicator on the number of
509− reserved threads (JobPriority has more on this).
510− '';
511−
512− user = mkOptionalStrParam ''
513− Name of the user the daemon changes to after startup.
514− '';
515−
516− x509.enforce_critical = mkYesNoParam yes ''
517− Discard certificates with unsupported or unknown critical extensions.
518− '';
519−
520− plugins = import ./strongswan-charon-plugins-params.nix lib;
521−
522− imcv = {
523− assessment_result = mkYesNoParam yes ''
524− Whether IMVs send a standard IETF Assessment Result attribute.
525− '';
526−
527− database = mkOptionalStrParam ''
528− Global IMV policy database URI. If it contains a password, make sure to
529− adjust the permissions of the config file accordingly.
530− '';
531−
532− os_info.default_password_enabled = mkYesNoParam no ''
533− Manually set whether a default password is enabled.
534− '';
535−
536− os_info.name = mkOptionalStrParam ''
537− Manually set the name of the client OS (e.g. <literal>NixOS</literal>).
538− '';
539−
540− os_info.version = mkOptionalStrParam ''
541− Manually set the version of the client OS (e.g. <literal>17.09</literal>).
542− '';
543−
544− policy_script = mkStrParam "ipsec _imv_policy" ''
545− Script called for each TNC connection to generate IMV policies.
546− '';
547− };
548−
549− tls = {
550− cipher = mkSpaceSepListParam [] ''
551− List of TLS encryption ciphers.
552− '';
553−
554− key_exchange = mkSpaceSepListParam [] ''
555− List of TLS key exchange methods.
556− '';
557−
558− mac = mkSpaceSepListParam [] ''
559− List of TLS MAC algorithms.
560− '';
561−
562− suites = mkSpaceSepListParam [] ''
563− List of TLS cipher suites.
564− '';
565− };
566−
567− tnc = {
568− libtnccs.tnc_config = mkStrParam "/etc/tnc_config" ''
569− TNC IMC/IMV configuration file.
570− '';
571− };
572−}
nixos/modules/services/networking/strongswan-swanctl/strongswan-charon-plugins-params.nixdeleted−1111
@@ -1,1111 +0,0 @@
1−lib : with (import ./param-constructors.nix lib); {
2− addrblock.strict = mkYesNoParam yes ''
3− If enabled, a subject certificate without an RFC 3779 address block
4− extension is rejected if the issuer certificate has such an addrblock
5− extension. If disabled, subject certificates issued without addrblock
6− extension are accepted without any traffic selector checks and no policy
7− is enforced by the plugin.
8− '';
9−
10− android_log.loglevel = mkIntParam 1 ''
11− Loglevel for logging to Android specific logger.
12− '';
13−
14− attr = mkAttrsOfParam (mkCommaSepListParam [] "") ''
15− Section to specify arbitrary attributes that are assigned to a peer
16− via configuration payload, see attr plugin.
17− </para><para>
18− The attribute can be either
19− <literal>address</literal>,
20− <literal>netmask</literal>,
21− <literal>dns</literal>,
22− <literal>nbns</literal>,
23− <literal>dhcp</literal>,
24− <literal>subnet</literal>,
25− <literal>split-include</literal>,
26− <literal>split-exclude</literal>
27− or the numeric identifier of the attribute type. The assigned value can be
28− an IPv4/IPv6 address, a subnet in CIDR notation or an arbitrary value
29− depending on the attribute type. Since some attribute types accept multiple
30− values all values must be specified as a list.
31− '';
32−
33− attr-sql.crash_recovery = mkYesNoParam yes ''
34− Release all online leases during startup. Disable this to share the DB
35− between multiple VPN gateways.
36− '';
37−
38− attr-sql.database = mkOptionalStrParam ''
39− Database URI for attr-sql plugin used by charon. If it contains a
40− password, make sure to adjust the permissions of the config file
41− accordingly.
42− '';
43−
44− attr-sql.lease_history = mkYesNoParam yes ''
45− Enable logging of SQL IP pool leases.
46− '';
47−
48− bliss.use_bliss_b = mkYesNoParam yes ''
49− Use the enhanced BLISS-B key generation and signature algorithm.
50− '';
51−
52− bypass-lan.interfaces_ignore = mkCommaSepListParam [] ''
53− List of network interfaces for which connected subnets
54− should be ignored, if interfaces_use is specified this option has no
55− effect.
56− '';
57−
58− bypass-lan.interfaces_use = mkCommaSepListParam [] ''
59− List of network interfaces for which connected subnets
60− should be considered. All other interfaces are ignored.
61− '';
62−
63− certexpire.csv.cron = mkOptionalStrParam ''
64− Cron style string specifying CSV export times, see certexpire for
65− details.
66− '';
67−
68− certexpire.csv.empty_string = mkOptionalStrParam ''
69− String to use in empty intermediate CA fields.
70− '';
71−
72− certexpire.csv.fixed_fields = mkYesNoParam yes ''
73− Use a fixed intermediate CA field count.
74− '';
75−
76− certexpire.csv.force = mkYesNoParam yes ''
77− Force export of all trustchains we have a private key for.
78− '';
79−
80− certexpire.csv.format = mkStrParam "%d:%m:%Y" ''
81− strftime(3) format string to export expiration dates as.
82− '';
83−
84− certexpire.csv.local = mkOptionalStrParam ''
85− strftime(3) format string for the CSV file name to export local
86− certificates to.
87− '';
88−
89− certexpire.csv.remote = mkOptionalStrParam ''
90− strftime(3) format string for the CSV file name to export remote
91− certificates to.
92− '';
93−
94− certexpire.csv.separator = mkStrParam "," ''
95− CSV field separator.
96− '';
97−
98− coupling.file = mkOptionalStrParam ''
99− File to store coupling list to, see certcoupling plugin for details.
100− '';
101−
102− coupling.hash = mkStrParam "sha1" ''
103− Hashing algorithm to fingerprint coupled certificates.
104− '';
105−
106− coupling.max = mkIntParam 1 ''
107− Maximum number of coupling entries to create.
108− '';
109−
110− curl.redir = mkIntParam (-1) ''
111− Maximum number of redirects followed by the plugin, set to 0 to disable
112− following redirects, set to -1 for no limit.
113− '';
114−
115− dhcp.force_server_address = mkYesNoParam no ''
116− Always use the configured server address, see DHCP plugin for details.
117− '';
118−
119− dhcp.identity_lease = mkYesNoParam no ''
120− Derive user-defined MAC address from hash of IKEv2 identity.
121− '';
122−
123− dhcp.interface = mkOptionalStrParam ''
124− Interface name the plugin uses for address allocation. The default is to
125− bind to any and let the system decide which way to route the packets to
126− the DHCP server.
127− '';
128−
129− dhcp.server = mkStrParam "255.255.255.255" ''
130− DHCP server unicast or broadcast IP address.
131− '';
132−
133− dnscert.enable = mkYesNoParam no ''
134− Enable fetching of CERT RRs via DNS.
135− '';
136−
137− duplicheck.enable = mkYesNoParam yes ''
138− Enable duplicheck plugin (if loaded).
139− '';
140−
141− duplicheck.socket = mkStrParam "unix://\${piddir}/charon.dck" ''
142− Socket provided by the duplicheck plugin.
143− '';
144−
145− eap-aka.request_identity = mkYesNoParam yes "";
146−
147− eap-aka-3ggp2.seq_check = mkOptionalStrParam ''
148− Enable to activate sequence check of the AKA SQN values in order to trigger
149− resync cycles.
150− '';
151−
152− eap-dynamic.prefer_user = mkYesNoParam no ''
153− If enabled, the eap-dynamic plugin will prefer the order of the EAP
154− methods in an EAP-Nak message sent by a client over the one configured
155− locally.
156− '';
157−
158− eap-dynamic.preferred = mkCommaSepListParam [] ''
159− The preferred EAP method(s) to be used by the eap-dynamic plugin. If it is
160− not set, the first registered method will be used initially. The methods
161− are tried in the given order before trying the rest of the registered
162− methods.
163− '';
164−
165− eap-gtc.backend = mkStrParam "pam" ''
166− XAuth backend to be used for credential verification, see EAP-GTC.
167− '';
168−
169− eap-peap.fragment_size = mkIntParam 1024 ''
170− Maximum size of an EAP-PEAP packet.
171− '';
172−
173− eap-peap.max_message_count = mkIntParam 32 ''
174− Maximum number of processed EAP-PEAP packets.
175− '';
176−
177− eap-peap.include_length = mkYesNoParam no ''
178− Include length in non-fragmented EAP-PEAP packets.
179− '';
180−
181− eap-peap.phase2_method = mkStrParam "mschapv2" ''
182− Phase2 EAP client authentication method.
183− '';
184−
185− eap-peap.phase2_piggyback = mkYesNoParam no ''
186− Phase2 EAP Identity request piggybacked by server onto TLS Finished
187− message.
188− '';
189−
190− eap-peap.phase2_tnc = mkYesNoParam no ''
191− Start phase2 EAP-TNC protocol after successful client authentication.
192− '';
193−
194− eap-peap.request_peer_auth = mkYesNoParam no ''
195− Request peer authentication based on a client certificate.
196− '';
197−
198− eap-radius.accounting = mkYesNoParam no ''
199− Enable EAP-RADIUS accounting.
200− '';
201−
202− eap-radius.accounting_close_on_timeout = mkYesNoParam yes ''
203− Close the IKE_SA if there is a timeout during interim RADIUS accounting
204− updates.
205− '';
206−
207− eap-radius.accounting_interval = mkIntParam 0 ''
208− Interval in seconds for interim RADIUS accounting updates, if not
209− specified by the RADIUS server in the Access-Accept message.
210− '';
211−
212− eap-radius.accounting_requires_vip = mkYesNoParam no ''
213− If enabled, accounting is disabled unless an IKE_SA has at least one
214− virtual IP.
215− '';
216−
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−
222− eap-radius.class_group = mkYesNoParam no ''
223− Use the class attribute sent in the Access-Accept message as group
224− membership information, see EapRadius.
225− '';
226−
227− eap-radius.close_all_on_timeout = mkYesNoParam no ''
228− Closes all IKE_SAs if communication with the RADIUS server times out. If
229− it is not set only the current IKE_SA is closed.
230− '';
231−
232− eap-radius.dae.enable = mkYesNoParam no ''
233− Enables support for the Dynamic Authorization Extension (RFC 5176).
234− '';
235−
236− eap-radius.dae.listen = mkStrParam "0.0.0.0" ''
237− Address to listen for DAE messages from the RADIUS server.
238− '';
239−
240− eap-radius.dae.port = mkIntParam 3799 ''
241− Port to listen for DAE requests.
242− '';
243−
244− eap-radius.dae.secret = mkOptionalStrParam ''
245− Shared secret used to verify/sign DAE messages.If set, make sure to
246− adjust the permissions of the config file accordingly.
247− '';
248−
249− eap-radius.eap_start = mkYesNoParam no ''
250− Send EAP-Start instead of EAP-Identity to start RADIUS conversation.
251− '';
252−
253− eap-radius.filter_id = mkYesNoParam no ''
254− Use the filter_id attribute sent in the RADIUS-Accept message as group
255− membership if the RADIUS tunnel_type attribute is set to ESP.
256− '';
257−
258− eap-radius.forward.ike_to_radius = mkOptionalStrParam ''
259− RADIUS attributes to be forwarded from IKEv2 to RADIUS (can be defined
260− by name or attribute number, a colon can be used to specify
261− vendor-specific attributes, e.g. Reply-Message, or 11, or 36906:12).
262− '';
263−
264− eap-radius.forward.radius_to_ike = mkOptionalStrParam ''
265− Same as above but from RADIUS to IKEv2, a strongSwan specific private
266− notify (40969) is used to transmit the attributes.
267− '';
268−
269− eap-radius.id_prefix = mkOptionalStrParam ''
270− Prefix to EAP-Identity, some AAA servers use a IMSI prefix to select the
271− EAP method.
272− '';
273−
274− eap-radius.nas_identifier = mkStrParam "strongSwan" ''
275− NAS-Identifier to include in RADIUS messages.
276− '';
277−
278− eap-radius.port = mkIntParam 1812 ''
279− Port of RADIUS server (authentication).
280− '';
281−
282− eap-radius.retransmit_base = mkFloatParam "1.4" ''
283− Base to use for calculating exponential back off.
284− '';
285−
286− eap-radius.retransmit_timeout = mkFloatParam "2.0" ''
287− Timeout in seconds before sending first retransmit.
288− '';
289−
290− eap-radius.retransmit_tries = mkIntParam 4 ''
291− Number of times to retransmit a packet before giving up.
292− '';
293−
294− eap-radius.secret = mkOptionalStrParam ''
295− Shared secret between RADIUS and NAS. If set, make sure to adjust the
296− permissions of the config file accordingly.
297− '';
298−
299− eap-radius.server = mkOptionalStrParam ''
300− IP/Hostname of RADIUS server.
301− '';
302−
303− eap-radius.servers = mkAttrsOfParams {
304− nas_identifier = mkStrParam "strongSwan" ''
305− The nas_identifer (default: strongSwan) identifies the gateway against the
306− RADIUS server and allows it to enforce a policy, for example.
307− '';
308−
309− secret = mkOptionalStrParam "";
310−
311− sockets = mkIntParam 1 ''
312− The number of pre-allocated sockets to use. A value of 5 allows the
313− gateway to authentication 5 clients simultaneously over RADIUS.
314− '';
315−
316− auth_port = mkIntParam 1812 ''
317− RADIUS UDP port
318− '';
319−
320− address = mkOptionalStrParam ''
321− The server's IP/Hostname.
322− '';
323−
324− acct_port = mkIntParam 1813 ''
325− Accounting port.
326− '';
327−
328− preference = mkIntParam 0 ''
329− With the preference paramter of a server, priorities for specific servers
330− can be defined. This allows to use a secondary RADIUS server only if the
331− first gets unresponsive, or if it is overloaded.
332− '';
333− } ''Section to specify multiple RADIUS servers, see EapRadius.'';
334−
335− eap-radius.sockets = mkIntParam 1 ''
336− Number of sockets (ports) to use, increase for high load.
337− '';
338−
339− eap-radius.xauth = mkAttrsOfParams {
340− nextpin = mkOptionalStrParam "";
341− password = mkOptionalStrParam "";
342− passcode = mkOptionalStrParam "";
343− answer = mkOptionalStrParam "";
344− } ''
345− Section to configure multiple XAuth authentication rounds via RADIUS.
346− '';
347−
348− eap-sim.request_identity = mkYesNoParam yes "";
349−
350− eap-simaka-sql.database = mkOptionalStrParam "";
351−
352− eap-simaka-sql.remove_used = mkOptionalStrParam "";
353−
354− eap-tls.fragment_size = mkIntParam 1024 ''
355− Maximum size of an EAP-TLS packet.
356− '';
357−
358− eap-tls.include_length = mkYesNoParam yes ''
359− Include length in non-fragmented EAP-TLS packets.
360− '';
361−
362− eap-tls.max_message_count = mkIntParam 32 ''
363− Maximum number of processed EAP-TLS packets (0 = no limit).
364− '';
365−
366− eap-tnc.max_message_count = mkIntParam 10 ''
367− Maximum number of processed EAP-TNC packets (0 = no limit).
368− '';
369−
370− eap-tnc.protocol = mkStrParam "tnccs-2.0" ''
371− IF-TNCCS protocol version to be used (tnccs-1.1, tnccs-2.0,
372− tnccs-dynamic).
373− '';
374−
375− eap-ttls.fragment_size = mkIntParam 1024 ''
376− Maximum size of an EAP-TTLS packet.
377− '';
378−
379− eap-ttls.include_length = mkYesNoParam yes ''
380− Include length in non-fragmented EAP-TTLS packets.
381− '';
382−
383− eap-ttls.max_message_count = mkIntParam 32 ''
384− Maximum number of processed EAP-TTLS packets (0 = no limit).
385− '';
386−
387− eap-ttls.phase2_method = mkStrParam "md5" ''
388− Phase2 EAP client authentication method.
389− '';
390−
391− eap-ttls.phase2_piggyback = mkYesNoParam no ''
392− Phase2 EAP Identity request piggybacked by server onto TLS Finished
393− message.
394− '';
395−
396− eap-ttls.phase2_tnc = mkYesNoParam no ''
397− Start phase2 EAP TNC protocol after successful client authentication.
398− '';
399−
400− eap-ttls-phase2_tnc_method = mkEnumParam ["pt" "legacy"] "pt" ''
401− Phase2 EAP TNC transport protocol (pt as IETF standard or legacy tnc)
402− '';
403−
404− eap-ttls.request_peer_auth = mkYesNoParam no ''
405− Request peer authentication based on a client certificate.
406− '';
407−
408− error-notify.socket = mkStrParam "unix://\${piddir}/charon.enfy" ''
409− Socket provided by the error-notify plugin.
410− '';
411−
412− ext-auth.script = mkOptionalStrParam ''
413− Shell script to invoke for peer authorization (see ext-auth).
414− '';
415−
416− gcrypt.quick_random = mkYesNoParam no ''
417− Use faster random numbers in gcrypt. For testing only, produces weak
418− keys!
419− '';
420−
421− ha.autobalance = mkIntParam 0 ''
422− Interval in seconds to automatically balance handled segments between
423− nodes. Set to 0 to disable.
424− '';
425−
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−
432− ha.fifo_interface = mkYesNoParam yes "";
433−
434− ha.heartbeat_delay = mkIntParam 1000 "";
435−
436− ha.heartbeat_timeout = mkIntParam 2100 "";
437−
438− ha.local = mkOptionalIntParam "";
439−
440− ha.monitor = mkYesNoParam yes "";
441−
442− ha.pools = mkOptionalStrParam "";
443−
444− ha.remote = mkOptionalStrParam "";
445−
446− ha.resync = mkYesNoParam yes "";
447−
448− ha.secret = mkOptionalStrParam "";
449−
450− ha.segment_count = mkIntParam 1 "";
451−
452− ipseckey.enable = mkYesNoParam no ''
453− Enable fetching of IPSECKEY RRs via DNS.
454− '';
455−
456− kernel-libipsec.allow_peer_ts = mkYesNoParam no ''
457− Allow that the remote traffic selector equals the IKE peer (see
458− kernel-libipsec for details).
459− '';
460−
461− kernel-netlink.buflen = mkOptionalIntParam ''
462− Buffer size for received Netlink messages. Defaults to
463− <literal>min(PAGE_SIZE, 8192)</literal>.
464− '';
465−
466− kernel-netlink.force_receive_buffer_size = mkYesNoParam no ''
467− If the maximum Netlink socket receive buffer in bytes set by
468− receive_buffer_size exceeds the system-wide maximum from
469− <literal>/proc/sys/net/core/rmem_max</literal>, this option can be used to
470− override the limit. Enabling this option requires special privileges
471− (CAP_NET_ADMIN).
472− '';
473−
474− kernel-netlink.fwmark = mkOptionalStrParam ''
475− Firewall mark to set on the routing rule that directs traffic to our own
476− routing table. The format is <literal>[!]mark[/mask]</literal>, where the
477− optional exclamation mark inverts the meaning (i.e. the rule only applies to
478− packets that don't match the mark). A possible use case are host-to-host
479− tunnels with kernel-libipsec. When set to !&#60;mark&#62; a more efficient
480− lookup for source and next-hop addresses may also be used since 5.3.3.
481− '';
482−
483− kernel-netlink.mss = mkIntParam 0 ''
484− MSS to set on installed routes, 0 to disable.
485− '';
486−
487− kernel-netlink.mtu = mkIntParam 0 ''
488− MTU to set on installed routes, 0 to disable.
489− '';
490−
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−
497− kernel-netlink.receive_buffer_size = mkIntParam 0 ''
498− Maximum Netlink socket receive buffer in bytes. This value controls how many
499− bytes of Netlink messages can be received on a Netlink socket. The default
500− value is set by <literal>/proc/sys/net/core/rmem_default</literal>. The
501− specified value cannot exceed the system-wide maximum from
502− <literal>/proc/sys/net/core/rmem_max</literal>, unless
503− <option>force_receive_buffer_size</option> is enabled.
504− '';
505−
506− kernel-netlink.roam_events = mkYesNoParam yes ''
507− Whether to trigger roam events when interfaces, addresses or routes
508− change.
509− '';
510−
511− kernel-netlink.set_proto_port_transport_sa = mkYesNoParam no ''
512− Whether to set protocol and ports in the selector installed on transport
513− mode IPsec SAs in the kernel. While doing so enforces policies for
514− inbound traffic, it also prevents the use of a single IPsec SA by more
515− than one traffic selector.
516− '';
517−
518− kernel-netlink.spdh_thresh.ipv4.lbits = mkIntParam 32 ''
519− Local subnet XFRM policy hashing threshold for IPv4.
520− '';
521−
522− kernel-netlink.spdh_thresh.ipv4.rbits = mkIntParam 32 ''
523− Remote subnet XFRM policy hashing threshold for IPv4.
524− '';
525−
526− kernel-netlink.spdh_thresh.ipv6.lbits = mkIntParam 128 ''
527− Local subnet XFRM policy hashing threshold for IPv6.
528− '';
529−
530− kernel-netlink.spdh_thresh.ipv6.rbits = mkIntParam 128 ''
531− Remote subnet XFRM policy hashing threshold for IPv6.
532− '';
533−
534− kernel-netlink.xfrm_acq_expires = mkIntParam 165 ''
535− Lifetime of XFRM acquire state created by the kernel when traffic matches a
536− trap policy. The value gets written to
537− <literal>/proc/sys/net/core/xfrm_acq_expires</literal>. Indirectly controls
538− the delay between XFRM acquire messages triggered by the kernel for a trap
539− policy. The same value is used as timeout for SPIs allocated by the
540− kernel. The default value equals the default total retransmission timeout
541− for IKE messages (since 5.5.3 this value is determined dynamically based on
542− the configuration).
543− '';
544−
545− kernel-pfkey.events_buffer_size = mkIntParam 0 ''
546− Size of the receive buffer for the event socket (0 for default
547− size). Because events are received asynchronously installing e.g. lots
548− of policies may require a larger buffer than the default on certain
549− platforms in order to receive all messages.
550− '';
551−
552− kernel-pfroute.vip_wait = mkIntParam 1000 ''
553− Time in ms to wait until virtual IP addresses appear/disappear before
554− failing.
555− '';
556−
557− led.activity_led = mkOptionalStrParam "";
558−
559− led.blink_time = mkIntParam 50 "";
560−
561− load-tester = {
562− addrs = mkAttrsOfParam (mkOptionalStrParam "") ''
563− Section that contains key/value pairs with address pools (in CIDR
564− notation) to use for a specific network interface e.g.
565− <literal>eth0 = 10.10.0.0/16</literal>.
566− '';
567−
568− addrs_keep = mkYesNoParam no ''
569− Whether to keep dynamic addresses even after the associated SA got
570− terminated.
571− '';
572−
573− addrs_prefix = mkIntParam 16 ''
574− Network prefix length to use when installing dynamic addresses.
575− If set to -1 the full address is used (i.e. 32 or 128).
576− '';
577−
578− ca_dir = mkOptionalStrParam ''
579− Directory to load (intermediate) CA certificates from.
580− '';
581−
582− child_rekey = mkIntParam 600 ''
583− Seconds to start CHILD_SA rekeying after setup.
584− '';
585−
586− crl = mkOptionalStrParam ''
587− URI to a CRL to include as certificate distribution point in generated
588− certificates.
589− '';
590−
591− delay = mkIntParam 0 ''
592− Delay between initiatons for each thread.
593− '';
594−
595− delete_after_established = mkYesNoParam no ''
596− Delete an IKE_SA as soon as it has been established.
597− '';
598−
599− digest = mkStrParam "sha1" ''
600− Digest algorithm used when issuing certificates.
601− '';
602−
603− dpd_delay = mkIntParam 0 ''
604− DPD delay to use in load test.
605− '';
606−
607− dynamic_port = mkIntParam 0 ''
608− Base port to be used for requests (each client uses a different port).
609− '';
610−
611− eap_password = mkStrParam "default-pwd" ''
612− EAP secret to use in load test.
613− '';
614−
615− enable = mkYesNoParam no ''
616− Enable the load testing plugin. **WARNING**: Never enable this plugin on
617− productive systems. It provides preconfigured credentials and allows an
618− attacker to authenticate as any user.
619− '';
620−
621− esp = mkStrParam "aes128-sha1" ''
622− CHILD_SA proposal to use for load tests.
623− '';
624−
625− fake_kernel = mkYesNoParam no ''
626− Fake the kernel interface to allow load-testing against self.
627− '';
628−
629− ike_rekey = mkIntParam 0 ''
630− Seconds to start IKE_SA rekeying after setup.
631− '';
632−
633− init_limit = mkIntParam 0 ''
634− Global limit of concurrently established SAs during load test.
635− '';
636−
637− initiator = mkStrParam "0.0.0.0" ''
638− Address to initiate from.
639− '';
640−
641− initiators = mkIntParam 0 ''
642− Number of concurrent initiator threads to use in load test.
643− '';
644−
645− initiator_auth = mkStrParam "pubkey" ''
646− Authentication method(s) the intiator uses.
647− '';
648−
649− initiator_id = mkOptionalStrParam ''
650− Initiator ID used in load test.
651− '';
652−
653− initiator_match = mkOptionalStrParam ''
654− Initiator ID to match against as responder.
655− '';
656−
657− initiator_tsi = mkOptionalStrParam ''
658− Traffic selector on initiator side, as proposed by initiator.
659− '';
660−
661− initiator_tsr = mkOptionalStrParam ''
662− Traffic selector on responder side, as proposed by initiator.
663− '';
664−
665− iterations = mkIntParam 1 ''
666− Number of IKE_SAs to initiate by each initiator in load test.
667− '';
668−
669− issuer_cert = mkOptionalStrParam ''
670− Path to the issuer certificate (if not configured a hard-coded default
671− value is used).
672− '';
673−
674− issuer_key = mkOptionalStrParam ''
675− Path to private key that is used to issue certificates (if not configured
676− a hard-coded default value is used).
677− '';
678−
679− mode = mkEnumParam ["tunnel" "transport" "beet"] "tunnel" ''
680− IPsec mode to use.
681− '';
682−
683− pool = mkOptionalStrParam ''
684− Provide INTERNAL_IPV4_ADDRs from a named pool.
685− '';
686−
687− preshared_key = mkStrParam "<default-psk>" ''
688− Preshared key to use in load test.
689− '';
690−
691− proposal = mkStrParam "aes128-sha1-modp768" ''
692− IKE proposal to use in load test.
693− '';
694−
695− responder = mkStrParam "127.0.0.1" ''
696− Address to initiation connections to.
697− '';
698−
699− responder_auth = mkStrParam "pubkey" ''
700− Authentication method(s) the responder uses.
701− '';
702−
703− responder_id = mkOptionalStrParam ''
704− Responder ID used in load test.
705− '';
706−
707− responder_tsi = mkStrParam "initiator_tsi" ''
708− Traffic selector on initiator side, as narrowed by responder.
709− '';
710−
711− responder_tsr = mkStrParam "initiator_tsr" ''
712− Traffic selector on responder side, as narrowed by responder.
713− '';
714−
715− request_virtual_ip = mkYesNoParam no ''
716− Request an INTERNAL_IPV4_ADDR from the server.
717− '';
718−
719− shutdown_when_complete = mkYesNoParam no ''
720− Shutdown the daemon after all IKE_SAs have been established.
721− '';
722−
723− socket = mkStrParam "unix://\\\${piddir}/charon.ldt" ''
724− Socket provided by the load-tester plugin.
725− '';
726−
727− version = mkIntParam 0 ''
728− IKE version to use (0 means use IKEv2 as initiator and accept any version
729− as responder).
730− '';
731− };
732−
733− lookip.socket = mkStrParam "unix://\\\${piddir}/charon.lkp" ''
734− Socket provided by the lookip plugin.
735− '';
736−
737− ntru.max_drbg_requests = mkIntParam 4294967294 ''
738− Number of pseudo-random bit requests from the DRBG before an automatic
739− reseeding occurs.
740− '';
741−
742− ntru.parameter_set =
743− mkEnumParam ["x9_98_speed" "x9_98_bandwidth" "x9_98_balance" "optimum"] "optimum" ''
744− The following parameter sets are available:
745− <literal>x9_98_speed</literal>, <literal>x9_98_bandwidth</literal>,
746− <literal>x9_98_balance</literal> and <literal>optimum</literal>, the last
747− set not being part of the X9.98 standard but having the best performance.
748− '';
749−
750− openssl.engine_id = mkStrParam "pkcs11" ''
751− ENGINE ID to use in the OpenSSL plugin.
752− '';
753−
754− openssl.fips_mode = mkIntParam 0 ''
755− Set OpenSSL FIPS mode:
756− <itemizedlist>
757− <listitem><para>disabled (0),</para></listitem>
758− <listitem><para>enabled (1),</para></listitem>
759− <listitem><para>Suite B enabled (2).</para></listitem>
760− </itemizedlist>
761− Defaults to the value configured with the
762− <literal>--with-fips-mode</literal> option.
763−
764− '';
765−
766− osx-attr.append = mkYesNoParam yes ''
767− Whether DNS servers are appended to existing entries, instead of
768− replacing them.
769− '';
770−
771− pkcs11.load_certs = mkYesNoParam yes ''
772− Whether to load certificates from tokens.
773− '';
774−
775− pkcs11.modules = mkAttrsOfParams {
776− path = mkOptionalStrParam ''
777− Full path to the shared object file of this PKCS#11 module
778− '';
779−
780− os_locking = mkYesNoParam no ''
781− Whether OS locking should be enabled for this module
782− '';
783−
784− load_certs = mkYesNoParam no ''
785− Whether the PKCS#11 modules should load certificates from tokens (since 5.0.2)
786− '';
787− } ''
788− List of available PKCS#11 modules, see SmartCardsIKEv2.
789− '';
790−
791− pkcs11.reload_certs = mkYesNoParam no ''
792− Reload certificates from all tokens if charon receives a SIGHUP.
793− '';
794−
795− pkcs11.use_dh = mkYesNoParam no ''
796− Whether the PKCS#11 modules should be used for DH and ECDH.
797− '';
798−
799− pkcs11.use_ecc = mkYesNoParam no ''
800− Whether the PKCS#11 modules should be used for ECDH and ECDSA public key
801− operations. ECDSA private keys are used regardless of this option.
802− '';
803−
804− pkcs11.use_hasher = mkYesNoParam no ''
805− Whether the PKCS#11 modules should be used to hash data.
806− '';
807−
808− pkcs11.use_pubkey = mkYesNoParam no ''
809− Whether the PKCS#11 modules should be used for public key operations,
810− even for keys not stored on tokens.
811− '';
812−
813− pkcs11.use_rng = mkYesNoParam no ''
814− Whether the PKCS#11 modules should be used as RNG.
815− '';
816−
817− radattr.dir = mkOptionalStrParam ''
818− Directory where RADIUS attributes are stored in client-ID specific
819− files, see radattr.
820− '';
821−
822− radattr.message_id = mkIntParam (-1) ''
823− RADIUS attributes are added to all IKE_AUTH messages by default (-1), or
824− only to the IKE_AUTH message with the given IKEv2 message ID.
825− '';
826−
827− random.random = mkStrParam "/dev/random" ''
828− File to read random bytes from.
829− '';
830−
831− random.urandom = mkStrParam "/dev/urandom" ''
832− File to read pseudo random bytes from.
833− '';
834−
835− random.strong_equals_true = mkYesNoParam no ''
836− If enabled the RNG_STRONG class reads random bytes from the same source
837− as the RNG_TRUE class.
838− '';
839−
840− resolve.file = mkStrParam "/etc/resolv.conf" ''
841− File used by the resolve plugin to write DNS server entries to.
842− '';
843−
844− resolve.resolvconf.iface_prefix = mkStrParam "lo.inet.ipsec." ''
845− Prefix used by the resolve plugin for interface names sent to
846− resolvconf(8). The name server address is appended to this prefix to
847− make it unique. The result has to be a valid interface name according to
848− the rules defined by resolvconf. Also, it should have a high priority
849− according to the order defined in interface-order(5).
850− '';
851−
852− revocation.enable_crl = mkYesNoParam yes ''
853− Whether CRL validation should be enabled.
854− '';
855−
856− revocation.enable_ocsp = mkYesNoParam yes ''
857− Whether OCSP validation should be enabled.
858− '';
859−
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−
879− socket-default.fwmark = mkOptionalStrParam ''
880− Firewall mark to set on outbound packets (a possible use case are
881− host-to-host tunnels with kernel-libipsec).
882− '';
883−
884− socket-default.set_source = mkYesNoParam yes ''
885− Set source address on outbound packets, if possible.
886− '';
887−
888− socket-default.set_sourceif = mkYesNoParam no ''
889− Force sending interface on outbound packets, if possible. This allows
890− using IPv6 link-local addresses as tunnel endpoints.
891− '';
892−
893− socket-default.use_ipv4 = mkYesNoParam yes ''
894− Listen on IPv4, if possible.
895− '';
896−
897− socket-default.use_ipv6 = mkYesNoParam yes ''
898− Listen on IPv6, if possible.
899− '';
900−
901− sql.database = mkOptionalStrParam ''
902− Database URI for charon's SQL plugin. If it contains a password, make
903− sure to adjust the permissions of the config file accordingly.
904− '';
905−
906− sql.loglevel = mkIntParam (-1) ''
907− Loglevel for logging to SQL database.
908− '';
909−
910− stroke.allow_swap = mkYesNoParam yes ''
911− Analyze addresses/hostnames in left/right to detect which side is local
912− and swap configuration options if necessary. If disabled left is always
913− local.
914− '';
915−
916− stroke.ignore_missing_ca_basic_constraint = mkYesNoParam no ''
917− Treat certificates in ipsec.d/cacerts and ipsec.conf ca sections as CA
918− certificates even if they don't contain a CA basic constraint.
919− '';
920−
921− stroke.max_concurrent = mkIntParam 4 ''
922− Maximum number of stroke messages handled concurrently.
923− '';
924−
925− stroke.secrets_file = mkStrParam "\${sysconfdir}/ipsec.secrets" ''
926− Location of the ipsec.secrets file.
927− '';
928−
929− stroke.socket = mkStrParam "unix://\${piddir}/charon.ctl" ''
930− Socket provided by the stroke plugin.
931− '';
932−
933− stroke.timeout = mkIntParam 0 ''
934− Timeout in ms for any stroke command. Use 0 to disable the timeout.
935− '';
936−
937− systime-fix.interval = mkIntParam 0 ''
938− Interval in seconds to check system time for validity. 0 disables the
939− check. See systime-fix plugin.
940− '';
941−
942− systime-fix.reauth = mkYesNoParam no ''
943− Whether to use reauth or delete if an invalid cert lifetime is detected.
944− '';
945−
946− systime-fix.threshold = mkOptionalStrParam ''
947− Threshold date where system time is considered valid. Disabled if not
948− specified.
949− '';
950−
951− systime-fix.threshold_format = mkStrParam "%Y" ''
952− strptime(3) format used to parse threshold option.
953− '';
954−
955− systime-fix.timeout = mkDurationParam "0s" ''
956− How long to wait for a valid system time if an interval is
957− configured. 0 to recheck indefinitely.
958− '';
959−
960− tnc-ifmap.client_cert = mkOptionalStrParam ''
961− Path to X.509 certificate file of IF-MAP client.
962− '';
963−
964− tnc-ifmap.client_key = mkOptionalStrParam ''
965− Path to private key file of IF-MAP client.
966− '';
967−
968− tnc-ifmap.device_name = mkOptionalStrParam ''
969− Unique name of strongSwan server as a PEP and/or PDP device.
970− '';
971−
972− tnc-ifmap.renew_session_interval = mkIntParam 150 ''
973− Interval in seconds between periodic IF-MAP RenewSession requests.
974− '';
975−
976− tnc-ifmap.server_cert = mkOptionalStrParam ''
977− Path to X.509 certificate file of IF-MAP server.
978− '';
979−
980− tnc-ifmap.server_uri = mkStrParam "https://localhost:8444/imap" ''
981− URI of the form <literal>[https://]servername[:port][/path]</literal>.
982− '';
983−
984− tnc-ifmap.username_password = mkOptionalStrParam ''
985− Credentials of IF-MAP client of the form
986− <literal>username:password</literal>. If set, make sure to adjust the
987− permissions of the config file accordingly.
988− '';
989−
990− tnc-imc.dlcose = mkYesNoParam yes ''
991− Unload IMC after use.
992− '';
993−
994− tnc-imc.preferred_language = mkStrParam "en" ''
995− Preferred language for TNC recommendations.
996− '';
997−
998− tnc-imv.dlcose = mkYesNoParam yes ''
999− Unload IMV after use.
1000− '';
1001−
1002− tnc-imv.recommendation_policy = mkEnumParam ["default" "any" "all"] "default" ''
1003− default TNC recommendation policy.
1004− '';
1005−
1006− tnc-pdp.pt_tls.enable = mkYesNoParam yes ''
1007− Enable PT-TLS protocol on the strongSwan PDP.
1008− '';
1009−
1010− tnc-pdp.pt_tls.port = mkIntParam 271 ''
1011− PT-TLS server port the strongSwan PDP is listening on.
1012− '';
1013−
1014− tnc-pdp.radius.enable = mkYesNoParam yes ''
1015− Enable RADIUS protocol on the strongSwan PDP.
1016− '';
1017−
1018− tnc-pdp.radius.method = mkStrParam "ttls" ''
1019− EAP tunnel method to be used.
1020− '';
1021−
1022− tnc-pdp.radius.port = mkIntParam 1812 ''
1023− RADIUS server port the strongSwan PDP is listening on.
1024− '';
1025−
1026− tnc-pdp.radius.secret = mkOptionalStrParam ''
1027− Shared RADIUS secret between strongSwan PDP and NAS. If set, make sure
1028− to adjust the permissions of the config file accordingly.
1029− '';
1030−
1031− tnc-pdp.server = mkOptionalStrParam ''
1032− Name of the strongSwan PDP as contained in the AAA certificate.
1033− '';
1034−
1035− tnc-pdp.timeout = mkOptionalIntParam ''
1036− Timeout in seconds before closing incomplete connections.
1037− '';
1038−
1039− tnccs-11.max_message_size = mkIntParam 45000 ''
1040− Maximum size of a PA-TNC message (XML &#38; Base64 encoding).
1041− '';
1042−
1043− tnccs-20.max_batch_size = mkIntParam 65522 ''
1044− Maximum size of a PB-TNC batch (upper limit via PT-EAP = 65529).
1045− '';
1046−
1047− tnccs-20.max_message_size = mkIntParam 65490 ''
1048− Maximum size of a PA-TNC message (upper limit via PT-EAP = 65497).
1049− '';
1050−
1051− tnccs-20.mutual = mkYesNoParam no ''
1052− Enable PB-TNC mutual protocol.
1053− '';
1054−
1055− tpm.use_rng = mkYesNoParam no ''
1056− Whether the TPM should be used as RNG.
1057− '';
1058−
1059− unbound.dlv_anchors = mkOptionalStrParam ''
1060− File to read trusted keys for DLV from. It uses the same format as
1061− <option>trust_anchors</option>. Only one DLV can be configured, which is
1062− then used as a root trusted DLV, this means that it is a lookaside for the
1063− root.
1064− '';
1065−
1066− unbound.resolv_conf = mkStrParam "/etc/resolv.conf" ''
1067− File to read DNS resolver configuration from.
1068− '';
1069−
1070− unbound.trust_anchors = mkStrParam "/etc/ipsec.d/dnssec.keys" ''
1071− File to read DNSSEC trust anchors from (usually root zone KSK). The
1072− format of the file is the standard DNS Zone file format, anchors can be
1073− stored as DS or DNSKEY entries in the file.
1074− '';
1075−
1076− updown.dns_handler = mkYesNoParam no ''
1077− Whether the updown script should handle DNS servers assigned via IKEv1
1078− Mode Config or IKEv2 Config Payloads (if enabled they can't be handled
1079− by other plugins, like resolve).
1080− '';
1081−
1082− vici.socket = mkStrParam "unix://\${piddir}/charon.vici" ''
1083− Socket the vici plugin serves clients.
1084− '';
1085−
1086− whitelist.enable = mkYesNoParam yes ''
1087− Enable loaded whitelist plugin.
1088− '';
1089−
1090− whitelist.socket = mkStrParam "unix://\${piddir}/charon.wlst" ''
1091− Socket provided by the whitelist plugin.
1092− '';
1093−
1094− xauth-eap.backend = mkStrParam "radius" ''
1095− EAP plugin to be used as backend for XAuth credential verification, see
1096− XAuthEAP.
1097− '';
1098−
1099− xauth-pam.pam_service = mkStrParam "login" ''
1100− PAM service to be used for authentication, see XAuthPAM.
1101− '';
1102−
1103− xauth-pam.session = mkYesNoParam no ''
1104− Open/close a PAM session for each active IKE_SA.
1105− '';
1106−
1107− xauth-pam.trim_email = mkYesNoParam yes ''
1108− If an email address is given as an XAuth username, trim it to just the
1109− username part.
1110− '';
1111−}
nixos/modules/services/networking/strongswan-swanctl/strongswan-libimcv-params.nixdeleted−291
@@ -1,291 +0,0 @@
1−lib : with (import ./param-constructors.nix lib); {
2− debug_level = mkIntParam 1 ''
3− Debug level for a stand-alone libimcv library.
4− '';
5−
6− load = mkSpaceSepListParam ["random" "nonce" "gmp" "pubkey" "x509"] ''
7− Plugins to load in IMC/IMVs with stand-alone libimcv library.
8− '';
9−
10− stderr_quiet = mkYesNoParam no ''
11− Disable the output to stderr with a stand-alone libimcv library.
12− '';
13−
14− swid_gen = {
15− command = mkStrParam "/usr/local/bin/swid_generator" ''
16− SWID generator command to be executed.
17− '';
18−
19− tag_creator = {
20− name = mkStrParam "strongSwan Project" ''
21− Name of the tagCreator entity.
22− '';
23−
24− regid = mkStrParam "strongswan.org" ''
25− regid of the tagCreator entity.
26− '';
27− };
28− };
29−
30− plugins = {
31−
32− imc-attestation = {
33− aik_blob = mkOptionalStrParam ''
34− AIK encrypted private key blob file.
35− '';
36−
37− aik_cert = mkOptionalStrParam ''
38− AIK certificate file.
39− '';
40−
41− aik_handle = mkOptionalStrParam ''
42− AIK object handle, e.g. 0x81010003.
43− '';
44−
45− aik_pubkey = mkOptionalStrParam ''
46− AIK public key file.
47− '';
48−
49− mandatory_dh_groups = mkYesNoParam yes ''
50− Enforce mandatory Diffie-Hellman groups
51− '';
52−
53− nonce_len = mkIntParam 20 ''
54− DH nonce length.
55− '';
56−
57− pcr_info = mkYesNoParam no ''
58− Whether to send pcr_before and pcr_after info.
59− '';
60−
61− use_quote2 = mkYesNoParam yes ''
62− Use Quote2 AIK signature instead of Quote signature.
63− '';
64−
65− use_version_info = mkYesNoParam no ''
66− Version Info is included in Quote2 signature.
67− '';
68− };
69−
70− imc-hcd.push_info = mkYesNoParam yes ''
71− Send quadruple info without being prompted.
72− '';
73−
74− imc-hcd.subtypes = let
75− imcHcdSubtypeParams = let
76− softwareParams = mkAttrsOfParams {
77− name = mkOptionalStrParam ''
78− Name of the software installed on the hardcopy device.
79− '';
80−
81− patches = mkOptionalStrParam ''
82− String describing all patches applied to the given software on this
83− hardcopy device. The individual patches are separated by a newline
84− character '\\n'.
85− '';
86−
87− string_version = mkOptionalStrParam ''
88− String describing the version of the given software on this hardcopy device.
89− '';
90−
91− version = mkOptionalStrParam ''
92− Hex-encoded version string with a length of 16 octets consisting of
93− the fields major version number (4 octets), minor version number (4
94− octets), build number (4 octets), service pack major number (2
95− octets) and service pack minor number (2 octets).
96− '';
97− } ''
98− Defines a software section having an arbitrary name.
99− '';
100− in {
101− firmware = softwareParams;
102− resident_application = softwareParams;
103− user_application = softwareParams;
104− attributes_natural_language = mkStrParam "en" ''
105− Variable length natural language tag conforming to RFC 5646 specifies
106− the language to be used in the health assessment message of a given
107− subtype.
108− '';
109− };
110− in {
111− system = imcHcdSubtypeParams // {
112− certification_state = mkOptionalStrParam ''
113− Hex-encoded certification state.
114− '';
115−
116− configuration_state = mkOptionalStrParam ''
117− Hex-encoded configuration state.
118− '';
119−
120− machine_type_model = mkOptionalStrParam ''
121− String specifying the machine type and model of the hardcopy device.
122− '';
123−
124− pstn_fax_enabled = mkYesNoParam no ''
125− Specifies if a PSTN facsimile interface is installed and enabled on the
126− hardcopy device.
127− '';
128−
129− time_source = mkOptionalStrParam ''
130− String specifying the hostname of the network time server used by the
131− hardcopy device.
132− '';
133−
134− user_application_enabled = mkYesNoParam no ''
135− Specifies if users can dynamically download and execute applications on
136− the hardcopy device.
137− '';
138−
139− user_application_persistence_enabled = mkYesNoParam no ''
140− Specifies if user dynamically downloaded applications can persist outside
141− the boundaries of a single job on the hardcopy device.
142− '';
143−
144− vendor_name = mkOptionalStrParam ''
145− String specifying the manufacturer of the hardcopy device.
146− '';
147−
148− vendor_smi_code = mkOptionalIntParam ''
149− Integer specifying the globally unique 24-bit SMI code assigned to the
150− manufacturer of the hardcopy device.
151− '';
152− };
153− control = imcHcdSubtypeParams;
154− marker = imcHcdSubtypeParams;
155− finisher = imcHcdSubtypeParams;
156− interface = imcHcdSubtypeParams;
157− scanner = imcHcdSubtypeParams;
158− };
159−
160− imc-os = {
161− device_cert = mkOptionalStrParam ''
162− Manually set the path to the client device certificate
163− (e.g. /etc/pts/aikCert.der)
164− '';
165−
166− device_id = mkOptionalStrParam ''
167− Manually set the client device ID in hexadecimal format
168− (e.g. 1083f03988c9762703b1c1080c2e46f72b99cc31)
169− '';
170−
171− device_pubkey = mkOptionalStrParam ''
172− Manually set the path to the client device public key
173− (e.g. /etc/pts/aikPub.der)
174− '';
175−
176− push_info = mkYesNoParam yes ''
177− Send operating system info without being prompted.
178− '';
179− };
180−
181− imc-scanner.push_info = mkYesNoParam yes ''
182− Send open listening ports without being prompted.
183− '';
184−
185− imc-swid = {
186− swid_full = mkYesNoParam no ''
187− Include file information in the XML-encoded SWID tags.
188− '';
189−
190− swid_pretty = mkYesNoParam no ''
191− Generate XML-encoded SWID tags with pretty indentation.
192− '';
193−
194− swid_directory = mkStrParam "\${prefix}/share" ''
195− Directory where SWID tags are located.
196− '';
197− };
198−
199− imc-swima = {
200− eid_epoch = mkHexParam "0x11223344" ''
201− Set 32 bit epoch value for event IDs manually if software collector
202− database is not available.
203− '';
204−
205− swid_database = mkOptionalStrParam ''
206− URI to software collector database containing event timestamps, software
207− creation and deletion events and collected software identifiers. If it
208− contains a password, make sure to adjust the permissions of the config
209− file accordingly.
210− '';
211−
212− swid_directory = mkStrParam "\${prefix}/share" ''
213− Directory where SWID tags are located.
214− '';
215−
216− swid_pretty = mkYesNoParam no ''
217− Generate XML-encoded SWID tags with pretty indentation.
218− '';
219−
220− swid_full = mkYesNoParam no ''
221− Include file information in the XML-encoded SWID tags.
222− '';
223− };
224−
225− imc-test = {
226− additional_ids = mkIntParam 0 ''
227− Number of additional IMC IDs.
228− '';
229−
230− command = mkStrParam "none" ''
231− Command to be sent to the Test IMV.
232− '';
233−
234− dummy_size = mkIntParam 0 ''
235− Size of dummy attribute to be sent to the Test IMV (0 = disabled).
236− '';
237−
238− retry = mkYesNoParam no ''
239− Do a handshake retry.
240− '';
241−
242− retry_command = mkOptionalStrParam ''
243− Command to be sent to the IMV Test in the handshake retry.
244− '';
245− };
246−
247− imv-attestation = {
248− cadir = mkOptionalStrParam ''
249− Path to directory with AIK cacerts.
250− '';
251−
252− dh_group = mkStrParam "ecp256" ''
253− Preferred Diffie-Hellman group.
254− '';
255−
256− hash_algorithm = mkStrParam "sha256" ''
257− Preferred measurement hash algorithm.
258− '';
259−
260− min_nonce_len = mkIntParam 0 ''
261− DH minimum nonce length.
262− '';
263−
264− remediation_uri = mkOptionalStrParam ''
265− URI pointing to attestation remediation instructions.
266− '';
267− };
268−
269− imv-os.remediation_uri = mkOptionalStrParam ''
270− URI pointing to operating system remediation instructions.
271− '';
272−
273− imv-scanner.remediation_uri = mkOptionalStrParam ''
274− URI pointing to scanner remediation instructions.
275− '';
276−
277− imv-swima.rest_api = {
278− uri = mkOptionalStrParam ''
279− HTTP URI of the SWID REST API.
280− '';
281−
282− timeout = mkIntParam 120 ''
283− Timeout of SWID REST API HTTP POST transaction.
284− '';
285− };
286−
287− imv-test.rounds = mkIntParam 0 ''
288− Number of IMC-IMV retry rounds.
289− '';
290− };
291−}
nixos/modules/services/networking/strongswan-swanctl/strongswan-loglevel-params.nixdeleted−29
@@ -1,29 +0,0 @@
1−lib : with (import ./param-constructors.nix lib);
2−
3−let mkJournalParam = description :
4− mkEnumParam [(-1) 0 1 2 3 4] 0 "Logging level for ${description}";
5−in {
6− default = mkIntParam 1 ''
7− Specifies the default loglevel to be used for subsystems for which no
8− specific loglevel is defined.
9− '';
10−
11− app = mkJournalParam "applications other than daemons.";
12− asn = mkJournalParam "low-level encoding/decoding (ASN.1, X.509 etc.)";
13− cfg = mkJournalParam "configuration management and plugins.";
14− chd = mkJournalParam "CHILD_SA/IPsec SA.";
15− dmn = mkJournalParam "main daemon setup/cleanup/signal handling.";
16− enc = mkJournalParam "packet encoding/decoding encryption/decryption operations.";
17− esp = mkJournalParam "libipsec library messages.";
18− ike = mkJournalParam "IKE_SA/ISAKMP SA.";
19− imc = mkJournalParam "integrity Measurement Collector.";
20− imv = mkJournalParam "integrity Measurement Verifier.";
21− job = mkJournalParam "jobs queuing/processing and thread pool management.";
22− knl = mkJournalParam "IPsec/Networking kernel interface.";
23− lib = mkJournalParam "libstrongwan library messages.";
24− mgr = mkJournalParam "IKE_SA manager, handling synchronization for IKE_SA access.";
25− net = mkJournalParam "IKE network communication.";
26− pts = mkJournalParam "platform Trust Service.";
27− tls = mkJournalParam "libtls library messages.";
28− tnc = mkJournalParam "trusted Network Connect.";
29−}
nixos/modules/services/networking/strongswan-swanctl/strongswan-params.nixdeleted−258
@@ -1,258 +0,0 @@
1−# See: https://wiki.strongswan.org/projects/strongswan/wiki/StrongswanConf
2−#
3−# When strongSwan is upgraded please update the parameters in this file. You can
4−# see which parameters should be deleted, changed or added by diffing
5−# the strongswan conf directory:
6−#
7−# git clone https://github.com/strongswan/strongswan.git
8−# cd strongswan
9−# git diff 5.5.3..5.6.0 conf/
10−
11−lib: with (import ./param-constructors.nix lib);
12−
13−let charonParams = import ./strongswan-charon-params.nix lib;
14−in {
15− aikgen = {
16− load = mkSpaceSepListParam [] ''
17− Plugins to load in ipsec aikgen tool.
18− '';
19− };
20− attest = {
21− database = mkOptionalStrParam ''
22− File measurement information database URI. If it contains a password,
23− make sure to adjust the permissions of the config file accordingly.
24− '';
25−
26− load = mkSpaceSepListParam [] ''
27− Plugins to load in ipsec attest tool.
28− '';
29− };
30−
31− # Since we only use charon-systemd we don't need to generate options for charon.
32− # charon = charonParams;
33−
34− charon-nm = {
35− ca_dir = mkStrParam "<default>" ''
36− Directory from which to load CA certificates if no certificate is
37− configured.
38− '';
39− };
40−
41− charon-systemd = charonParams // {
42− journal = import ./strongswan-loglevel-params.nix lib;
43− };
44−
45− imv_policy_manager = {
46− command_allow = mkOptionalStrParam ''
47− Shell command to be executed with recommendation allow.
48− '';
49−
50− command_block = mkOptionalStrParam ''
51− Shell command to be executed with all other recommendations.
52− '';
53−
54− database = mkOptionalStrParam ''
55− Database URI for the database that stores the package information. If it
56− contains a password, make sure to adjust permissions of the config file
57− accordingly.
58− '';
59−
60− load = mkSpaceSepListParam ["sqlite"] ''
61− Plugins to load in IMV policy manager.
62− '';
63− };
64−
65− libimcv = import ./strongswan-libimcv-params.nix lib;
66−
67− manager = {
68− database = mkOptionalStrParam ''
69− Credential database URI for manager. If it contains a password, make
70− sure to adjust the permissions of the config file accordingly.
71− '';
72−
73− debug = mkYesNoParam no ''
74− Enable debugging in manager.
75− '';
76−
77− load = mkSpaceSepListParam [] ''
78− Plugins to load in manager.
79− '';
80−
81− socket = mkOptionalStrParam ''
82− FastCGI socket of manager, to run it statically.
83− '';
84−
85− threads = mkIntParam 10 ''
86− Threads to use for request handling.
87− '';
88−
89− timeout = mkDurationParam "15m" ''
90− Session timeout for manager.
91− '';
92− };
93−
94− medcli = {
95− database = mkOptionalStrParam ''
96− Mediation client database URI. If it contains a password, make sure to
97− adjust the permissions of the config file accordingly.
98− '';
99−
100− dpd = mkDurationParam "5m" ''
101− DPD timeout to use in mediation client plugin.
102− '';
103−
104− rekey = mkDurationParam "20m" ''
105− Rekeying time on mediation connections in mediation client plugin.
106− '';
107− };
108−
109− medsrv = {
110− database = mkOptionalStrParam ''
111− Mediation server database URI. If it contains a password, make sure to
112− adjust the permissions of the config file accordingly.
113− '';
114−
115− debug = mkYesNoParam no ''
116− Debugging in mediation server web application.
117− '';
118−
119− dpd = mkDurationParam "5m" ''
120− DPD timeout to use in mediation server plugin.
121− '';
122−
123− load = mkSpaceSepListParam [] ''
124− Plugins to load in mediation server plugin.
125− '';
126−
127− password_length = mkIntParam 6 ''
128− Minimum password length required for mediation server user accounts.
129− '';
130−
131− rekey = mkDurationParam "20m" ''
132− Rekeying time on mediation connections in mediation server plugin.
133− '';
134−
135− socket = mkOptionalStrParam ''
136− Run Mediation server web application statically on socket.
137− '';
138−
139− threads = mkIntParam 5 ''
140− Number of thread for mediation service web application.
141− '';
142−
143− timeout = mkDurationParam "15m" ''
144− Session timeout for mediation service.
145− '';
146− };
147−
148− pki.load = mkSpaceSepListParam [] ''
149− Plugins to load in ipsec pki tool.
150− '';
151−
152− pool = {
153− database = mkOptionalStrParam ''
154− Database URI for the database that stores IP pools and configuration
155− attributes. If it contains a password, make sure to adjust the
156− permissions of the config file accordingly.
157− '';
158−
159− load = mkSpaceSepListParam [] ''
160− Plugins to load in ipsec pool tool.
161− '';
162− };
163−
164− pt-tls-client.load = mkSpaceSepListParam [] ''
165− Plugins to load in ipsec pt-tls-client tool.
166− '';
167−
168− scepclient.load = mkSpaceSepListParam [] ''
169− Plugins to load in ipsec scepclient tool.
170− '';
171−
172− sec-updater = {
173− database = mkOptionalStrParam ''
174− Global IMV policy database URI. If it contains a password, make
175− sure to adjust the permissions of the config file accordingly.
176− '';
177−
178− swid_gen.command = mkStrParam "/usr/local/bin/swid_generator" ''
179− SWID generator command to be executed.
180− '';
181−
182− swid_gen.tag_creator.name = mkStrParam "strongSwan Project" ''
183− Name of the tagCreator entity.
184− '';
185−
186− swid_gen.tag_creator.regid = mkStrParam "strongswan.org" ''
187− regid of the tagCreator entity.
188− '';
189−
190− tnc_manage_command = mkStrParam "/var/www/tnc/manage.py" ''
191− strongTNC manage.py command used to import SWID tags.
192− '';
193−
194− tmp.deb_file = mkStrParam "/tmp/sec-updater.deb" ''
195− Temporary storage for downloaded deb package file.
196− '';
197−
198− tmp.tag_file = mkStrParam "/tmp/sec-updater.tag" ''
199− Temporary storage for generated SWID tags.
200− '';
201−
202− load = mkSpaceSepListParam [] ''
203− Plugins to load in sec-updater tool.
204− '';
205− };
206−
207− starter = {
208− config_file = mkStrParam "\${sysconfdir}/ipsec.conf" ''
209− Location of the ipsec.conf file.
210− '';
211−
212− load_warning = mkYesNoParam yes ''
213− Show charon.load setting warning, see
214− https://wiki.strongswan.org/projects/strongswan/wiki/PluginLoad
215− '';
216− };
217−
218− sw-collector = {
219− database = mkOptionalStrParam ''
220− URI to software collector database containing event timestamps,
221− software creation and deletion events and collected software
222− identifiers. If it contains a password, make sure to adjust the
223− permissions of the config file accordingly.
224− '';
225−
226− first_file = mkStrParam "/var/log/bootstrap.log" ''
227− Path pointing to file created when the Linux OS was installed.
228− '';
229−
230− first_time = mkStrParam "0000-00-00T00:00:00Z" ''
231− Time in UTC when the Linux OS was installed.
232− '';
233−
234− history = mkOptionalStrParam ''
235− Path pointing to apt history.log file.
236− '';
237−
238− rest_api = {
239− uri = mkOptionalStrParam ''
240− HTTP URI of the central collector's REST API.
241− '';
242−
243− timeout = mkIntParam 120 ''
244− Timeout of REST API HTTP POST transaction.
245− '';
246− };
247−
248− load = mkSpaceSepListParam [] "Plugins to load in sw-collector tool.";
249− };
250−
251− swanctl = {
252− load = mkSpaceSepListParam [] "Plugins to load in swanctl.";
253−
254− socket = mkStrParam "unix://\${piddir}/charon.vici" ''
255− VICI socket to connect to by default.
256− '';
257− };
258−}