vpn_ipsec_phase1_create
Establish an IPsec VPN Phase 1 (IKE) gateway with remote IP, local egress interface, pre-shared key, and optional settings like proposal and DH group.
Instructions
Create a new IPsec VPN Phase 1 interface (IKEv1/IKEv2 gateway).
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": {
"name": "<name>",
"remote_gw": "<remote_gw>",
"interface": "<interface>",
"psksecret": "<psksecret>"
},
"name": "vpn_ipsec_phase1_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tunnel name (unique identifier). | |
| remote_gw | Yes | Remote gateway IP address. | |
| interface | Yes | Local egress interface (e.g. 'wan1'). | |
| psksecret | Yes | Pre-shared key. | |
| ike_version | No | IKE version: 1 or 2. | 2 |
| mode | No | IKE mode: main or aggressive (IKEv1 only). | main |
| proposal | No | Phase 1 proposal (cipher-hash). E.g. 'aes256-sha256 aes128-sha256'. | aes256-sha256 |
| dhgrp | No | DH group(s). E.g. '14 5 2'. | 14 |
| comments | No | Comment. | |
| net_device | No | Use VPN gateway as network device: enable or disable. | disable |
| vdom | No | Target VDOM name. Defaults to the server default VDOM. Use '*' for all VDOMs (super-admin required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||