Ipsec Tunnel
Provides a resource, that manages IPsec tunnels for Magic Transit.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.IpsecTunnel;
import com.pulumi.cloudflare.IpsecTunnelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new IpsecTunnel("example", IpsecTunnelArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.allowNullCipher(false)
.cloudflareEndpoint("203.0.113.1")
.customerEndpoint("203.0.113.1")
.description("Tunnel for ISP X")
.healthCheckEnabled(true)
.healthCheckTarget("203.0.113.1")
.healthCheckType("reply")
.interfaceAddress("192.0.2.0/31")
.name("IPsec_1")
.psk("asdf12341234")
.build());
}
}
Content copied to clipboard
Import
$ pulumi import cloudflare:index/ipsecTunnel:IpsecTunnel example <account_id>/<tunnel_id>
Content copied to clipboard
Properties
Link copied to clipboard
Specifies if this tunnel may use a null cipher (ENCR_NULL) in Phase 2. Defaults to false
.
Link copied to clipboard
IP address assigned to the Cloudflare side of the IPsec tunnel.
Link copied to clipboard
IP address assigned to the customer side of the IPsec tunnel.
Link copied to clipboard
An optional description of the IPsec tunnel.
Link copied to clipboard
Specifies if ICMP tunnel health checks are enabled. Default: true
.
Link copied to clipboard
The IP address of the customer endpoint that will receive tunnel health checks. Default: <customer_gre_endpoint>
.
Link copied to clipboard
Specifies the ICMP echo type for the health check (request
or reply
). Available values: request
, reply
Default: reply
.
Link copied to clipboard
31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard