1 .TH STRONGSWAN.CONF 5 "2011-07-17" "@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.
131 .BR charon.block_threshold " [5]"
132 Maximum number of half-open IKE_SAs for a single peer IP
134 .BR charon.close_ike_on_child_failure " [no]"
135 Close the IKE_SA if setup of the CHILD_SA along with IKE_AUTH failed
137 .BR charon.cookie_threshold " [10]"
138 Number of half-open IKE_SAs that activate the cookie mechanism
143 DNS servers assigned to peer via configuration payload (CP)
145 .BR charon.dos_protection " [yes]"
146 Enable Denial of Service protection using cookies and aggressiveness checks
149 Section to define file loggers, see LOGGER CONFIGURATION
151 .BR charon.flush_auth_cfg " [no]"
154 .BR charon.hash_and_url " [no]"
155 Enable hash and URL support
157 .BR charon.ignore_routing_tables
158 A list of routing tables to be excluded from route lookup
160 .BR charon.ikesa_table_segments " [1]"
161 Number of exclusively locked segments in the hash table
163 .BR charon.ikesa_table_size " [1]"
164 Size of the IKE_SA hash table
166 .BR charon.inactivity_close_ike " [no]"
167 Whether to close IKE_SA if the only CHILD_SA closed due to inactivity
169 .BR charon.install_routes " [yes]"
170 Install routes into a separate routing table for established IPsec tunnels
172 .BR charon.install_virtual_ip " [yes]"
173 Install virtual IP addresses
175 .BR charon.keep_alive " [20s]"
176 NAT keep alive interval
179 Plugins to load in the IKEv2 daemon charon
181 .BR charon.max_packet " [10000]"
182 Maximum packet size accepted by charon
184 .BR charon.multiple_authentication " [yes]"
185 Enable multiple authentication exchanges (RFC 4739)
190 WINS servers assigned to peer via configuration payload (CP)
192 .BR charon.process_route " [yes]"
193 Process RTM_NEWROUTE and RTM_DELROUTE events
195 .BR charon.receive_delay " [0]"
196 Delay for receiving packets, to simulate larger RTT
198 .BR charon.receive_delay_response " [yes]"
199 Delay response messages
201 .BR charon.receive_delay_request " [yes]"
202 Delay request messages
204 .BR charon.receive_delay_type " [0]"
205 Specific IKEv2 message type to delay, 0 for any
207 .BR charon.replay_window " [32]"
208 Size of the AH/ESP replay window, in packets.
210 .BR charon.retransmit_base " [1.8]"
211 Base to use for calculating exponential back off, see IKEv2 RETRANSMISSION
213 .BR charon.retransmit_timeout " [4.0]
214 Timeout in seconds before sending first retransmit
216 .BR charon.retransmit_tries " [5]"
217 Number of times to retransmit a packet before giving up
219 .BR charon.reuse_ikesa " [yes]
220 Initiate CHILD_SA within existing IKE_SAs
222 .BR charon.routing_table
223 Numerical routing table to install routes to
225 .BR charon.routing_table_prio
226 Priority of the routing table
228 .BR charon.send_delay " [0]"
229 Delay for sending packets, to simulate larger RTT
231 .BR charon.send_delay_response " [yes]"
232 Delay response messages
234 .BR charon.send_delay_request " [yes]"
235 Delay request messages
237 .BR charon.send_delay_type " [0]"
238 Specific IKEv2 message type to delay, 0 for any
240 .BR charon.send_vendor_id " [no]
241 Send strongSwan vendor ID payload
244 Section to define syslog loggers, see LOGGER CONFIGURATION
246 .BR charon.threads " [16]"
247 Number of worker threads in charon
248 .SS charon.plugins subsection
250 .BR charon.plugins.android.loglevel " [1]"
251 Loglevel for logging to Android specific logger
253 .BR charon.plugins.attr
254 Section to specify arbitrary attributes that are assigned to a peer via
255 configuration payload (CP)
257 .BR charon.plugins.dhcp.identity_lease " [no]"
258 Derive user-defined MAC address from hash of IKEv2 identity
260 .BR charon.plugins.dhcp.server " [255.255.255.255]"
261 DHCP server unicast or broadcast IP address
263 .BR charon.plugins.duplicheck.enable " [yes]"
264 enable loaded duplicheck plugin
266 .BR charon.plugins.eap-aka.request_identity " [yes]"
269 .BR charon.plugins.eap-aka-3ggp2.seq_check
272 .BR charon.plugins.eap-gtc.pam_service " [login]"
273 PAM service to be used for authentication
276 .BR charon.plugins.eap-peap.fragment_size " [1024]"
277 Maximum size of an EAP-PEAP packet
279 .BR charon.plugins.eap-peap.max_message_count " [32]"
280 Maximum number of processed EAP-PEAP packets
282 .BR charon.plugins.eap-peap.include_length " [no]"
283 Include length in non-fragmented EAP-PEAP packets
285 .BR charon.plugins.eap-peap.phase2_method " [mschapv2]"
286 Phase2 EAP client authentication method
288 .BR charon.plugins.eap-peap.phase2_piggyback " [no]"
289 Phase2 EAP Identity request piggybacked by server onto TLS Finished message
291 .BR charon.plugins.eap-peap.phase2_tnc " [no]"
292 Start phase2 EAP TNC protocol after successful client authentication
294 .BR charon.plugins.eap-peap.request_peer_auth " [no]"
295 Request peer authentication based on a client certificate
298 .BR charon.plugins.eap-radius.class_group " [no]"
301 attribute sent in the RADIUS-Accept message as group membership information that
302 is compared to the groups specified in the
307 .BR charon.plugins.eap-radius.eap_start " [no]"
308 Send EAP-Start instead of EAP-Identity to start RADIUS conversation
310 .BR charon.plugins.eap-radius.filter_id " [no]"
317 attribute sent in the RADIUS-Accept message as group membership information that
318 is compared to the groups specified in the
323 .BR charon.plugins.eap-radius.id_prefix
324 Prefix to EAP-Identity, some AAA servers use a IMSI prefix to select the
327 .BR charon.plugins.eap-radius.nas_identifier " [strongSwan]"
328 NAS-Identifier to include in RADIUS messages
330 .BR charon.plugins.eap-radius.port " [1812]"
331 Port of RADIUS server (authentication)
333 .BR charon.plugins.eap-radius.secret
334 Shared secret between RADIUS and NAS
336 .BR charon.plugins.eap-radius.server
337 IP/Hostname of RADIUS server
339 .BR charon.plugins.eap-radius.servers
340 Section to specify multiple RADIUS servers. The
346 options can be specified for each server. A server's IP/Hostname can be
349 option. For each RADIUS server a priority can be specified using the
350 .BR preference " [0]"
353 .BR charon.plugins.eap-radius.sockets " [1]"
354 Number of sockets (ports) to use, increase for high load
356 .BR charon.plugins.eap-sim.request_identity " [yes]"
359 .BR charon.plugins.eap-simaka-sql.database
362 .BR charon.plugins.eap-simaka-sql.remove_used
365 .BR charon.plugins.eap-tls.fragment_size " [1024]"
366 Maximum size of an EAP-TLS packet
368 .BR charon.plugins.eap-tls.max_message_count " [32]"
369 Maximum number of processed EAP-TLS packets
371 .BR charon.plugins.eap-tls.include_length " [yes]"
372 Include length in non-fragmented EAP-TLS packets
374 .BR charon.plugins.eap-tnc.fragment_size " [50000]"
375 Maximum size of an EAP-TNC packet
377 .BR charon.plugins.eap-tnc.max_message_count " [10]"
378 Maximum number of processed EAP-TNC packets
380 .BR charon.plugins.eap-tnc.include_length " [yes]"
381 Include length in non-fragmented EAP-TNC packets
383 .BR charon.plugins.eap-ttls.fragment_size " [1024]"
384 Maximum size of an EAP-TTLS packet
386 .BR charon.plugins.eap-ttls.max_message_count " [32]"
387 Maximum number of processed EAP-TTLS packets
389 .BR charon.plugins.eap-ttls.include_length " [yes]"
390 Include length in non-fragmented EAP-TTLS packets
392 .BR charon.plugins.eap-ttls.phase2_method " [md5]"
393 Phase2 EAP client authentication method
395 .BR charon.plugins.eap-ttls.phase2_piggyback " [no]"
396 Phase2 EAP Identity request piggybacked by server onto TLS Finished message
398 .BR charon.plugins.eap-ttls.phase2_tnc " [no]"
399 Start phase2 EAP TNC protocol after successful client authentication
401 .BR charon.plugins.eap-ttls.request_peer_auth " [no]"
402 Request peer authentication based on a client certificate
404 .BR charon.plugins.ha.fifo_interface " [yes]"
407 .BR charon.plugins.ha.heartbeat_delay " [1000]"
410 .BR charon.plugins.ha.heartbeat_timeout " [2100]"
413 .BR charon.plugins.ha.local
416 .BR charon.plugins.ha.monitor " [yes]"
419 .BR charon.plugins.ha.pools
422 .BR charon.plugins.ha.remote
425 .BR charon.plugins.ha.resync " [yes]"
428 .BR charon.plugins.ha.secret
431 .BR charon.plugins.ha.segment_count " [1]"
434 .BR charon.plugins.led.activity_led
437 .BR charon.plugins.led.blink_time " [50]"
440 .BR charon.plugins.kernel-klips.ipsec_dev_count " [4]"
441 Number of ipsecN devices
443 .BR charon.plugins.kernel-klips.ipsec_dev_mtu " [0]"
444 Set MTU of ipsecN device
446 .BR charon.plugins.load-tester
447 Section to configure the load-tester plugin, see LOAD TESTS
449 .BR charon.plugins.resolve.file " [/etc/resolv.conf]"
450 File where to add DNS server entries
452 .BR charon.plugins.sql.database
453 Database URI for charons SQL plugin
455 .BR charon.plugins.sql.loglevel " [-1]"
456 Loglevel for logging to SQL database
458 .BR charon.plugins.tnc-imc.preferred_language " [en]"
459 Preferred language for TNC recommendations
461 .BR charon.plugins.tnc-imc.tnc_config " [/etc/tnc_config]"
462 TNC IMC configuration directory
464 .BR charon.plugins.tnc-imv.tnc_config " [/etc/tnc_config]"
465 TNC IMV configuration directory
467 .BR charon.plugins.whitelist.enable " [yes]"
468 enable loaded whitelist plugin
469 .SS libstrongswan section
471 .BR libstrongswan.crypto_test.bench " [no]"
474 .BR libstrongswan.crypto_test.bench_size " [1024]"
477 .BR libstrongswan.crypto_test.bench_time " [50]"
480 .BR libstrongswan.crypto_test.on_add " [no]"
481 Test crypto algorithms during registration
483 .BR libstrongswan.crypto_test.on_create " [no]"
484 Test crypto algorithms on each crypto primitive instantiation
486 .BR libstrongswan.crypto_test.required " [no]"
487 Strictly require at least one test vector to enable an algorithm
489 .BR libstrongswan.crypto_test.rng_true " [no]"
490 Whether to test RNG with TRUE quality; requires a lot of entropy
492 .BR libstrongswan.dh_exponent_ansi_x9_42 " [yes]"
493 Use ANSI X9.42 DH exponent size or optimum size matched to cryptographical
496 .BR libstrongswan.ecp_x_coordinate_only " [yes]"
497 Compliance with the errata for RFC 4753
499 .BR libstrongswan.integrity_test " [no]"
500 Check daemon, libstrongswan and plugin integrity at startup
502 .BR libstrongswan.leak_detective.detailed " [yes]"
503 Includes source file names and line numbers in leak detective output
505 .BR libstrongswan.x509.enforce_critical " [yes]"
506 Discard certificates with unsupported or unknown critical extensions
507 .SS libstrongswan.plugins subsection
509 .BR libstrongswan.plugins.attr-sql.database
510 Database URI for attr-sql plugin used by charon and pluto
512 .BR libstrongswan.plugins.attr-sql.lease_history " [yes]"
513 Enable logging of SQL IP pool leases
515 .BR libstrongswan.plugins.gcrypt.quick_random " [no]"
516 Use faster random numbers in gcrypt; for testing only, produces weak keys!
518 .BR libstrongswan.plugins.openssl.engine_id " [pkcs11]"
519 ENGINE ID to use in the OpenSSL plugin
521 .BR libstrongswan.plugins.pkcs11.modules
522 List of available PKCS#11 modules
524 .BR libstrongswan.plugins.pkcs11.use_hasher " [no]"
525 Whether the PKCS#11 modules should be used to hash data
528 .BR libimcv.debug_level " [1]"
529 Debug level for a stand-alone libimcv library
531 .BR libimcv.stderr_quiet " [no]"
532 Disable output to stderr with a stand-alone libimcv library
533 .SS libimcv plugins section
535 .BR libimcv.plugins.imc_test.command " [none]"
536 Command to be sent to the Test IMV
538 .BR libimcv.plugins.imc_test.retry " [no]"
541 .BR libimcv.plugins.imc_test.retry_command
542 Command to be sent to the Test IMV in the handshake retry
544 .BR libimcv.plugins.imv_test.rounds " [0]"
545 Number of IMC-IMV retry rounds
547 .BR libimcv.plugins.imv_scanner.closed_port_policy " [yes]"
548 By default all ports must be closed (yes) or can be open (no)
550 .BR libimcv.plugins.imv_scanner.tcp_ports
551 List of TCP ports that can be open or must be closed
553 .BR libimcv.plugins.imv_scanner.udp_ports
554 List of UDP ports that can be open or must be closed
558 List of TLS encryption ciphers
560 .BR libtls.key_exchange
561 List of TLS key exchange methods
564 List of TLS MAC algorithms
567 List of TLS cipher suites
571 Credential database URI for manager
573 .BR manager.debug " [no]"
574 Enable debugging in manager
577 Plugins to load in manager
580 FastCGI socket of manager, to run it statically
582 .BR manager.threads " [10]"
583 Threads to use for request handling
585 .BR manager.timeout " [15m]"
586 Session timeout for manager
587 .SS mediation client section
590 Mediation client database URI
592 .BR medcli.dpd " [5m]"
593 DPD timeout to use in mediation client plugin
595 .BR medcli.rekey " [20m]"
596 Rekeying time on mediation connections in mediation client plugin
597 .SS mediation server section
600 Mediation server database URI
602 .BR medsrv.debug " [no]"
603 Debugging in mediation server web application
605 .BR medsrv.dpd " [5m]"
606 DPD timeout to use in mediation server plugin
609 Plugins to load in mediation server plugin
611 .BR medsrv.password_length " [6]"
612 Minimum password length required for mediation server user accounts
614 .BR medsrv.rekey " [20m]"
615 Rekeying time on mediation connections in mediation server plugin
618 Run Mediation server web application statically on socket
620 .BR medsrv.threads " [5]"
621 Number of thread for mediation service web application
623 .BR medsrv.timeout " [15m]"
624 Session timeout for mediation service
628 Plugins to load in ipsec openac tool
632 Plugins to load in ipsec pki tool
638 DNS servers assigned to peer via Mode Config
641 Plugins to load in IKEv1 pluto daemon
646 WINS servers assigned to peer via Mode Config
648 .BR pluto.threads " [4]"
649 Number of worker threads in pluto
650 .SS pluto.plugins section
652 .BR pluto.plugins.attr
653 Section to specify arbitrary attributes that are assigned to a peer via
656 .BR charon.plugins.kernel-klips.ipsec_dev_count " [4]"
657 Number of ipsecN devices
659 .BR charon.plugins.kernel-klips.ipsec_dev_mtu " [0]"
660 Set MTU of ipsecN device
664 Plugins to load in ipsec pool tool
665 .SS scepclient section
668 Plugins to load in ipsec scepclient tool
671 .BR starter.load_warning " [yes]"
672 Disable charon/pluto plugin load option warning
674 .SH LOGGER CONFIGURATION
675 The options described below provide a much more flexible way to configure
676 loggers for the IKEv2 daemon charon than using the
682 that if any loggers are specified in strongswan.conf,
684 does not have any effect.
686 There are currently two types of loggers defined:
689 Log directly to a file and are defined by specifying the full path to the
690 file as subsection in the
692 section. To log to the console the two special filenames
693 .BR stdout " and " stderr
697 Log into a syslog facility and are defined by specifying the facility to log to
698 as the name of a subsection in the
700 section. The following facilities are currently supported:
701 .BR daemon " and " auth .
703 Multiple loggers can be defined for each type with different log verbosity for
704 the different subsystems of the daemon.
707 .BR charon.filelog.<filename>.default " [1]"
709 .BR charon.syslog.<facility>.default
710 Specifies the default loglevel to be used for subsystems for which no specific
713 .BR charon.filelog.<filename>.<subsystem> " [<default>]"
715 .BR charon.syslog.<facility>.<subsystem>
716 Specifies the loglevel for the given subsystem.
718 .BR charon.filelog.<filename>.append " [yes]"
719 If this option is enabled log entries are appended to the existing file.
721 .BR charon.filelog.<filename>.flush_line " [no]"
722 Enabling this option disables block buffering and enables line buffering.
724 .BR charon.filelog.<filename>.ike_name " [no]"
726 .BR charon.syslog.<facility>.ike_name
727 Prefix each log entry with the connection name and a unique numerical
728 identifier for each IKE_SA.
730 .BR charon.filelog.<filename>.time_format
731 Prefix each log entry with a timestamp. The option accepts a format string as
738 Main daemon setup/cleanup/signal handling
741 IKE_SA manager, handling synchronization for IKE_SA access
750 Jobs queueing/processing and thread pool management
753 Configuration management and plugins
756 IPsec/Networking kernel interface
759 IKE network communication
762 Packet encoding/decoding encryption/decryption operations
765 libtls library messages
768 libstrongwan library messages
775 Very basic auditing logs, (e.g. SA up/SA down)
778 Generic control flow with errors, a good default to see whats going on
781 More detailed debugging control flow
784 Including RAW data dumps in Hex
787 Also include sensitive material in dumps, e.g. keys
793 /var/log/charon.log {
794 time_format = %b %e %T
805 # enable logging to LOG_DAEMON, use defaults
808 # minimalistic IKE auditing logging to LOG_AUTHPRIV
818 To do stability testing and performance optimizations, the IKEv2 daemon charon
819 provides the load-tester plugin. This plugin allows to setup thousands of
820 tunnels concurrently against the daemon itself or a remote host.
823 Never enable the load-testing plugin on productive systems. It provides
824 preconfigured credentials and allows an attacker to authenticate as any user.
827 .BR charon.plugins.load-tester.child_rekey " [600]"
828 Seconds to start CHILD_SA rekeying after setup
830 .BR charon.plugins.load-tester.delay " [0]"
831 Delay between initiatons for each thread
833 .BR charon.plugins.load-tester.delete_after_established " [no]"
834 Delete an IKE_SA as soon as it has been established
836 .BR charon.plugins.load-tester.dpd_delay " [0]"
837 DPD delay to use in load test
839 .BR charon.plugins.load-tester.dynamic_port " [0]"
840 Base port to be used for requests (each client uses a different port)
842 .BR charon.plugins.load-tester.eap_password " [default-pwd]"
843 EAP secret to use in load test
845 .BR charon.plugins.load-tester.enable " [no]"
846 Enable the load testing plugin
848 .BR charon.plugins.load-tester.fake_kernel " [no]"
849 Fake the kernel interface to allow load-testing against self
851 .BR charon.plugins.load-tester.ike_rekey " [0]"
852 Seconds to start IKE_SA rekeying after setup
854 .BR charon.plugins.load-tester.init_limit " [0]"
855 Global limit of concurrently established SAs during load test
857 .BR charon.plugins.load-tester.initiators " [0]"
858 Number of concurrent initiator threads to use in load test
860 .BR charon.plugins.load-tester.initiator_auth " [pubkey]"
861 Authentication method(s) the intiator uses
863 .BR charon.plugins.load-tester.initiator_id
864 Initiator ID used in load test
866 .BR charon.plugins.load-tester.iterations " [1]"
867 Number of IKE_SAs to initate by each initiator in load test
869 .BR charon.plugins.load-tester.pool
870 Provide INTERNAL_IPV4_ADDRs from a named pool
872 .BR charon.plugins.load-tester.preshared_key " [default-psk]"
873 Preshared key to use in load test
875 .BR charon.plugins.load-tester.proposal " [aes128-sha1-modp768]"
876 IKE proposal to use in load test
878 .BR charon.plugins.load-tester.remote " [127.0.0.1]"
879 Address to initiation connections to
881 .BR charon.plugins.load-tester.responder_auth " [pubkey]"
882 Authentication method(s) the responder uses
884 .BR charon.plugins.load-tester.responder_id
885 Responder ID used in load test
887 .BR charon.plugins.load-tester.request_virtual_ip " [no]"
888 Request an INTERNAL_IPV4_ADDR from the server
890 .BR charon.plugins.load-tester.shutdown_when_complete " [no]"
891 Shutdown the daemon after all IKE_SAs have been established
892 .SS Configuration details
893 For public key authentication, the responder uses the
894 .B \(dqCN=srv, OU=load-test, O=strongSwan\(dq
895 identity. For the initiator, each connection attempt uses a different identity
897 .BR "\(dqCN=c1-r1, OU=load-test, O=strongSwan\(dq" ,
898 where the first number inidicates the client number, the second the
899 authentication round (if multiple authentication is used).
901 For PSK authentication, FQDN identities are used. The server uses
902 .BR srv.strongswan.org ,
903 the client uses an identity in the form
904 .BR c1-r1.strongswan.org .
906 For EAP authentication, the client uses a NAI in the form
907 .BR 100000000010001@strongswan.org .
909 To configure multiple authentication, concatenate multiple methods using, e.g.
911 initiator_auth = pubkey|psk|eap-md5|eap-aka
914 The responder uses a hardcoded certificate based on a 1024-bit RSA key.
915 This certificate additionally serves as CA certificate. A peer uses the same
916 private key, but generates client certificates on demand signed by the CA
917 certificate. Install the Responder/CA certificate on the remote host to
918 authenticate all clients.
920 To speed up testing, the load tester plugin implements a special Diffie-Hellman
921 implementation called modpnull. By setting
923 proposal = aes128-sha1-modpnull
925 this wicked fast DH implementation is used. It does not provide any security
926 at all, but allows to run tests without DH calculation overhead.
929 In the simplest case, the daemon initiates IKE_SAs against itself using the
930 loopback interface. This will actually establish double the number of IKE_SAs,
931 as the daemon is initiator and responder for each IKE_SA at the same time.
932 Installation of IPsec SAs would fails, as each SA gets installed twice. To
933 simulate the correct behavior, a fake kernel interface can be enabled which does
934 not install the IPsec SAs at the kernel level.
936 A simple loopback configuration might look like this:
940 # create new IKE_SAs for each CHILD_SA to simulate
943 # turn off denial of service protection
950 # use 4 threads to initiate connections
953 # each thread initiates 1000 connections
955 # delay each initiation in each thread by 20ms
957 # enable the fake kernel interface to
965 This will initiate 4000 IKE_SAs within 20 seconds. You may increase the delay
966 value if your box can not handle that much load, or decrease it to put more
967 load on it. If the daemon starts retransmitting messages your box probably can
968 not handle all connection attempts.
970 The plugin also allows to test against a remote host. This might help to test
971 against a real world configuration. A connection setup to do stress testing of
972 a gateway might look like this:
982 # 10000 connections, ten in parallel
985 # use a delay of 100ms, overall time is:
986 # iterations * delay = 100s
988 # address of the gateway
990 # IKE-proposal to use
991 proposal = aes128-sha1-modp1024
992 # use faster PSK authentication instead
996 # request a virtual IP using configuration
998 request_virtual_ip = yes
999 # enable CHILD_SA every 60s
1006 .SH IKEv2 RETRANSMISSION
1007 Retransmission timeouts in the IKEv2 daemon charon can be configured globally
1008 using the three keys listed below:
1012 .BR charon.retransmit_base " [1.8]"
1013 .BR charon.retransmit_timeout " [4.0]"
1014 .BR charon.retransmit_tries " [5]"
1018 The following algorithm is used to calculate the timeout:
1021 relative timeout = retransmit_timeout * retransmit_base ^ (n-1)
1026 is the current retransmission count.
1028 Using the default values, packets are retransmitted in:
1034 Retransmission Relative Timeout Absolute Timeout
1044 /etc/strongswan.conf
1047 ipsec.conf(5), ipsec.secrets(5), ipsec(8)
1050 .UR http://www.strongswan.org
1053 by Tobias Brunner, Andreas Steffen and Martin Willi.