ISAKMPD.CONF(5)
π ISAKMPD.CONF(5) π β the File Formats Manual bestie, but make it group chat
okay so. this is isakmpd.conf, the configuration file for the isakmpd daemon β the one that handles security association and key management for the IPsec layer of your kernel's networking stack. very main character of it. β¨
πΈ NAME πΈ
isakmpd.conf β configuration file for isakmpd π
β¨ DESCRIPTION β¨
so isakmpd.conf is literally the config file for the isakmpd daemon, which manages security association and key management for the IPsec layer of the kernel's networking stack. she's important, okay?? π«Ά
the file is in that well known format called .INI style β named after the suffix used by an overrated windowing environment for its config files π. this format is made of sections, and each one starts with a line that looks like:
[Section name]
between those brackets is the name of the section that follows the header. inside a section you can stash a whole bunch of tag/value pairs, each one looking like:
Tag=Value
if a value needs more room than one line can give it, you can continue it on the next line by ending the first line with a backslash character immediately before the newline character. this trick can extend a value for an arbitrary number of lines. no cap. π₯
comments can go anywhere in the file by using a hash mark (#). the comment runs to the end of the current line. periodt.
often the right-hand side values are literally other section names β which gives you a whole tree structure. some values are treated as a list of several scalar values, and those lists always use a comma character as the separator. some values are formatted like this: X,Y:Z, which is the offer/accept syntax β X is a value we offer, and Y:Z is a range of accepted values, inclusive. iykyk. π
to activate changes toisakmpd.confwithout restartingisakmpd, send aSIGHUPsignal to the daemon process. slay. π
π Auto-generated parts of the configuration π
some predefined section names are recognized by the daemon, which saves you from having to fully spell out the Main Mode transforms and Quick Mode suites, protocols, and transforms. it's giving convenience. β¨
For Main Mode:
{DES,BLF,3DES,CAST,AES}-{MD5,SHA}[-GRP{1,2,5,14}][-{DSS,RSA_SIG}]
For Quick Mode:
QM-{proto}[-TRP]-{cipher}[-{hash}][-PFS[-{group}]]-SUITE
where
{proto}is eitherESPorAH{cipher}is eitherDES,3DES,CAST,BLForAES{hash}is eitherMD5,SHA,RIPEMD,SHA2-{256,384,512}{group}is eitherGRP1,GRP2,GRP5orGRP14
for example, 3DES-SHA means: 3DES encryption, SHA hash, and authorization by pre-shared keys. similarly, QM-ESP-3DES-SHA-PFS-SUITE means: ESP protocol, 3DES encryption, SHA hash, and use Perfect Forward Secrecy. obsessed with how clean that is. π
unless explicitly stated with -GRP1, 2, 5 or 14, transforms and PFS suites use DH group 2. there are currently no predefined ESP+AH Quick Mode suites. sad but true. π
the predefinitions include some default values for the special sections "General", "Keynote", "X509-certificates", and "Default-phase-1-configuration". these default values are presented in the example below. π
all autogenerated values can be overridden by manual entries β just use the same section and tag names in the config file. in particular, the default phase 1 (Main or Aggressive Mode) and phase 2 (Quick Mode) lifetimes can be overridden by these tags under the "General" section:
[General]
Default-phase-1-lifetime= 3600,60:86400
Default-phase-2-lifetime= 1200,60:86400
the Main Mode lifetime currently defaults to one hour (minimum 60 seconds, maximum 1 day). the Quick Mode lifetime defaults to 20 minutes (minimum 60 seconds, maximum 1 day). iconic defaults, fr fr.
also, the default phase 1 ID can be set by creating a <Phase1-ID> section, as shown below, and adding this tag under the "General" section:
[General]
Default-phase-1-ID= Phase1-ID-name
[Phase1-ID-name]
ID-type= USER_FQDN
Name= foo@bar.com
π± Roots π±
πΈ General πΈ
Generic global configuration parameters β¨
Default-phase-1-IDβ Optional default phase 1 ID name.Default-phase-1-lifetimeβ The default lifetime for autogenerated transforms (phase 1). If unspecified, the value3600,60:86400is used as the default.Default-phase-2-lifetimeβ The default lifetime for autogenerated suites (phase 2). If unspecified, the value1200,60:86400is used as the default.Default-phase-2-suitesβ A list of phase 2 suites that will be used when establishing dynamic SAs. If left unspecified,QM-ESP-3DES-SHA-PFS-SUITEis used as the default.Acquire-Onlyβ If this tag is defined,isakmpdwill not set up flows automatically. this is useful when flows are configured withipsecadm(4)or by other programs likebgpd(8). soisakmpdonly takes care of the SA establishment. lowkey handy. π«ΆCheck-intervalβ The interval between watchdog checks of connections we want up at all times.DPD-check-intervalβ The interval between RFC 3706 (Dead Peer Detection) messages. The default value is0(zero), which means DPD is disabled.Exchange-max-timeβ How many seconds should an exchange maximally take to set up before we give up. β³Listen-onβ A list of IP-addresses OK to listen on. This list is used as a filter for the set of addresses the interfaces configured provides. This means that we won't see if an address given here does not exist on this host, and thus no error is given for that case. πLoglevelβ A list of the formclass=level, where bothclassandlevelare numbers. This is similar to the-Dcommand line switch ofisakmpd. Seeisakmpd(8)for details.Logverboseβ If this tag is defined, whatever the value is, verbose logging is enabled. This is similar to the-vcommand line switch ofisakmpd. Seeisakmpd(8)for details.NAT-T-Keepaliveβ The number of seconds between NAT-T keepalive messages, sent by the peer behind NAT to keep the mapping active. Defaults to20.Policy-fileβ The name of the file that containskeynote(4)policies. The default is"/etc/isakmpd/isakmpd.policy".Pubkey-directoryβ The directory in whichisakmpd.conflooks for explicitly trusted public keys. The default is"/etc/isakmpd/pubkeys". Readisakmpd(8)for the required naming convention of the files in here.Renegotiate-on-HUPβ If this tag is defined, whatever the value is,isakmpdwill renegotiate all current phase 2 SAs when the daemon receives aSIGHUPsignal, or anβRβis sent to the FIFO interface (seeisakmpd(8)). πRetransmitsβ How many times should a message be retransmitted before giving up.Shared-SADBβ If this tag is defined, whatever the value is, some semantics ofisakmpd.confare changed so that multiple instances can run on top of one SADB and set up SAs with each other. Specifically this means replay protection will not be asked for, and errors that can occur when updating an SA with its parameters a 2nd time will be ignored. πUse-Keynoteβ This tag controls the use ofkeynote(4)policy checking. The default value is"yes", which enables the policy checking. When set to any other value, policies will not be checked. This is useful when policies for flows and SA establishment are arranged by other programs likeipsecadm(8)orbgpd(8).
π¦ Phase 1 π¦
ISAKMP SA negotiation parameter root β¨
<IP-address>β A name of the ISAKMP peer at the given IP-address.Defaultβ A name of the default ISAKMP peer. Incoming phase 1 connections from other IP-addresses will use this peer name.
This name is used as the section name for further information to be found. Look at <ISAKMP-peer> below.
π Phase 2 π
IPsec SA negotiation parameter root β¨
Connectionsβ A list of directed IPsec "connection" names that should be brought up automatically, either on first use if the system supports it, or at startup of the daemon. These names are section names where further information can be found. Look at<IPsec-connection>below. Normally any connections mentioned here are treated as part of the"Passive-connection"list we present below, however there is a flag:"Active-only"that disables this behaviour. This too is mentioned in the<IPsec-connection>section, in the"Flags"tag.
part 2 is coming bestie, don't go anywhere πβ¨
Passive-connectionsβ a list of IPsec "connection" names we recognize and accept initiations for. these names are section names where further information can be found. look at<IPsec-connection>below. currently only theLocal-IDandRemote-IDtags are looked at in those sections, as they are matched against the IDs given by the initiator. π
KeyNote π
Credential-directoryβ a directory containing directories named after IDs (IP addresses,user@domain, or hostnames) that contain files namedcredentialsandprivate_key.
the credentials file contains keynote(4) credentials that are sent to a remote IKE daemon when we use the associated ID, or credentials that we may want to consider when doing an exchange with a remote IKE daemon that uses that ID. note that, in the former case, the last credential in the file MUST contain our public key in its Licensees field. more than one credentials may exist in the file. they are separated by whitelines (the format is essentially the same as that of the policy file). the credentials are of the same format as the policies described in isakmpd.policy(5). the only difference is that the Authorizer field contains a public key, and the assertion is signed. signed assertions can be generated using the keynote(1) utility. π
the private_key file contains the private RSA key we use for authentication. if the directory (and the files) exist, they take precedence over X509-based authentication. π
X509-Certificates π
Accept-self-signedβ if this tag is defined, whatever the value is, certificates that do not originate from a trusted CA but are self-signed will be accepted. (like, we're chill with self-signed if you say so) β¨Ca-directoryβ a directory containing PEM certificates of certification authorities that we trust to sign other certificates. note that for a CA to be really trusted, it needs to be somehow referred to by policy, inisakmpd.policy(5). the certificates in this directory are used for the actual X.509 authentication and for cross-referencing policies that refer to Distinguished Names (DNs). keeping a separate directory (as opposed to integrating policies and X.509 CA certificates) allows for maintenance of a list of "well known" CAs without actually having to trust all (or any) of them. π€Cert-directoryβ a directory containing PEM certificates that we trust to be valid. these certificates are used in preference to those passed in messages and are required to have asubjectAltNameextension containing the certificate holder identity; usually IP address, FQDN, or User FQDN, as provided bycertpatch(8). πPrivate-keyβ the private key matching the public key of our certificate (which should be in theCert-directory, and have an appropriatesubjectAltNamefield). π
Referred-to sections π
<ISAKMP-peer> β Parameters for negotiation with an ISAKMP peer
Phaseβ the constant1, as ISAKMP-peers and IPsec-connections really are handled by the same code insideisakmpd. (it's giving phase 1 energy) β‘Transportβ the name of the transport protocol, defaults toUDP.Portβ in case of UDP, the UDP port number to send to. this is optional, the default value is500which is the IANA-registered number for ISAKMP. π’Local-addressβ the Local IP-address to use, if we are multi-homed, or have aliases.Addressβ if existent, the IP-address of the peer.Configurationβ the name of the ISAKMP-configuration section to use. look at<ISAKMP-configuration>below. if unspecified, defaults to"Default-phase-1-configuration".Authenticationβ if existent, authentication data for this specific peer. in the case of preshared key, this is the key value itself. πIDβ if existent, the name of the section that describes the local client ID that we should present to our peer. if not present, it defaults to the address of the local interface we are sending packets over to the remote daemon. look at<Phase1-ID>below.Remote-IDβ if existent, the name of the section that describes the remote client ID we expect the remote daemon to send us. if not present, it defaults to the address of the remote daemon. look at<Phase1-ID>below.Flagsβ a comma-separated list of flags controlling the further handling of the ISAKMP SA. currently there are no specific ISAKMP SA flags defined. (so it's just vibes for now) π³οΈ
<Phase1-ID> π
ID-typeβ the ID type as given by the RFC specifications. for phase 1 this is currentlyIPV4_ADDR,IPV4_ADDR_SUBNET,IPV6_ADDR,IPV6_ADDR_SUBNET,FQDN,USER_FQDNorKEY_ID.Addressβ if the ID-type isIPV4_ADDRorIPV6_ADDR, this tag should exist and be an IP-address.Networkβ if the ID-type isIPV4_ADDR_SUBNETorIPV6_ADDR_SUBNETthis tag should exist and be a network address.Netmaskβ if the ID-type isIPV4_ADDR_SUBNETorIPV6_ADDR_SUBNETthis tag should exist and be a network subnet mask.Nameβ if the ID-type isFQDN,USER_FQDNorKEY_ID, this tag should exist and contain a domain name, user@domain, or other identifying string respectively.
in the case of KEY_ID, note that the IKE protocol allows any octet sequence to be sent or received under this payload, potentially including non-printable ones. isakmpd(8) can only transmit printable KEY_ID payloads, but can receive and process arbitrary KEY_ID payloads. this effectively means that non-printable KEY_ID remote identities cannot be verified through this means, although it is still possible to do so through isakmpd.policy(5). β οΈ
bestie, pay attention to thatKEY_IDcaveat β it's a whole thing. non-printable IDs are a no-go for verification here, but you can still flex viaisakmpd.policy(5). π
<ISAKMP-configuration> βοΈ
DOIβ the domain of interpretation as given by the RFCs. normallyIPSEC. if unspecified, defaults toIPSEC.EXCHANGE_TYPEβ the exchange type as given by the RFCs. for main mode this isID_PROTand for aggressive mode it isAGGRESSIVE.Transformsβ a list of proposed transforms to use for protecting the ISAKMP traffic. these are actually names for sections further describing the transforms. look at<ISAKMP-transform>below.
<ISAKMP-transform> π
ENCRYPTION_ALGORITHMβ the encryption algorithm as the RFCs name it, orANYto denote that any encryption algorithm proposed will be accepted.KEY_LENGTHβ for encryption algorithms with variable key length, this is where the offered/accepted keylengths are described. the value is of the offer-accept kind described above.HASH_ALGORITHMβ the hash algorithm as the RFCs name it, orANY.AUTHENTICATION_METHODβ the authentication method as the RFCs name it, orANY.GROUP_DESCRIPTIONβ the group used for Diffie-Hellman exponentiations, orANY. the names are symbolic, likeMODP_768,MODP_1024,EC_155andEC_185. πPRFβ the algorithm you use for the keyed pseudo-random function (aka the thing doing key derivation and authentication in phase 1), orANY. iykyk πLifeβ a whole list of lifetime descriptions, or justANY. When it's a list, each element is literally the name of a section that defines that lifetime. Peep<Lifetime>down below for the tea. And if you set it toANY? Then any type of proposed lifetime type and value gets accepted, no questions asked. periodt β¨
π <Lifetime> π
LIFE_TYPEβ eitherSECONDSorKILOBYTES, depends on what kind of duration you're dealing with. β οΈ Heads up bestie: this field may NOT be set toANY. like, at all.LIFE_DURATIONβ an offer/accept kind of value (see above, we covered that vibe). Can also be set toANY. π«Ά
πΈ <IPsec-connection> πΈ
Phaseβ the constant2, because<ISAKMP-peer>s and IPsec-connections are literally handled by the same code insideisakmpd. they're not beating the shared-code allegations πISAKMP-peerβ the name of the ISAKMP-peer you wanna talk to in order to set this connection up. The value is the name of an<ISAKMP-peer>section. See above. πConfigurationβ the name of the IPsec-configuration section to use. Look at<IPsec-configuration>below. π¦Local-IDβ if it exists, this is the name of the section describing the optional local client ID we present to our peer. It's also used when we act as responders, to figure out which<IPsec-connection>we're actually dealing with. Look at<IPsec-ID>below. πRemote-IDβ if it exists, the name of the section describing the optional remote client ID we present to our peer. Also used when we're acting as responders to work out which<IPsec-connection>is ours. Look at<IPsec-ID>below. πFlagsβ a comma-separated list of flags controlling how the IPsec SA gets handled further. Right now only one flag is defined, iconic behavior:Active-onlyβ if this flag is given and this<IPsec-connection>is part of the phase 2 connections we automatically keep up, then it will not automatically be used for accepting connections from the peer.
β¨ <IPsec-configuration> β¨
DOIβ the domain of interpretation as given by the RFCs. NormallyIPSEC. If you leave it unspecified, it defaults toIPSEC. no cap πEXCHANGE_TYPEβ the exchange type as given by the RFCs. For quick mode this isQUICK_MODE. π«Suitesβ a list of protection suites (basically bundles of protocols) usable for protecting the IP traffic. Each element in the list is the name of an<IPsec-suite>section. See below. π§
π <IPsec-suite> π
Protocolsβ a list of the protocols included in this protection suite. Each list element is the name of an<IPsec-protocol>section. See below. π
π₯ <IPsec-protocol> π₯
PROTOCOL_IDβ the protocol as given by the RFCs. Acceptable values today areIPSEC_AHandIPSEC_ESP. β¨Transformsβ a list of transforms usable for implementing the protocol. Each list element is the name of an<IPsec-transform>section. See below. πΈReplayWindowβ the size of the window used for replay protection. This is normally left alone, fr fr. Look at the ESP and AH RFCs if you want a better description. π
π <IPsec-transform> π
TRANSFORM_IDβ the transform ID as given by the RFCs. πENCAPSULATION_MODEβ the encapsulation mode as given by the RFCs. This meansTRANSPORTorTUNNEL. π¦AUTHENTICATION_ALGORITHMβ the optional authentication algorithm, in the case of this being an ESP transform. πGROUP_DESCRIPTIONβ an optional (provides PFS if present) Diffie-Hellman group description. The values are the same asGROUP_DESCRIPTION's in<ISAKMP-transform>sections shown above. βLifeβ list of lifetimes, each element is a<Lifetime>section name. π«Ά
π <IPsec-ID> π
ID-typeβ the ID type as given by the RFCs. For IPsec this is currentlyIPV4_ADDR,IPV6_ADDR,IPV4_ADDR_SUBNETorIPV6_ADDR_SUBNET. π«Addressβ if the ID-type isIPV4_ADDRorIPV6_ADDR, this tag should exist and be an IP-address. πNetworkβ if the ID-type isIPV4_ADDR_SUBNETorIPV6_ADDR_SUBNET, this tag should exist and be a network address. πΈNetmaskβ if the ID-type isIPV4_ADDR_SUBNETorIPV6_ADDR_SUBNET, this tag should exist and be a network subnet mask. β¨Protocolβ if the ID-type isIPV4_ADDR,IPV4_ADDR_SUBNET,IPV6_ADDRorIPV6_ADDR_SUBNET, this tag says what transport protocol should be transmitted over the SA. If you leave it unspecified, all transport protocols between the two address (ranges) will be sent (or permitted) over that SA. π₯Portβ if the ID-type isIPV4_ADDR,IPV4_ADDR_SUBNET,IPV6_ADDRorIPV6_ADDR_SUBNET, this tag says what source or destination port is allowed to be transported over the SA (depends on whether this is a local or a remote ID). If you leave it unspecified, all ports of the given transport protocol will be transmitted (or permitted) over the SA. β οΈ TheProtocoltag must be specified in conjunction with this tag. no skipping, bestie π
π¦ Other sections π¦
π <IKECFG-ID> π
Parameters to use with IKE mode-config. One ID per peer. slay π
An IKECFG-ID is written as [<ID-type>/<name>]. The following ID types are supported:
IPv4β[ipv4/A.B.C.D]IPv6β[ipv6/abcd:abcd::ab:cd]FQDNβ[fqdn/foo.bar.org]UFQDNβ[ufqdn/user@foo.bar.org]ASN1_DNβ[asn1_dn//C=aa/O=cc/...](Note the double slashes, because the DN itself starts with a β/β.) π
Each section specifies what configuration values to return to the peer requesting IKE mode-config. Currently supported values are:
Addressβ the peer's network address.Netmaskβ the peer's netmask.Nameserverβ the IP address of a DNS nameserver.WINS-serverβ the IP address of a WINS server.
β <Initiator-ID> β
During phase 1 negotiation, isakmpd looks for a pre-shared key in the <ISAKMP-peer> section. But if no Authentication data is specified in that section, and isakmpd is not the initiator, then it goes looking for Authentication data in a section named after the initiator's phase 1 ID. This lets mobile users with dynamic IP addresses have different shared secrets. lowkey genius π§ β¨
Heads up: this only works for aggressive mode, because in main mode the remote initiator ID wouldn't be known yet. π
The name of the <Initiator-ID> section depends on the ID type sent by the initiator. Currently this can be:
IPv4β[A.B.C.D]IPv6β[abcd:abcd::ab:cd]FQDNβ[foo.bar.org]UFQDNβ[user@foo.bar.org]
π FILES π
/etc/isakmpd/isakmpd.confβ the defaultisakmpdconfiguration file. the main character fr π/usr/share/ipsec/isakmpd/β a directory containing some sampleisakmpdconfiguration files. go peek bestie π
π EXAMPLES π
okay bestie, here's the whole vibe in one go β a full-on configuration file sample for the isakmpd ISAKMP/Oakley (aka IKE) daemon. read it, love it, copy it, whatever π
# A configuration sample for the isakmpd ISAKMP/Oakley (aka IKE) daemon.
[General]
Listen-on= 10.1.0.2
# Incoming phase 1 negotiations are multiplexed on the source IP address
[Phase 1]
10.1.0.1= ISAKMP-peer-west
# These connections are walked over after config file parsing and told
# to the application layer so that it will inform us when traffic wants to
# pass over them.
This means we can do on-demand keying.
[Phase 2]
Connections= IPsec-east-west
# Default values are commented out.
[ISAKMP-peer-west]
Phase= 1
#Transport= udp
Local-address= 10.1.0.2
Address= 10.1.0.1
#Port= isakmp
#Port= 500
#Configuration= Default-phase-1-configuration
Authentication= mekmitasdigoat
#Flags=
[IPsec-east-west]
Phase= 2
ISAKMP-peer= ISAKMP-peer-west
Configuration= Default-quick-mode
Local-ID= Net-east
Remote-ID= Net-west
#Flags=
[Net-west]
ID-type= IPV4_ADDR_SUBNET
Network= 192.168.1.0
Netmask= 255.255.255.0
[Net-east]
ID-type= IPV4_ADDR_SUBNET
Network= 192.168.2.0
Netmask= 255.255.255.0
# Quick mode descriptions
[Default-quick-mode]
EXCHANGE_TYPE= QUICK_MODE
Suites= QM-ESP-3DES-SHA-PFS-SUITE,QM-ESP-AES-SHA-PFS-SUITE
# Data for an IKE mode-config peer
[asn1_dn//C=SE/L=SomeCity/O=SomeCompany/CN=SomePeer.company.com]
Address= 192.168.1.123
Netmask= 255.255.255.0
Nameserver= 192.168.1.10
WINS-server= 192.168.1.11
# pre-shared key based on initiator's phase 1 ID
[foo.bar.org]
Authentication= mekmitasdigoat
#
# #####################################################################
# All configuration data below this point is not required as the example
# uses the predefined Main Mode transform and Quick Mode suite names.
# It is included here for completeness. Note the default values for the
# [General] and [X509-certificates] sections just below.
# #####################################################################
#
[General]
Policy-file= /etc/isakmpd/isakmpd.policy
Retransmits= 3
Exchange-max-time= 120
# KeyNote credential storage
[KeyNote]
Credential-directory= /etc/isakmpd/keynote/
# Certificates stored in PEM format
[X509-certificates]
CA-directory= /etc/isakmpd/ca/
Cert-directory= /etc/isakmpd/certs/
CRL-directory= /etc/isakmpd/crls/
Private-key= /etc/isakmpd/private/local.key
# Default phase 1 description (Main Mode)
[Default-phase-1-configuration]
EXCHANGE_TYPE= ID_PROT
Transforms= 3DES-SHA
# Main mode transforms
######################
# DES
[DES-MD5]
ENCRYPTION_ALGORITHM= DES_CBC
HASH_ALGORITHM= MD5
AUTHENTICATION_METHOD= PRE_SHARED
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-1-lifetime
[DES-SHA]
ENCRYPTION_ALGORITHM= DES_CBC
HASH_ALGORITHM= SHA
AUTHENTICATION_METHOD= PRE_SHARED
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-1-lifetime
# 3DES
[3DES-SHA]
ENCRYPTION_ALGORITHM= 3DES_CBC
HASH_ALGORITHM= SHA
AUTHENTICATION_METHOD= PRE_SHARED
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-1-lifetime
# Blowfish
[BLF-SHA]
ENCRYPTION_ALGORITHM= BLOWFISH_CBC
KEY_LENGTH= 128,96:192
HASH_ALGORITHM= SHA
AUTHENTICATION_METHOD= PRE_SHARED
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-1-lifetime
# Blowfish, using DH group 4 (non-default)
[BLF-SHA-EC185]
ENCRYPTION_ALGORITHM= BLOWFISH_CBC
KEY_LENGTH= 128,96:192
HASH_ALGORITHM= SHA
AUTHENTICATION_METHOD= PRE_SHARED
GROUP_DESCRIPTION= EC2N_185
Life= Default-phase-1-lifetime
# Quick mode protection suites
##############################
# DES
[QM-ESP-DES-SUITE]
Protocols= QM-ESP-DES
[QM-ESP-DES-PFS-SUITE]
Protocols= QM-ESP-DES-PFS
[QM-ESP-DES-MD5-SUITE]
Protocols= QM-ESP-DES-MD5
[QM-ESP-DES-MD5-PFS-SUITE]
Protocols= QM-ESP-DES-MD5-PFS
[QM-ESP-DES-SHA-SUITE]
Protocols= QM-ESP-DES-SHA
[QM-ESP-DES-SHA-PFS-SUITE]
Protocols= QM-ESP-DES-SHA-PFS
# 3DES
[QM-ESP-3DES-SHA-SUITE]
Protocols= QM-ESP-3DES-SHA
[QM-ESP-3DES-SHA-PFS-SUITE]
Protocols= QM-ESP-3DES-SHA-PFS
# AES
[QM-ESP-AES-SHA-SUITE]
Protocols= QM-ESP-AES-SHA
[QM-ESP-AES-SHA-PFS-SUITE]
Protocols= QM-ESP-AES-SHA-PFS
# AH
[QM-AH-MD5-SUITE]
Protocols= QM-AH-MD5
[QM-AH-MD5-PFS-SUITE]
Protocols= QM-AH-MD5-PFS
# AH + ESP (non-default)
[QM-AH-MD5-ESP-DES-SUITE]
Protocols= QM-AH-MD5,QM-ESP-DES
[QM-AH-MD5-ESP-DES-MD5-SUITE]
Protocols= QM-AH-MD5,QM-ESP-DES-MD5
[QM-ESP-DES-MD5-AH-MD5-SUITE]
Protocols= QM-ESP-DES-MD5,QM-AH-MD5
# Quick mode protocols
# DES
[QM-ESP-DES]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-DES-XF
[QM-ESP-DES-MD5]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-DES-MD5-XF
[QM-ESP-DES-MD5-PFS]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-DES-MD5-PFS-XF
[QM-ESP-DES-SHA]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-DES-SHA-XF
# 3DES
[QM-ESP-3DES-SHA]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-3DES-SHA-XF
[QM-ESP-3DES-SHA-PFS]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-3DES-SHA-PFS-XF
[QM-ESP-3DES-SHA-TRP]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-3DES-SHA-TRP-XF
# AES
[QM-ESP-AES-SHA]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-AES-SHA-XF
[QM-ESP-AES-SHA-PFS]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-AES-SHA-PFS-XF
[QM-ESP-AES-SHA-TRP]
PROTOCOL_ID= IPSEC_ESP
Transforms= QM-ESP-AES-SHA-TRP-XF
# AH MD5
[QM-AH-MD5]
PROTOCOL_ID= IPSEC_AH
Transforms= QM-AH-MD5-XF
[QM-AH-MD5-PFS]
PROTOCOL_ID= IPSEC_AH
Transforms= QM-AH-MD5-PFS-XF
# Quick mode transforms
# ESP DES+MD5
[QM-ESP-DES-XF]
TRANSFORM_ID= DES
ENCAPSULATION_MODE= TUNNEL
Life= Default-phase-2-lifetime
[QM-ESP-DES-MD5-XF]
TRANSFORM_ID= DES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_MD5
Life= Default-phase-2-lifetime
[QM-ESP-DES-MD5-PFS-XF]
TRANSFORM_ID= DES
ENCAPSULATION_MODE= TUNNEL
GROUP_DESCRIPTION= MODP_1024
AUTHENTICATION_ALGORITHM= HMAC_MD5
Life= Default-phase-2-lifetime
[QM-ESP-DES-SHA-XF]
TRANSFORM_ID= DES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_SHA
Life= Default-phase-2-lifetime
# 3DES
[QM-ESP-3DES-SHA-XF]
TRANSFORM_ID= 3DES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_SHA
Life= Default-phase-2-lifetime
[QM-ESP-3DES-SHA-PFS-XF]
TRANSFORM_ID= 3DES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_SHA
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-2-lifetime
[QM-ESP-3DES-SHA-TRP-XF]
TRANSFORM_ID= 3DES
ENCAPSULATION_MODE= TRANSPORT
AUTHENTICATION_ALGORITHM= HMAC_SHA
Life= Default-phase-2-lifetime
# AES
[QM-ESP-AES-SHA-XF]
TRANSFORM_ID= AES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_SHA
Life= Default-phase-2-lifetime
[QM-ESP-AES-SHA-PFS-XF]
TRANSFORM_ID= AES
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_SHA
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-2-lifetime
[QM-ESP-AES-SHA-TRP-XF]
TRANSFORM_ID= AES
ENCAPSULATION_MODE= TRANSPORT
AUTHENTICATION_ALGORITHM= HMAC_SHA
Life= Default-phase-2-lifetime
# AH
[QM-AH-MD5-XF]
TRANSFORM_ID= MD5
ENCAPSULATION_MODE= TUNNEL
AUTHENTICATION_ALGORITHM= HMAC_MD5
Life= Default-phase-2-lifetime
[QM-AH-MD5-PFS-XF]
TRANSFORM_ID= MD5
ENCAPSULATION_MODE= TUNNEL
GROUP_DESCRIPTION= MODP_1024
Life= Default-phase-2-lifetime
[Sample-Life-Time]
LIFE_TYPE= SECONDS
LIFE_DURATION= 3600,1800:7200
[Sample-Life-Volume]
LIFE_TYPE= KILOBYTES
LIFE_DURATION= 1000,768:1536
likeβ¦ she's long, she's thorough, she ate and left no crumbs π β¨
quick lil heads-up bestie: everything below that big # banner of hash marks is optional for this example, because the sample up top is already using the predefined Main Mode transform and Quick Mode suite names. it's only down there for completeness. and the config file itself even tells you to peep the default values for the [General] and [X509-certificates] sections sitting right under it π
π SEE ALSO π
go read your sisters, they're all icons too:
keynote(1)ipsec(4)keynote(4)isakmpd.policy(5)isakmpd(8)
π«Ά BUGS π«Ά
okay so not everything is perfect and we're gonna be honest about it:
- the RFCs do not permit differing DH groups in the same proposal for aggressive and quick mode exchanges. like, at all. no cap.
- mixing both PFS and non-PFS suites in a quick mode proposal is not possible, because PFS implies using a DH group. they're lowkey a package deal, bestie β can't have one without the other π«
and that's the whole page, babe!! this one came from Debian, dated August 07, 2002, and it lives under the name ISAKMPD.CONF(5) β go forth and configure your IKE like the main character you are ππ
π¦ where this page comes from
- ubuntu jammy: isakmpd 20041012-10build1
- Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved
- Copyright (c) 2000, 2001, 2002 HΓ₯kan Olsson. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms