ionoscloud_vpn_ipsec_gateway
IPSec Gateway
Usage example
# Basic example
resource "ionoscloud_datacenter" "test_datacenter" {
name = "test_vpn_gateway_basic"
location = "de/fra"
}
resource "ionoscloud_lan" "test_lan" {
name = "test_lan_basic"
public = false
datacenter_id = ionoscloud_datacenter.test_datacenter.id
}
resource "ionoscloud_ipblock" "test_ipblock" {
name = "test_ipblock_basic"
location = "de/fra"
size = 1
}
resource "ionoscloud_vpn_ipsec_gateway" "example" {
name = "ipsec_gateway_basic"
location = "de/fra"
gateway_ip = ionoscloud_ipblock.test_ipblock.ips[0]
version = "IKEv2"
description = "This gateway connects site A to VDC X."
connections {
datacenter_id = ionoscloud_datacenter.test_datacenter.id
lan_id = ionoscloud_lan.test_lan.id
ipv4_cidr = "192.168.100.10/24"
}
}Argument reference
Import
Last updated
