» panos_ike_gateway
This resource allows you to add/update/delete IKE gateways.
» Example Usage
resource "panos_ike_gateway" "example" {
name = "example"
peer_ip_type = "dynamic"
interface = "loopback.42"
pre_shared_key = "secret"
local_id_type = "ipaddr"
local_id_value = "10.1.1.1"
peer_id_type = "ipaddr"
peer_id_value = "10.5.1.1"
ikev1_crypto_profile = "myIkeProfile"
}
» Argument Reference
The following arguments are supported:
-
name- (Required) The object's name -
version- (Optional, PAN-OS 7.0+) The IKE gateway version. Valid values areikev1, (the default),ikev2, orikev2-preferred. For PAN-OS 6.1, onlyikev1is acceptable. -
enable_ipv6- (Optional, PAN-OS 7.0+, bool) Enable IPv6 or not. -
disabled- (Optional, PAN-OS 7.0+, bool) Set totrueto disable. -
peer_ip_type- (Optional) The peer IP type. Valid values areip,dynamic, andfqdn(PANOS 8.1+). -
peer_ip_value- (Optional) The peer IP value. -
interface- (Required) The interface. -
local_ip_address_type- (Optional) The local IP address type. Valid values for this areip, or an empty string (the default) which isNone. -
local_ip_address_value- (Optional) The IP address iflocal_ip_address_typeis set toip. -
auth_type- (Optional) The auth type. Valid values arepre-shared-key(the default), orcertificate. -
pre_shared_key- (Optional) The pre-shared key value. -
local_id_type- (Optional) The local ID type. Valid values areipaddr,fqdn,ufqdn,keyid, ordn. -
local_id_value- (Optional) The local ID value. -
peer_id_type- (Optional) The peer ID type. Valid values areipaddr,fqdn,ufqdn,keyid, ordn. -
peer_id_value- (Optional) The peer ID value. -
peer_id_check- (Optional) Enable peer ID wildcard match for certificate authentication. Valid values areexactorwildcard. -
local_cert- (Optional) The local certificate name. -
cert_enable_hash_and_url- (Optional, PAN-OS 7.0+, bool) Set totrueto use hash-and-url for local certificate. -
cert_base_url- (Optional) The host and directory part of URL for local certificates. -
cert_use_management_as_source- (Optional, PAN-OS 7.0+, bool) Set totrueto use management interface IP as source to retrieve http certificates -
cert_permit_payload_mismatch- (Optional, bool) Set totrueto permit peer identification and certificate payload identification mismatch. -
cert_profile- (Optional) Profile for certificate valdiation during IKE negotiation. -
cert_enable_strict_validation- (Optional, bool) Set totrueto enable strict validation of peer's extended key use. -
enable_passive_mode- (Optional, bool) Set totrueto enable passive mode (responder only). -
enable_nat_traversal- (Optional, bool) Set totrueto enable NAT traversal. -
nat_traversal_keep_alive- (Optional, int) Sending interval for NAT keep-alive packets (in seconds) -
nat_traversal_enable_udp_checksum- (Optional, bool) Set totrueto enable NAT traversal UDP checksum. -
enable_fragmentation- (Optional, bool) Set totrueto enable fragmentation. -
ikev1_exchange_mode- (Optional) The IKEv1 exchange mode. -
ikev1_crypto_profile- (Optional) IKEv1 crypto profile. -
enable_dead_peer_detection- (Optional, bool) Set totrueto enable dead peer detection. -
dead_peer_detection_interval- (Optional, int) The dead peer detection interval. -
dead_peer_detection_retry- (Optional, int) Number of retries before disconnection. -
ikev2_crypto_profile- (Optional, PAN-OS 7.0+) IKEv2 crypto profile. -
ikev2_cookie_validation- (Optional, PAN-OS 7.0+) Set totrueto require cookie. -
enable_liveness_check- (Optional, , PAN-OS 7.0+bool) Set totrueto enable sending empty information liveness check message. -
liveness_check_interval- (Optional, , PAN-OS 7.0+int) Delay interval before sending probing packets (in seconds).