bigip_ike_peer – Manage IPSec IKE Peer configuration on BIG-IP

New in version 2.8.

Synopsis

  • Manage IPSec IKE Peer configuration on BIG-IP.

Parameters

Parameter Choices/Defaults Comments
description
string
Description of the IKE peer.
name
string / required
Specifies the name of the IKE peer.
partition
string
Default:
"Common"
Device partition to manage resources on.
phase1_auth_method
string
    Choices:
  • pre-shared-key
  • rsa-signature
Specifies the authentication method for phase 1 negotiation.
When creating a new IKE peer, if this value is not specified, the default is rsa-signature.
phase1_cert
string
Specifies the digital certificate to use for the RSA signature.
When creating a new IKE peer, if this value is not specified, and phase1_auth_method is rsa-signature, the default is default.crt.
This parameter is invalid when phase1_auth_method is pre-shared-key.
phase1_encryption_algorithm
string
    Choices:
  • 3des
  • des
  • blowfish
  • cast128
  • aes128
  • aes192
  • aes256
  • camellia
Specifies the algorithm to use for IKE encryption.
IKE version v2 does not support blowfish, camellia, or cast128.
phase1_hash_algorithm
string
    Choices:
  • sha1
  • md5
  • sha256
  • sha384
  • sha512
Specifies the algorithm to use for IKE authentication.
phase1_key
string
Specifies the public key that the digital certificate contains.
When creating a new IKE peer, if this value is not specified, and phase1_auth_method is rsa-signature, the default is default.key.
This parameter is invalid when phase1_auth_method is pre-shared-key.
phase1_perfect_forward_secrecy
string
    Choices:
  • ecp256
  • ecp384
  • ecp521
  • modp768
  • modp1024
  • modp1536
  • modp2048
  • modp3072
  • modp4096
  • modp6144
  • modp8192
Specifies the Diffie-Hellman group to use for IKE Phase 1 and Phase 2 negotiations.
phase1_verify_peer_cert
boolean
    Choices:
  • no
  • yes
In IKEv2, specifies whether the certificate sent by the IKE peer is verified using the Trusted Certificate Authorities, a CRL, and/or a peer certificate.
In IKEv1, specifies whether the identifier sent by the peer is verified with the credentials in the certificate, in the following manner - ASN1DN; specifies that the entire certificate subject name is compared with the identifier. Address, FQDN, or User FQDN; specifies that the certificate's subjectAltName is compared with the identifier. If the two do not match, the negotiation fails.
When creating a new IKE peer, if this value is not specified, and phase1_auth_method is rsa-signature, the default is no.
This parameter is invalid when phase1_auth_method is pre-shared-key.
presented_id_type
string
    Choices:
  • address
  • asn1dn
  • fqdn
  • keyid-tag
  • user-fqdn
  • override
Specifies the identifier type that the local system uses to identify itself to the peer during IKE Phase 1 negotiations.
presented_id_value
string
This is a required value when version includes (Cv2).
Specifies a value for the identity when using a presented_id_type of override.
preshared_key
string
Specifies a string that the IKE peers share for authenticating each other.
This parameter is only relevant when phase1_auth_method is pre-shared-key.
This parameter is invalid when phase1_auth_method is rsa-signature.
provider
dictionary
added in 2.5
A dict object containing connection details.
auth_provider
string
Configures the auth provider for to obtain authentication tokens from the remote device.
This option is really used when working with BIG-IQ devices.
password
string / required
The password for the user account used to connect to the BIG-IP.
You may omit this option by setting the environment variable F5_PASSWORD.

aliases: pass, pwd
server
string / required
The BIG-IP host.
You may omit this option by setting the environment variable F5_SERVER.
server_port
integer
Default:
443
The BIG-IP server port.
You may omit this option by setting the environment variable F5_SERVER_PORT.
ssh_keyfile
path
Specifies the SSH keyfile to use to authenticate the connection to the remote device. This argument is only used for cli transports.
You may omit this option by setting the environment variable ANSIBLE_NET_SSH_KEYFILE.
timeout
integer
Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error.
transport
string
    Choices:
  • cli
  • rest ←
