create_ipsec_phase1
Creates an IPsec Phase 1 (IKE) entry with IKE version, protocol, interface, remote gateway, and authentication method, so you can define a VPN tunnel endpoint.
Instructions
Create an IPsec Phase 1 (IKE) entry
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"iketype": "<iketype>",
"protocol": "<protocol>",
"interface": "<interface>",
"remote_gateway": "<remote_gateway>",
"authentication_method": "<authentication_method>"
},
"name": "create_ipsec_phase1"
}
}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 | |||