opnsense_ipsec_vti (Resource)

IPsec Virtual Tunnel Interfaces (VTIs) are used by routed IPsec VPN connections.

Example Usage

// Small example
resource "opnsense_ipsec_vti" "example" {
  enabled     = "1"
  description = "Example IPsec VTI"

  request_id = "100"

  local_ip          = "1.2.3.4"
  remote_ip         = "5.6.7.8"
  tunnel_local_ip   = "100.64.101.100"
  tunnel_remote_ip  = "100.64.102.100"
  tunnel_local_ip2  = ""
  tunnel_remote_ip2 = ""
}

Schema

Required

  • local_ip (String) Local IP address for the VTI.
  • remote_ip (String) Remote IP address for the VTI.
  • request_id (String) Request ID for the VTI.
  • tunnel_local_ip (String) Local tunnel IP address for the VTI.
  • tunnel_remote_ip (String) Remote tunnel IP address for the VTI.

Optional

  • description (String) Optional description for the VTI.
  • enabled (String) Enable or disable the VTI.
  • tunnel_local_ip2 (String) Second local tunnel IP address for the VTI.
  • tunnel_remote_ip2 (String) Second remote tunnel IP address for the VTI.

Read-Only

  • id (String) UUID of the resource.

Import

In Terraform v1.5.0 and later, use an import block to import opnsense_ipsec_vti using the id. For example:

import {
  to = opnsense_ipsec_vti.example
  id = "<opnsense-resource-id>"
}

Using terraform import, import opnsense_ipsec_vti using the id. For example:

% terraform import opnsense_ipsec_vti.example <opnsense-resource-id>