1 .TH STRONGSWAN.CONF 5 "2013-07-22" "@IPSEC_VERSION@" "strongSwan"
3 strongswan.conf \- strongSwan configuration file
7 configuration file is well suited to define IPsec related configuration
8 parameters, it is not useful for other strongSwan applications to read options
10 The file is hard to parse and only
12 is capable of doing so. As the number of components of the strongSwan project
13 is continually growing, a more flexible configuration file was needed, one that
14 is easy to extend and can be used by all components. With strongSwan 4.2.1
15 .IR strongswan.conf (5)
16 was introduced which meets these requirements.
19 The format of the strongswan.conf file consists of hierarchical
23 in each section. Each section has a name, followed by C-Style curly brackets
24 defining the section body. Each section body contains a set of subsections
28 settings := (section|keyvalue)*
29 section := name { settings }
30 keyvalue := key = value\\n
33 Values must be terminated by a newline.
35 Comments are possible using the \fB#\fP-character, but be careful: The parser
36 implementation is currently limited and does not like brackets in comments.
38 Section names and keys may contain any printable character except:
44 An example file in this format might look like this:
61 Indentation is optional, you may use tabs or spaces.
66 statement it is possible to include other files into strongswan.conf, e.g.
69 include /some/path/*.conf
72 If the file name is not an absolute path, it is considered to be relative
73 to the directory of the file containing the include statement. The file name
74 may include shell wildcards (see
76 Also, such inclusions can be nested.
78 Sections loaded from included files
80 previously loaded sections; already existing values are
82 It is important to note that settings are added relative to the section the
83 include statement is in.
85 As an example, the following three files result in the same final
86 config as the one given above:
91 somevalue = before include
97 # settings loaded from this file are added to section-one
98 # the following replaces the previous value
106 # this extends section-one and subsection
109 # this replaces the previous value
119 Values are accessed using a dot-separated section list and a key.
120 With reference to the example above, accessing
121 .B section-one.subsection.othervalue
126 The following keys are currently defined (using dot notation). The default
127 value (if any) is listed in brackets after the key.
132 Path to database with file measurement information
135 Plugins to load in ipsec attest tool
140 Many of these options also apply to \fBcharon\-cmd\fR and other
141 \fBcharon\fR derivatives. Just use their respective name (e.g.
142 \fIcharon\-cmd\fR) instead of \fIcharon\fR.
144 .BR charon.block_threshold " [5]"
145 Maximum number of half-open IKE_SAs for a single peer IP
147 .BR charon.cisco_unity " [no]
148 Send Cisco Unity vendor ID payload (IKEv1 only)
150 .BR charon.close_ike_on_child_failure " [no]"
151 Close the IKE_SA if setup of the CHILD_SA along with IKE_AUTH failed
153 .BR charon.cookie_threshold " [10]"
154 Number of half-open IKE_SAs that activate the cookie mechanism
159 DNS servers assigned to peer via configuration payload (CP)
161 .BR charon.dos_protection " [yes]"
162 Enable Denial of Service protection using cookies and aggressiveness checks
165 Section to define file loggers, see LOGGER CONFIGURATION
167 .BR charon.flush_auth_cfg " [no]"
168 If enabled objects used during authentication (certificates, identities etc.)
169 are released to free memory once an IKE_SA is established.
170 Enabling this might conflict with plugins that later need access to e.g. the
173 .BR charon.fragment_size " [512]"
174 Maximum size (in bytes) of a sent fragment when using the proprietary IKEv1
175 fragmentation extension.
178 Name of the group the daemon changes to after startup
180 .BR charon.half_open_timeout " [30]"
181 Timeout in seconds for connecting IKE_SAs (also see IKE_SA_INIT DROPPING).
183 .BR charon.hash_and_url " [no]"
184 Enable hash and URL support
186 .BR charon.i_dont_care_about_security_and_use_aggressive_mode_psk " [no]"
187 If enabled responders are allowed to use IKEv1 Aggressive Mode with pre-shared
188 keys, which is discouraged due to security concerns (offline attacks on the
189 openly transmitted hash of the PSK)
191 .BR charon.ignore_routing_tables
192 A space-separated list of routing tables to be excluded from route lookups
194 .BR charon.ikesa_limit " [0]"
195 Maximum number of IKE_SAs that can be established at the same time before new
196 connection attempts are blocked
198 .BR charon.ikesa_table_segments " [1]"
199 Number of exclusively locked segments in the hash table
201 .BR charon.ikesa_table_size " [1]"
202 Size of the IKE_SA hash table
204 .BR charon.inactivity_close_ike " [no]"
205 Whether to close IKE_SA if the only CHILD_SA closed due to inactivity
207 .BR charon.init_limit_half_open " [0]"
208 Limit new connections based on the current number of half open IKE_SAs (see
209 IKE_SA_INIT DROPPING).
211 .BR charon.init_limit_job_load " [0]"
212 Limit new connections based on the number of jobs currently queued for
213 processing (see IKE_SA_INIT DROPPING).
215 .BR charon.initiator_only " [no]"
216 Causes charon daemon to ignore IKE initiation requests.
218 .BR charon.install_routes " [yes]"
219 Install routes into a separate routing table for established IPsec tunnels
221 .BR charon.install_virtual_ip " [yes]"
222 Install virtual IP addresses
224 .BR charon.install_virtual_ip_on
225 The name of the interface on which virtual IP addresses should be installed.
226 If not specified the addresses will be installed on the outbound interface.
228 .BR charon.interfaces_ignore
229 A comma-separated list of network interfaces that should be ignored, if
230 .B charon.interfaces_use
231 is specified this option has no effect.
233 .BR charon.interfaces_use
234 A comma-separated list of network interfaces that should be used by charon.
235 All other interfaces are ignored.
237 .BR charon.keep_alive " [20s]"
238 NAT keep alive interval
241 Plugins to load in the IKEv2 daemon charon
243 .BR charon.max_packet " [10000]"
244 Maximum packet size accepted by charon
246 .BR charon.multiple_authentication " [yes]"
247 Enable multiple authentication exchanges (RFC 4739)
252 WINS servers assigned to peer via configuration payload (CP)
254 .BR charon.port " [500]"
255 UDP port used locally. If set to 0 a random port will be allocated.
257 .BR charon.port_nat_t " [4500]"
258 UDP port used locally in case of NAT-T. If set to 0 a random port will be
259 allocated. Has to be different from
261 otherwise a random port will be allocated.
263 .BR charon.process_route " [yes]"
264 Process RTM_NEWROUTE and RTM_DELROUTE events
266 .BR charon.receive_delay " [0]"
267 Delay in ms for receiving packets, to simulate larger RTT
269 .BR charon.receive_delay_response " [yes]"
270 Delay response messages
272 .BR charon.receive_delay_request " [yes]"
273 Delay request messages
275 .BR charon.receive_delay_type " [0]"
276 Specific IKEv2 message type to delay, 0 for any
278 .BR charon.replay_window " [32]"
279 Size of the AH/ESP replay window, in packets.
281 .BR charon.retransmit_base " [1.8]"
282 Base to use for calculating exponential back off, see IKEv2 RETRANSMISSION
284 .BR charon.retransmit_timeout " [4.0]
285 Timeout in seconds before sending first retransmit
287 .BR charon.retransmit_tries " [5]"
288 Number of times to retransmit a packet before giving up
290 .BR charon.retry_initiate_interval " [0]"
291 Interval to use when retrying to initiate an IKE_SA (e.g. if DNS resolution
292 failed), 0 to disable retries.
294 .BR charon.reuse_ikesa " [yes]
295 Initiate CHILD_SA within existing IKE_SAs
297 .BR charon.routing_table
298 Numerical routing table to install routes to
300 .BR charon.routing_table_prio
301 Priority of the routing table
303 .BR charon.send_delay " [0]"
304 Delay in ms for sending packets, to simulate larger RTT
306 .BR charon.send_delay_response " [yes]"
307 Delay response messages
309 .BR charon.send_delay_request " [yes]"
310 Delay request messages
312 .BR charon.send_delay_type " [0]"
313 Specific IKEv2 message type to delay, 0 for any
315 .BR charon.send_vendor_id " [no]
316 Send strongSwan vendor ID payload
319 Section to define syslog loggers, see LOGGER CONFIGURATION
321 .BR charon.threads " [16]"
322 Number of worker threads in charon. Several of these are reserved for long
323 running tasks in internal modules and plugins. Therefore, make sure you don't
324 set this value too low. The number of idle worker threads listed in
326 might be used as indicator on the number of reserved threads.
329 Name of the user the daemon changes to after startup
330 .SS charon.plugins subsection
332 .BR charon.plugins.android_log.loglevel " [1]"
333 Loglevel for logging to Android specific logger
335 .BR charon.plugins.attr
336 Section to specify arbitrary attributes that are assigned to a peer via
337 configuration payload (CP)
339 .BR charon.plugins.certexpire.csv.cron
340 Cron style string specifying CSV export times
342 .BR charon.plugins.certexpire.csv.empty_string
343 String to use in empty intermediate CA fields
345 .BR charon.plugins.certexpire.csv.fixed_fields " [yes]"
346 Use a fixed intermediate CA field count
348 .BR charon.plugins.certexpire.csv.force " [yes]"
349 Force export of all trustchains we have a private key for
351 .BR charon.plugins.certexpire.csv.format " [%d:%m:%Y]"
352 strftime(3) format string to export expiration dates as
354 .BR charon.plugins.certexpire.csv.local
355 strftime(3) format string for the CSV file name to export local certificates to
357 .BR charon.plugins.certexpire.csv.remote
358 strftime(3) format string for the CSV file name to export remote certificates to
360 .BR charon.plugins.certexpire.csv.separator " [,]"
363 .BR charon.plugins.coupling.file
364 File to store coupling list to
366 .BR charon.plugins.coupling.hash " [sha1]"
367 Hashing algorithm to fingerprint coupled certificates
369 .BR charon.plugins.coupling.max " [1]"
370 Maximum number of coupling entries to create
372 .BR charon.plugins.dhcp.force_server_address " [no]"
373 Always use the configured server address. This might be helpful if the DHCP
374 server runs on the same host as strongSwan, and the DHCP daemon does not listen
375 on the loopback interface. In that case the server cannot be reached via
376 unicast (or even 255.255.255.255) as that would be routed via loopback.
377 Setting this option to yes and configuring the local broadcast address (e.g.
378 192.168.0.255) as server address might work.
380 .BR charon.plugins.dhcp.identity_lease " [no]"
381 Derive user-defined MAC address from hash of IKEv2 identity
383 .BR charon.plugins.dhcp.server " [255.255.255.255]"
384 DHCP server unicast or broadcast IP address
386 .BR charon.plugins.duplicheck.enable " [yes]"
387 Enable duplicheck plugin (if loaded)
389 .BR charon.plugins.duplicheck.socket " [unix://${piddir}/charon.dck]"
390 Socket provided by the duplicheck plugin
392 .BR charon.plugins.eap-aka.request_identity " [yes]"
395 .BR charon.plugins.eap-aka-3ggp2.seq_check
398 .BR charon.plugins.eap-dynamic.preferred
399 The preferred EAP method(s) to be used. If it is not given the first
400 registered method will be used initially. If a comma separated list is given
401 the methods are tried in the given order before trying the rest of the
404 .BR charon.plugins.eap-dynamic.prefer_user " [no]"
405 If enabled the EAP methods proposed in an EAP-Nak message sent by the peer are
406 preferred over the methods registered locally.
408 .BR charon.plugins.eap-gtc.backend " [pam]"
409 XAuth backend to be used for credential verification
411 .BR charon.plugins.eap-peap.fragment_size " [1024]"
412 Maximum size of an EAP-PEAP packet
414 .BR charon.plugins.eap-peap.max_message_count " [32]"
415 Maximum number of processed EAP-PEAP packets (0 = no limit)
417 .BR charon.plugins.eap-peap.include_length " [no]"
418 Include length in non-fragmented EAP-PEAP packets
420 .BR charon.plugins.eap-peap.phase2_method " [mschapv2]"
421 Phase2 EAP client authentication method
423 .BR charon.plugins.eap-peap.phase2_piggyback " [no]"
424 Phase2 EAP Identity request piggybacked by server onto TLS Finished message
426 .BR charon.plugins.eap-peap.phase2_tnc " [no]"
427 Start phase2 EAP TNC protocol after successful client authentication
429 .BR charon.plugins.eap-peap.request_peer_auth " [no]"
430 Request peer authentication based on a client certificate
432 .BR charon.plugins.eap-radius.accounting " [no]"
433 Send RADIUS accounting information to RADIUS servers.
435 .BR charon.plugins.eap-radius.accounting_requires_vip " [no]"
436 If enabled, accounting is disabled unless an IKE_SA has at least one virtual IP
438 .BR charon.plugins.eap-radius.class_group " [no]"
441 attribute sent in the RADIUS-Accept message as group membership information that
442 is compared to the groups specified in the
447 .BR charon.plugins.eap-radius.close_all_on_timeout " [no]"
448 Closes all IKE_SAs if communication with the RADIUS server times out. If it is
449 not set only the current IKE_SA is closed.
451 .BR charon.plugins.eap-radius.dae.enable " [no]"
452 Enables support for the Dynamic Authorization Extension (RFC 5176)
454 .BR charon.plugins.eap-radius.dae.listen " [0.0.0.0]"
455 Address to listen for DAE messages from the RADIUS server
457 .BR charon.plugins.eap-radius.dae.port " [3799]"
458 Port to listen for DAE requests
460 .BR charon.plugins.eap-radius.dae.secret
461 Shared secret used to verify/sign DAE messages
463 .BR charon.plugins.eap-radius.eap_start " [no]"
464 Send EAP-Start instead of EAP-Identity to start RADIUS conversation
466 .BR charon.plugins.eap-radius.filter_id " [no]"
473 attribute sent in the RADIUS-Accept message as group membership information that
474 is compared to the groups specified in the
479 .BR charon.plugins.eap-radius.forward.ike_to_radius
480 RADIUS attributes to be forwarded from IKEv2 to RADIUS (can be defined by
481 name or attribute number, a colon can be used to specify vendor-specific
482 attributes, e.g. Reply-Message, or 11, or 36906:12).
484 .BR charon.plugins.eap-radius.forward.radius_to_ike
486 .B charon.plugins.eap-radius.forward.ike_to_radius
488 IKEv2, a strongSwan specific private notify (40969) is used to transmit the
491 .BR charon.plugins.eap-radius.id_prefix
492 Prefix to EAP-Identity, some AAA servers use a IMSI prefix to select the
495 .BR charon.plugins.eap-radius.nas_identifier " [strongSwan]"
496 NAS-Identifier to include in RADIUS messages
498 .BR charon.plugins.eap-radius.port " [1812]"
499 Port of RADIUS server (authentication)
501 .BR charon.plugins.eap-radius.secret
502 Shared secret between RADIUS and NAS
504 .BR charon.plugins.eap-radius.server
505 IP/Hostname of RADIUS server
507 .BR charon.plugins.eap-radius.servers
508 Section to specify multiple RADIUS servers. The
516 options can be specified for each server. A server's IP/Hostname can be
520 .BR acct_port " [1813]"
521 option can be used to specify the port used for RADIUS accounting.
522 For each RADIUS server a priority can be specified using the
523 .BR preference " [0]"
526 .BR charon.plugins.eap-radius.sockets " [1]"
527 Number of sockets (ports) to use, increase for high load
529 .BR charon.plugins.eap-sim.request_identity " [yes]"
532 .BR charon.plugins.eap-simaka-sql.database
535 .BR charon.plugins.eap-simaka-sql.remove_used " [no]"
538 .BR charon.plugins.eap-tls.fragment_size " [1024]"
539 Maximum size of an EAP-TLS packet
541 .BR charon.plugins.eap-tls.max_message_count " [32]"
542 Maximum number of processed EAP-TLS packets (0 = no limit)
544 .BR charon.plugins.eap-tls.include_length " [yes]"
545 Include length in non-fragmented EAP-TLS packets
547 .BR charon.plugins.eap-tnc.max_message_count " [10]"
548 Maximum number of processed EAP-TNC packets (0 = no limit)
550 .BR charon.plugins.eap-tnc.protocol " [tnccs-1.1]"
551 IF-TNCCS protocol version to be used (tnccs-1.1, tnccs-2.0, tnccs-dynamic)
553 .BR charon.plugins.eap-ttls.fragment_size " [1024]"
554 Maximum size of an EAP-TTLS packet
556 .BR charon.plugins.eap-ttls.max_message_count " [32]"
557 Maximum number of processed EAP-TTLS packets (0 = no limit)
559 .BR charon.plugins.eap-ttls.include_length " [yes]"
560 Include length in non-fragmented EAP-TTLS packets
562 .BR charon.plugins.eap-ttls.phase2_method " [md5]"
563 Phase2 EAP client authentication method
565 .BR charon.plugins.eap-ttls.phase2_piggyback " [no]"
566 Phase2 EAP Identity request piggybacked by server onto TLS Finished message
568 .BR charon.plugins.eap-ttls.phase2_tnc " [no]"
569 Start phase2 EAP TNC protocol after successful client authentication
571 .BR charon.plugins.eap-ttls.request_peer_auth " [no]"
572 Request peer authentication based on a client certificate
574 .BR charon.plugins.error-notify.socket " [unix://${piddir}/charon.enfy]"
575 Socket provided by the error-notify plugin
577 .BR charon.plugins.ha.autobalance " [0]"
578 Interval in seconds to automatically balance handled segments between nodes.
581 .BR charon.plugins.ha.fifo_interface " [yes]"
584 .BR charon.plugins.ha.heartbeat_delay " [1000]"
587 .BR charon.plugins.ha.heartbeat_timeout " [2100]"
590 .BR charon.plugins.ha.local
593 .BR charon.plugins.ha.monitor " [yes]"
596 .BR charon.plugins.ha.pools
599 .BR charon.plugins.ha.remote
602 .BR charon.plugins.ha.resync " [yes]"
605 .BR charon.plugins.ha.secret
608 .BR charon.plugins.ha.segment_count " [1]"
611 .BR charon.plugins.ipseckey.enable " [no]"
612 Enable the fetching of IPSECKEY RRs via DNS
614 .BR charon.plugins.led.activity_led
617 .BR charon.plugins.led.blink_time " [50]"
620 .BR charon.plugins.kernel-klips.ipsec_dev_count " [4]"
621 Number of ipsecN devices
623 .BR charon.plugins.kernel-klips.ipsec_dev_mtu " [0]"
624 Set MTU of ipsecN device
626 .BR charon.plugins.kernel-netlink.roam_events " [yes]"
627 Whether to trigger roam events when interfaces, addresses or routes change
629 .BR charon.plugins.kernel-pfroute.vip_wait " [1000]"
630 Time in ms to wait until virtual IP addresses appear/disappear before failing.
632 .BR charon.plugins.load-tester
633 Section to configure the load-tester plugin, see LOAD TESTS
635 .BR charon.plugins.lookip.socket " [unix://${piddir}/charon.lkp]"
636 Socket provided by the lookip plugin
638 .BR charon.plugins.radattr.dir
639 Directory where RADIUS attributes are stored in client-ID specific files.
641 .BR charon.plugins.radattr.message_id " [-1]"
642 Attributes are added to all IKE_AUTH messages by default (-1), or only to the
643 IKE_AUTH message with the given IKEv2 message ID.
645 .BR charon.plugins.resolve.file " [/etc/resolv.conf]"
646 File where to add DNS server entries
648 .BR charon.plugins.resolve.resolvconf.iface_prefix " [lo.inet.ipsec.]"
649 Prefix used for interface names sent to resolvconf(8). The nameserver address
650 is appended to this prefix to make it unique. The result has to be a valid
651 interface name according to the rules defined by resolvconf. Also, it should
652 have a high priority according to the order defined in interface-order(5).
654 .BR charon.plugins.socket-default.set_source " [yes]"
655 Set source address on outbound packets, if possible.
657 .BR charon.plugins.socket-default.use_ipv4 " [yes]"
658 Listen on IPv4, if possible.
660 .BR charon.plugins.socket-default.use_ipv6 " [yes]"
661 Listen on IPv6, if possible.
663 .BR charon.plugins.sql.database
664 Database URI for charons SQL plugin
666 .BR charon.plugins.sql.loglevel " [-1]"
667 Loglevel for logging to SQL database
669 .BR charon.plugins.stroke.ignore_missing_ca_basic_constraint " [no]"
670 Treat certificates in ipsec.d/cacerts and ipsec.conf ca sections as CA
671 certificates even if they don't contain a CA basic constraint.
673 .BR charon.plugins.stroke.max_concurrent " [4]"
674 Maximum number of stroke messages handled concurrently
676 .BR charon.plugins.stroke.socket " [unix://${piddir}/charon.ctl]"
677 Socket provided by the stroke plugin
679 .BR charon.plugins.stroke.timeout " [0]"
680 Timeout in ms for any stroke command. Use 0 to disable the timeout
682 .BR charon.plugins.systime-fix.interval " [0]"
683 Interval in seconds to check system time for validity. 0 disables the check
685 .BR charon.plugins.systime-fix.reauth " [no]"
686 Whether to use reauth or delete if an invalid cert lifetime is detected
688 .BR charon.plugins.systime-fix.threshold
689 Threshold date where system time is considered valid. Disabled if not specified
691 .BR charon.plugins.systime-fix.threshold_format " [%Y]"
692 strptime(3) format used to parse threshold option
694 .BR charon.plugins.tnccs-11.max_message_size " [45000]"
695 Maximum size of a PA-TNC message (XML & Base64 encoding)
697 .BR charon.plugins.tnccs-20.max_batch_size " [65522]"
698 Maximum size of a PB-TNC batch (upper limit via PT-EAP = 65529)
700 .BR charon.plugins.tnccs-20.max_message_size " [65490]"
701 Maximum size of a PA-TNC message (upper limit via PT-EAP = 65497)
703 .BR charon.plugins.tnc-ifmap.client_cert
704 Path to X.509 certificate file of IF-MAP client
706 .BR charon.plugins.tnc-ifmap.client_key
707 Path to private key file of IF-MAP client
709 .BR charon.plugins.tnc-ifmap.device_name
710 Unique name of strongSwan server as a PEP and/or PDP device
712 .BR charon.plugins.tnc-ifmap.renew_session_interval " [150]"
713 Interval in seconds between periodic IF-MAP RenewSession requests
715 .BR charon.plugins.tnc-ifmap.server_uri " [https://localhost:8444/imap]"
716 URI of the form [https://]servername[:port][/path]
718 .BR charon.plugins.tnc-ifmap.server_cert
719 Path to X.509 certificate file of IF-MAP server
721 .BR charon.plugins.tnc-ifmap.username_password
722 Credentials of IF-MAP client of the form username:password
724 .BR charon.plugins.tnc-imc.dlclose " [yes]"
727 .BR charon.plugins.tnc-imc.preferred_language " [en]"
728 Preferred language for TNC recommendations
730 .BR charon.plugins.tnc-imv.dlclose " [yes]"
733 .BR charon.plugins.tnc-pdp.pt_tls.port " [271]"
734 PT-TLS server port the strongSwan PDP is listening on
736 .BR charon.plugins.tnc-pdp.radius.method " [ttls]"
737 EAP tunnel method to be used
739 .BR charon.plugins.tnc-pdp.radius.port " [1812]"
740 RADIUS server port the strongSwan PDP is listening on
742 .BR charon.plugins.tnc-pdp.radius.secret
743 Shared RADIUS secret between strongSwan PDP and NAS
745 .BR charon.plugins.tnc-pdp.server
746 Name of the strongSwan PDP as contained in the AAA certificate
748 .BR charon.plugins.tnc-pdp.timeout
749 Timeout in seconds before closing incomplete connections
751 .BR charon.plugins.updown.dns_handler " [no]"
752 Whether the updown script should handle DNS serves assigned via IKEv1 Mode
753 Config or IKEv2 Config Payloads (if enabled they can't be handled by other
754 plugins, like resolve)
756 .BR charon.plugins.whitelist.enable " [yes]"
757 Enable loaded whitelist plugin
759 .BR charon.plugins.whitelist.socket " [unix://${piddir}/charon.wlst]"
760 Socket provided by the whitelist plugin
762 .BR charon.plugins.xauth-eap.backend " [radius]"
763 EAP plugin to be used as backend for XAuth credential verification
765 .BR charon.plugins.xauth-pam.pam_service " [login]"
766 PAM service to be used for authentication
767 .SS libstrongswan section
769 .BR libstrongswan.cert_cache " [yes]"
770 Whether relations in validated certificate chains should be cached in memory
772 .BR libstrongswan.crypto_test.bench " [no]"
775 .BR libstrongswan.crypto_test.bench_size " [1024]"
778 .BR libstrongswan.crypto_test.bench_time " [50]"
781 .BR libstrongswan.crypto_test.on_add " [no]"
782 Test crypto algorithms during registration
784 .BR libstrongswan.crypto_test.on_create " [no]"
785 Test crypto algorithms on each crypto primitive instantiation
787 .BR libstrongswan.crypto_test.required " [no]"
788 Strictly require at least one test vector to enable an algorithm
790 .BR libstrongswan.crypto_test.rng_true " [no]"
791 Whether to test RNG with TRUE quality; requires a lot of entropy
793 .BR libstrongswan.dh_exponent_ansi_x9_42 " [yes]"
794 Use ANSI X9.42 DH exponent size or optimum size matched to cryptographical
797 .BR libstrongswan.ecp_x_coordinate_only " [yes]"
798 Compliance with the errata for RFC 4753
800 .BR libstrongswan.host_resolver.max_threads " [3]"
801 Maximum number of concurrent resolver threads (they are terminated if unused)
803 .BR libstrongswan.host_resolver.min_threads " [0]"
804 Minimum number of resolver threads to keep around
806 .BR libstrongswan.integrity_test " [no]"
807 Check daemon, libstrongswan and plugin integrity at startup
809 .BR libstrongswan.leak_detective.detailed " [yes]"
810 Includes source file names and line numbers in leak detective output
812 .BR libstrongswan.leak_detective.usage_threshold " [10240]"
813 Threshold in bytes for leaks to be reported (0 to report all)
815 .BR libstrongswan.leak_detective.usage_threshold_count " [0]"
816 Threshold in number of allocations for leaks to be reported (0 to report all)
818 .BR libstrongswan.processor.priority_threads
819 Subsection to configure the number of reserved threads per priority class
820 see JOB PRIORITY MANAGEMENT
822 .BR libstrongswan.x509.enforce_critical " [yes]"
823 Discard certificates with unsupported or unknown critical extensions
824 .SS libstrongswan.plugins subsection
826 .BR libstrongswan.plugins.attr-sql.database
827 Database URI for attr-sql plugin used by charon
829 .BR libstrongswan.plugins.attr-sql.lease_history " [yes]"
830 Enable logging of SQL IP pool leases
832 .BR libstrongswan.plugins.gcrypt.quick_random " [no]"
833 Use faster random numbers in gcrypt; for testing only, produces weak keys!
835 .BR libstrongswan.plugins.openssl.engine_id " [pkcs11]"
836 ENGINE ID to use in the OpenSSL plugin
838 .BR libstrongswan.plugins.openssl.fips_mode " [0]"
839 Set OpenSSL FIPS mode: disabled(0), enabled(1), Suite B enabled(2)
841 .BR libstrongswan.plugins.pkcs11.modules
842 List of available PKCS#11 modules
844 .BR libstrongswan.plugins.pkcs11.load_certs " [yes]"
845 Whether to load certificates from tokens
847 .BR libstrongswan.plugins.pkcs11.reload_certs " [no]"
848 Reload certificates from all tokens if charon receives a SIGHUP
850 .BR libstrongswan.plugins.pkcs11.use_dh " [no]"
851 Whether the PKCS#11 modules should be used for DH and ECDH (see use_ecc option)
853 .BR libstrongswan.plugins.pkcs11.use_ecc " [no]"
854 Whether the PKCS#11 modules should be used for ECDH and ECDSA public key
855 operations. ECDSA private keys can be used regardless of this option
857 .BR libstrongswan.plugins.pkcs11.use_hasher " [no]"
858 Whether the PKCS#11 modules should be used to hash data
860 .BR libstrongswan.plugins.pkcs11.use_pubkey " [no]"
861 Whether the PKCS#11 modules should be used for public key operations, even for
862 keys not stored on tokens
864 .BR libstrongswan.plugins.pkcs11.use_rng " [no]"
865 Whether the PKCS#11 modules should be used as RNG
867 .BR libstrongswan.plugins.random.random " [@DEV_RANDOM@]"
868 File to read random bytes from, instead of @DEV_RANDOM@
870 .BR libstrongswan.plugins.random.urandom " [@DEV_URANDOM@]"
871 File to read pseudo random bytes from, instead of @DEV_URANDOM@
873 .BR libstrongswan.plugins.unbound.resolv_conf " [/etc/resolv.conf]"
874 File to read DNS resolver configuration from
876 .BR libstrongswan.plugins.unbound.trust_anchors " [/etc/ipsec.d/dnssec.keys]"
877 File to read DNSSEC trust anchors from (usually root zone KSK)
881 List of TLS encryption ciphers
883 .BR libtls.key_exchange
884 List of TLS key exchange methods
887 List of TLS MAC algorithms
890 List of TLS cipher suites
893 .BR libtnccs.tnc_config " [/etc/tnc_config]"
894 TNC IMC/IMV configuration directory
897 .BR libimcv.assessment_result " [yes]"
898 Whether IMVs send a standard IETF Assessment Result attribute
901 Global IMV policy database URI
903 .BR libimcv.debug_level " [1]"
904 Debug level for a stand-alone libimcv library
906 .BR libimcv.load " [random nonce gmp pubkey x509]"
907 Plugins to load in IMC/IMVs
909 .BR libimcv.os_info.name
910 Manually set the name of the client OS (e.g. Ubuntu)
912 .BR libimcv.os_info.version
913 Manually set the version of the client OS (e.g. 12.04 i686)
915 .BR libimcv.policy_script " [ipsec _imv_policy]"
916 Script called for each TNC connection to generate IMV policies
918 .BR libimcv.stderr_quiet " [no]"
919 isable output to stderr with a stand-alone libimcv library
921 .SS libimcv plugins section
923 .BR libimcv.plugins.imc-attestation.aik_blob
924 AIK encrypted private key blob file
926 .BR libimcv.plugins.imc-attestation.aik_cert
929 .BR libimcv.plugins.imc-attestation.aik_key
932 .BR libimcv.plugins.imv-attestation.nonce_len " [20]"
935 .BR libimcv.plugins.imv-attestation.use_quote2 " [yes]"
936 Use Quote2 AIK signature instead of Quote signature
938 .BR libimcv.plugins.imv-attestation.cadir
939 Path to directory with AIK cacerts
941 .BR libimcv.plugins.imv-attestation.dh_group " [ecp256]"
942 Preferred Diffie-Hellman group
944 .BR libimcv.plugins.imv-attestation.hash_algorithm " [sha256]"
945 Preferred measurement hash algorithm
947 .BR libimcv.plugins.imv-attestation.min_nonce_len " [0]"
948 DH minimum nonce length
950 .BR libimcv.plugins.imv-attestation.remediation_uri
951 URI pointing to attestation remediation instructions
953 .BR libimcv.plugins.imc-os.push_info " [yes]"
954 Send operating system info without being prompted
956 .BR libimcv.plugins.imv-os.remediation_uri
957 URI pointing to operating system remediation instructions
959 .BR libimcv.plugins.imc-scanner.push_info " [yes]"
960 Send open listening ports without being prompted
962 .BR libimcv.plugins.imv-scanner.remediation_uri
963 URI pointing to scanner remediation instructions
965 .BR libimcv.plugins.imc-test.additional_ids " [0]"
966 Number of additional IMC IDs
968 .BR libimcv.plugins.imc-test.command " [none]"
969 Command to be sent to the Test IMV
971 .BR libimcv.plugins.imc-test.dummy_size " [0]"
972 Size of dummy attribute to be sent to the Test IMV (0 = disabled)
974 .BR libimcv.plugins.imv-test.remediation_uri
975 URI pointing to test remediation instructions
977 .BR libimcv.plugins.imc-test.retry " [no]"
980 .BR libimcv.plugins.imc-test.retry_command
981 Command to be sent to the Test IMV in the handshake retry
983 .BR libimcv.plugins.imv-test.rounds " [0]"
984 Number of IMC-IMV retry rounds
988 Credential database URI for manager
990 .BR manager.debug " [no]"
991 Enable debugging in manager
994 Plugins to load in manager
997 FastCGI socket of manager, to run it statically
999 .BR manager.threads " [10]"
1000 Threads to use for request handling
1002 .BR manager.timeout " [15m]"
1003 Session timeout for manager
1004 .SS mediation client section
1007 Mediation client database URI
1009 .BR medcli.dpd " [5m]"
1010 DPD timeout to use in mediation client plugin
1012 .BR medcli.rekey " [20m]"
1013 Rekeying time on mediation connections in mediation client plugin
1014 .SS mediation server section
1017 Mediation server database URI
1019 .BR medsrv.debug " [no]"
1020 Debugging in mediation server web application
1022 .BR medsrv.dpd " [5m]"
1023 DPD timeout to use in mediation server plugin
1026 Plugins to load in mediation server plugin
1028 .BR medsrv.password_length " [6]"
1029 Minimum password length required for mediation server user accounts
1031 .BR medsrv.rekey " [20m]"
1032 Rekeying time on mediation connections in mediation server plugin
1035 Run Mediation server web application statically on socket
1037 .BR medsrv.threads " [5]"
1038 Number of thread for mediation service web application
1040 .BR medsrv.timeout " [15m]"
1041 Session timeout for mediation service
1045 Plugins to load in ipsec openac tool
1049 Database URI for the database that stores the package information
1053 Plugins to load in ipsec pki tool
1057 Plugins to load in ipsec pool tool
1058 .SS scepclient section
1061 Plugins to load in ipsec scepclient tool
1065 Plugins to load in starter
1067 .BR starter.load_warning " [yes]"
1068 Disable charon plugin load option warning
1070 .SH LOGGER CONFIGURATION
1071 The options described below provide a much more flexible way to configure
1072 loggers for the IKEv2 daemon charon than using the
1078 that if any loggers are specified in strongswan.conf,
1080 does not have any effect.
1082 There are currently two types of loggers defined:
1085 Log directly to a file and are defined by specifying the full path to the
1086 file as subsection in the
1088 section. To log to the console the two special filenames
1089 .BR stdout " and " stderr
1093 Log into a syslog facility and are defined by specifying the facility to log to
1094 as the name of a subsection in the
1096 section. The following facilities are currently supported:
1097 .BR daemon " and " auth .
1099 Multiple loggers can be defined for each type with different log verbosity for
1100 the different subsystems of the daemon.
1103 .BR charon.filelog.<filename>.default " [1]"
1105 .BR charon.syslog.<facility>.default
1106 Specifies the default loglevel to be used for subsystems for which no specific
1107 loglevel is defined.
1109 .BR charon.filelog.<filename>.<subsystem> " [<default>]"
1111 .BR charon.syslog.<facility>.<subsystem>
1112 Specifies the loglevel for the given subsystem.
1114 .BR charon.filelog.<filename>.append " [yes]"
1115 If this option is enabled log entries are appended to the existing file.
1117 .BR charon.filelog.<filename>.flush_line " [no]"
1118 Enabling this option disables block buffering and enables line buffering.
1120 .BR charon.filelog.<filename>.ike_name " [no]"
1122 .BR charon.syslog.<facility>.ike_name
1123 Prefix each log entry with the connection name and a unique numerical
1124 identifier for each IKE_SA.
1126 .BR charon.filelog.<filename>.time_format
1127 Prefix each log entry with a timestamp. The option accepts a format string as
1131 .BR charon.syslog.identifier
1132 Global identifier used for an
1134 call, prepended to each log message by syslog. If not configured,
1136 is not called, so the value will depend on system defaults (often the program
1142 Main daemon setup/cleanup/signal handling
1145 IKE_SA manager, handling synchronization for IKE_SA access
1154 Jobs queueing/processing and thread pool management
1157 Configuration management and plugins
1160 IPsec/Networking kernel interface
1163 IKE network communication
1166 Low-level encoding/decoding (ASN.1, X.509 etc.)
1169 Packet encoding/decoding encryption/decryption operations
1172 libtls library messages
1175 libipsec library messages
1178 libstrongwan library messages
1181 Trusted Network Connect
1184 Integrity Measurement Collector
1187 Integrity Measurement Verifier
1190 Platform Trust Service
1197 Very basic auditing logs, (e.g. SA up/SA down)
1200 Generic control flow with errors, a good default to see whats going on
1203 More detailed debugging control flow
1206 Including RAW data dumps in Hex
1209 Also include sensitive material in dumps, e.g. keys
1215 /var/log/charon.log {
1216 time_format = %b %e %T
1227 # enable logging to LOG_DAEMON, use defaults
1230 # minimalistic IKE auditing logging to LOG_AUTHPRIV
1239 .SH JOB PRIORITY MANAGEMENT
1240 Some operations in the IKEv2 daemon charon are currently implemented
1241 synchronously and blocking. Two examples for such operations are communication
1242 with a RADIUS server via EAP-RADIUS, or fetching CRL/OCSP information during
1243 certificate chain verification. Under high load conditions, the thread pool may
1244 run out of available threads, and some more important jobs, such as liveness
1245 checking, may not get executed in time.
1247 To prevent thread starvation in such situations job priorities were introduced.
1248 The job processor will reserve some threads for higher priority jobs, these
1249 threads are not available for lower priority, locking jobs.
1251 Currently 4 priorities have been defined, and they are used in charon as
1255 Priority for long-running dispatcher jobs.
1258 INFORMATIONAL exchanges, as used by liveness checking (DPD).
1261 Everything not HIGH/LOW, including IKE_SA_INIT processing.
1264 IKE_AUTH message processing. RADIUS and CRL fetching block here
1266 Although IKE_SA_INIT processing is computationally expensive, it is explicitly
1267 assigned to the MEDIUM class. This allows charon to do the DH exchange while
1268 other threads are blocked in IKE_AUTH. To prevent the daemon from accepting more
1269 IKE_SA_INIT requests than it can handle, use IKE_SA_INIT DROPPING.
1271 The thread pool processes jobs strictly by priority, meaning it will consume all
1272 higher priority jobs before looking for ones with lower priority. Further, it
1273 reserves threads for certain priorities. A priority class having reserved
1275 threads will always have
1277 threads available for this class (either currently processing a job, or waiting
1280 To ensure that there are always enough threads available for higher priority
1281 tasks, threads must be reserved for each priority class.
1283 .BR libstrongswan.processor.priority_threads.critical " [0]"
1284 Threads reserved for CRITICAL priority class jobs
1286 .BR libstrongswan.processor.priority_threads.high " [0]"
1287 Threads reserved for HIGH priority class jobs
1289 .BR libstrongswan.processor.priority_threads.medium " [0]"
1290 Threads reserved for MEDIUM priority class jobs
1292 .BR libstrongswan.processor.priority_threads.low " [0]"
1293 Threads reserved for LOW priority class jobs
1295 Let's consider the following configuration:
1308 With this configuration, one thread is reserved for HIGH priority tasks. As
1309 currently only liveness checking and stroke message processing is done with
1310 high priority, one or two threads should be sufficient.
1312 The MEDIUM class mostly processes non-blocking jobs. Unless your setup is
1313 experiencing many blocks in locks while accessing shared resources, threads for
1314 one or two times the number of CPU cores is fine.
1316 It is usually not required to reserve threads for CRITICAL jobs. Jobs in this
1317 class rarely return and do not release their thread to the pool.
1319 The remaining threads are available for LOW priority jobs. Reserving threads
1320 does not make sense (until we have an even lower priority).
1322 To see what the threads are actually doing, invoke
1323 .IR "ipsec statusall" .
1324 Under high load, something like this will show up:
1327 worker threads: 2 or 32 idle, 5/1/2/22 working,
1328 job queue: 0/0/1/149, scheduled: 198
1331 From 32 worker threads,
1335 are running CRITICAL priority jobs (dispatching from sockets, etc.).
1337 is currently handling a HIGH priority job. This is actually the thread currently
1338 providing this information via stroke.
1340 are handling MEDIUM priority jobs, likely IKE_SA_INIT or CREATE_CHILD_SA
1343 are handling LOW priority jobs, probably waiting for an EAP-RADIUS response
1344 while processing IKE_AUTH messages.
1346 The job queue load shows how many jobs are queued for each priority, ready for
1347 execution. The single MEDIUM priority job will get executed immediately, as
1348 we have two spare threads reserved for MEDIUM class jobs.
1350 .SH IKE_SA_INIT DROPPING
1351 If a responder receives more connection requests per seconds than it can handle,
1352 it does not make sense to accept more IKE_SA_INIT messages. And if they are
1353 queued but can't get processed in time, an answer might be sent after the
1354 client has already given up and restarted its connection setup. This
1355 additionally increases the load on the responder.
1357 To limit the responder load resulting from new connection attempts, the daemon
1358 can drop IKE_SA_INIT messages just after reception. There are two mechanisms to
1359 decide if this should happen, configured with the following options:
1361 .BR charon.init_limit_half_open " [0]"
1362 Limit based on the number of half open IKE_SAs. Half open IKE_SAs are SAs in
1363 connecting state, but not yet established.
1365 .BR charon.init_limit_job_load " [0]"
1366 Limit based on the number of jobs currently queued for processing (sum over all
1369 The second limit includes load from other jobs, such as rekeying. Choosing a
1370 good value is difficult and depends on the hardware and expected load.
1372 The first limit is simpler to calculate, but includes the load from new
1373 connections only. If your responder is capable of negotiating 100 tunnels/s, you
1374 might set this limit to 1000. The daemon will then drop new connection attempts
1375 if generating a response would require more than 10 seconds. If you are
1376 allowing for a maximum response time of more than 30 seconds, consider adjusting
1377 the timeout for connecting IKE_SAs
1378 .RB ( charon.half_open_timeout ).
1379 A responder, by default, deletes an IKE_SA if the initiator does not establish
1380 it within 30 seconds. Under high load, a higher value might be required.
1383 To do stability testing and performance optimizations, the IKEv2 daemon charon
1384 provides the load-tester plugin. This plugin allows one to setup thousands of
1385 tunnels concurrently against the daemon itself or a remote host.
1388 Never enable the load-testing plugin on productive systems. It provides
1389 preconfigured credentials and allows an attacker to authenticate as any user.
1392 .BR charon.plugins.load-tester.addrs
1393 Subsection that contains key/value pairs with address pools (in CIDR notation)
1394 to use for a specific network interface e.g. eth0 = 10.10.0.0/16
1396 .BR charon.plugins.load-tester.addrs_keep " [no]"
1397 Whether to keep dynamic addresses even after the associated SA got terminated
1399 .BR charon.plugins.load-tester.addrs_prefix " [16]"
1400 Network prefix length to use when installing dynamic addresses. If set to -1 the
1401 full address is used (i.e. 32 or 128)
1403 .BR charon.plugins.load-tester.ca_dir
1404 Directory to load (intermediate) CA certificates from
1406 .BR charon.plugins.load-tester.child_rekey " [600]"
1407 Seconds to start CHILD_SA rekeying after setup
1409 .BR charon.plugins.load-tester.delay " [0]"
1410 Delay between initiatons for each thread
1412 .BR charon.plugins.load-tester.delete_after_established " [no]"
1413 Delete an IKE_SA as soon as it has been established
1415 .BR charon.plugins.load-tester.digest " [sha1]"
1416 Digest algorithm used when issuing certificates
1418 .BR charon.plugins.load-tester.dpd_delay " [0]"
1419 DPD delay to use in load test
1421 .BR charon.plugins.load-tester.dynamic_port " [0]"
1422 Base port to be used for requests (each client uses a different port)
1424 .BR charon.plugins.load-tester.eap_password " [default-pwd]"
1425 EAP secret to use in load test
1427 .BR charon.plugins.load-tester.enable " [no]"
1428 Enable the load testing plugin
1430 .BR charon.plugins.load-tester.esp " [aes128-sha1]"
1431 CHILD_SA proposal to use for load tests
1433 .BR charon.plugins.load-tester.fake_kernel " [no]"
1434 Fake the kernel interface to allow load-testing against self
1436 .BR charon.plugins.load-tester.ike_rekey " [0]"
1437 Seconds to start IKE_SA rekeying after setup
1439 .BR charon.plugins.load-tester.init_limit " [0]"
1440 Global limit of concurrently established SAs during load test
1442 .BR charon.plugins.load-tester.initiator " [0.0.0.0]"
1443 Address to initiate from
1445 .BR charon.plugins.load-tester.initiators " [0]"
1446 Number of concurrent initiator threads to use in load test
1448 .BR charon.plugins.load-tester.initiator_auth " [pubkey]"
1449 Authentication method(s) the intiator uses
1451 .BR charon.plugins.load-tester.initiator_id
1452 Initiator ID used in load test
1454 .BR charon.plugins.load-tester.initiator_match
1455 Initiator ID to match against as responder
1457 .BR charon.plugins.load-tester.initiator_tsi
1458 Traffic selector on initiator side, as proposed by initiator
1460 .BR charon.plugins.load-tester.initiator_tsr
1461 Traffic selector on responder side, as proposed by initiator
1463 .BR charon.plugins.load-tester.iterations " [1]"
1464 Number of IKE_SAs to initiate by each initiator in load test
1466 .BR charon.plugins.load-tester.issuer_cert
1467 Path to the issuer certificate (if not configured a hard-coded value is used)
1469 .BR charon.plugins.load-tester.issuer_key
1470 Path to private key that is used to issue certificates (if not configured a
1471 hard-coded value is used)
1473 .BR charon.plugins.load-tester.pool
1474 Provide INTERNAL_IPV4_ADDRs from a named pool
1476 .BR charon.plugins.load-tester.preshared_key " [default-psk]"
1477 Preshared key to use in load test
1479 .BR charon.plugins.load-tester.proposal " [aes128-sha1-modp768]"
1480 IKE proposal to use in load test
1482 .BR charon.plugins.load-tester.responder " [127.0.0.1]"
1483 Address to initiation connections to
1485 .BR charon.plugins.load-tester.responder_auth " [pubkey]"
1486 Authentication method(s) the responder uses
1488 .BR charon.plugins.load-tester.responder_id
1489 Responder ID used in load test
1491 .BR charon.plugins.load-tester.responder_tsi " [initiator_tsi]"
1492 Traffic selector on initiator side, as narrowed by responder
1494 .BR charon.plugins.load-tester.responder_tsr " [initiator_tsr]"
1495 Traffic selector on responder side, as narrowed by responder
1497 .BR charon.plugins.load-tester.request_virtual_ip " [no]"
1498 Request an INTERNAL_IPV4_ADDR from the server
1500 .BR charon.plugins.load-tester.shutdown_when_complete " [no]"
1501 Shutdown the daemon after all IKE_SAs have been established
1503 .BR charon.plugins.load-tester.socket " [unix://${piddir}/charon.ldt]"
1504 Socket provided by the load-tester plugin
1506 .BR charon.plugins.load-tester.version " [0]"
1507 IKE version to use (0 means use IKEv2 as initiator and accept any version as
1510 .SS Configuration details
1511 For public key authentication, the responder uses the
1512 .B \(dqCN=srv, OU=load-test, O=strongSwan\(dq
1513 identity. For the initiator, each connection attempt uses a different identity
1515 .BR "\(dqCN=c1-r1, OU=load-test, O=strongSwan\(dq" ,
1516 where the first number inidicates the client number, the second the
1517 authentication round (if multiple authentication is used).
1519 For PSK authentication, FQDN identities are used. The server uses
1520 .BR srv.strongswan.org ,
1521 the client uses an identity in the form
1522 .BR c1-r1.strongswan.org .
1524 For EAP authentication, the client uses a NAI in the form
1525 .BR 100000000010001@strongswan.org .
1527 To configure multiple authentication, concatenate multiple methods using, e.g.
1529 initiator_auth = pubkey|psk|eap-md5|eap-aka
1532 The responder uses a hardcoded certificate based on a 1024-bit RSA key.
1533 This certificate additionally serves as CA certificate. A peer uses the same
1534 private key, but generates client certificates on demand signed by the CA
1535 certificate. Install the Responder/CA certificate on the remote host to
1536 authenticate all clients.
1538 To speed up testing, the load tester plugin implements a special Diffie-Hellman
1539 implementation called modpnull. By setting
1541 proposal = aes128-sha1-modpnull
1543 this wicked fast DH implementation is used. It does not provide any security
1544 at all, but allows one to run tests without DH calculation overhead.
1547 In the simplest case, the daemon initiates IKE_SAs against itself using the
1548 loopback interface. This will actually establish double the number of IKE_SAs,
1549 as the daemon is initiator and responder for each IKE_SA at the same time.
1550 Installation of IPsec SAs would fails, as each SA gets installed twice. To
1551 simulate the correct behavior, a fake kernel interface can be enabled which does
1552 not install the IPsec SAs at the kernel level.
1554 A simple loopback configuration might look like this:
1558 # create new IKE_SAs for each CHILD_SA to simulate
1561 # turn off denial of service protection
1568 # use 4 threads to initiate connections
1571 # each thread initiates 1000 connections
1573 # delay each initiation in each thread by 20ms
1575 # enable the fake kernel interface to
1576 # avoid SA conflicts
1583 This will initiate 4000 IKE_SAs within 20 seconds. You may increase the delay
1584 value if your box can not handle that much load, or decrease it to put more
1585 load on it. If the daemon starts retransmitting messages your box probably can
1586 not handle all connection attempts.
1588 The plugin also allows one to test against a remote host. This might help to
1589 test against a real world configuration. A connection setup to do stress
1590 testing of a gateway might look like this:
1600 # 10000 connections, ten in parallel
1603 # use a delay of 100ms, overall time is:
1604 # iterations * delay = 100s
1606 # address of the gateway
1608 # IKE-proposal to use
1609 proposal = aes128-sha1-modp1024
1610 # use faster PSK authentication instead
1612 initiator_auth = psk
1613 responder_auth = psk
1614 # request a virtual IP using configuration
1616 request_virtual_ip = yes
1617 # enable CHILD_SA every 60s
1624 .SH IKEv2 RETRANSMISSION
1625 Retransmission timeouts in the IKEv2 daemon charon can be configured globally
1626 using the three keys listed below:
1630 .BR charon.retransmit_base " [1.8]"
1631 .BR charon.retransmit_timeout " [4.0]"
1632 .BR charon.retransmit_tries " [5]"
1636 The following algorithm is used to calculate the timeout:
1639 relative timeout = retransmit_timeout * retransmit_base ^ (n-1)
1644 is the current retransmission count.
1646 Using the default values, packets are retransmitted in:
1652 Retransmission Relative Timeout Absolute Timeout
1662 /etc/strongswan.conf
1665 \fBipsec.conf\fR(5), \fBipsec.secrets\fR(5), \fBipsec\fR(8), \fBcharon-cmd\fR(8)
1669 .UR http://www.strongswan.org
1672 by Tobias Brunner, Andreas Steffen and Martin Willi.