create_ipsec_phase1
Create IPsec Phase 1 IKE settings for VPN tunnels, defining IKE version, protocol, interface, remote gateway, and authentication method to establish secure connections.
Instructions
Create an IPsec Phase 1 (IKE) entry
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Description for this Phase 1 entry | |
| iketype | Yes | IKE version (ikev1, ikev2, auto) | |
| disabled | No | Whether this entry starts disabled | |
| lifetime | No | SA lifetime in seconds (default is typically 28800) | |
| protocol | Yes | Protocol (inet for IPv4, inet6 for IPv6, both) | |
| interface | Yes | Interface for the tunnel (wan, lan, etc.) | |
| myid_data | No | Local identifier data | |
| myid_type | No | Local identifier type (myaddress, address, fqdn, user_fqdn, asn1dn, keyid) | |
| peerid_data | No | Peer identifier data | |
| peerid_type | No | Peer identifier type (peeraddress, address, fqdn, user_fqdn, asn1dn, keyid) | |
| pre_shared_key | No | Pre-shared key (required when authentication_method is pre_shared_key) | |
| remote_gateway | Yes | Remote gateway IP address or hostname | |
| apply_immediately | No | Whether to apply changes immediately | |
| authentication_method | Yes | Auth method (pre_shared_key, cert) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||