Configures the transport connection to use when connecting to the remote device.
user
string / required
The username to connect to the BIG-IP with. This user must have administrative privileges on the device.
You may omit this option by setting the environment variable F5_USER.
validate_certs
boolean
    Choices:
  • no
  • yes ←
If no, SSL certificates are not validated. Use this only on personally controlled sites using self-signed certificates.
You may omit this option by setting the environment variable F5_VALIDATE_CERTS.
remote_address
string
Displays the IP address of the BIG-IP system that is remote to the system you are configuring.
state
string
    Choices:
  • present ←
  • absent
When present, ensures that the resource exists.
When absent, ensures the resource is removed.
update_password
string
    Choices:
  • always ←
  • on_create
always will allow to update passwords if the user chooses to do so. on_create will only set the password for newly created IKE peers.
verified_id_type
string
    Choices:
  • address
  • asn1dn
  • fqdn
  • keyid-tag
  • user-fqdn
  • override
Specifies the identifier type that the local system uses to identify the peer during IKE Phase 1 negotiation.
This is a required value when version includes (Cv2).
When user-fqdn, value of verified_id_value must be in the form of User @ DNS domain string.
verified_id_value
string
This is a required value when version includes (Cv2).
Specifies a value for the identity when using a verified_id_type of override.
version
list
    Choices:
  • v1
  • v2
Specifies which version of IKE is used.
If the system you are configuring is the IPsec initiator, and you select both versions, the system tries using IKEv2 for negotiation. If the remote peer does not support IKEv2, the IPsec tunnel fails. To use IKEv1 in this case, you must deselect Version 2 and try again.
If the system you are configuring is the IPsec responder, and you select both versions, the IPsec initiator system determines which IKE version to use.
When creating a new IKE peer, this value is required.

Notes

Note

  • For more information on using Ansible to manage F5 Networks devices see https://www.ansible.com/integrations/networks/f5.
  • Requires BIG-IP software version >= 12.
  • The F5 modules only manipulate the running configuration of the F5 product. To ensure that BIG-IP specific configuration persists to disk, be sure to include at least one task that uses the bigip_config module to save the running configuration. Refer to the module’s documentation for the correct usage of the module to save your running configuration.

Examples

- name: Create new IKE peer
  bigip_ike_peer:
    name: ike1
    remote_address: 1.2.3.4
    version:
      - v1
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Change presented id type - keyid-tag
  bigip_ike_peer:
    name: ike1
    presented_id_type: keyid-tag
    presented_id_value: key1
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

- name: Remove IKE peer
  bigip_ike_peer:
    name: ike1
    state: absent
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
phase1_auth_method
string
changed
The new IKE Phase 1 Credentials Authentication Method value of the resource.

Sample:
rsa-signature
phase1_cert
string
changed
The new IKE Phase 1 Certificate Credentials.

Sample:
/Common/cert1.crt
phase1_encryption_algorithm
string
changed
The new IKE Phase 1 Encryption Algorithm.

Sample:
3des
phase1_hash_algorithm
string
changed
The new IKE Phase 1 Authentication Algorithm.

Sample:
sha256
phase1_key
string
changed
The new IKE Phase 1 Key Credentials.

Sample:
/Common/cert1.key
phase1_perfect_forward_secrecy
string
changed
The new IKE Phase 1 Perfect Forward Secrecy.

Sample:
modp1024
phase1_verify_peer_cert
boolean
changed
The new IKE Phase 1 Key Verify Peer Certificate setting.

Sample:
True
presented_id_type
string
changed
The new Presented ID Type value of the resource.

Sample:
address
presented_id_value
string
changed
The new Presented ID Value setting for the Presented ID Type.

Sample:
1.2.3.1
remote_address
string
changed
The new Remote Address value of the resource.

Sample:
1.2.2.1
verified_id_type
string
changed
The new Verified ID Type value of the resource.

Sample:
address
verified_id_value
string
changed
The new Verified ID Value setting for the Verified ID Type.

Sample:
1.2.3.1
version
list
changed
The new list of IKE versions.

Sample:
['v1', 'v2']


Status

Authors

  • Tim Rupp (@caphrim007)
  • Wojciech Wypior (@wojtek0806)

Hint

If you notice any issues in this documentation, you can edit this document to improve it.