create_ipsec_phase2
Create an IPsec Phase 2 child SA to define which local and remote networks a tunnel protects, with mode, protocol, and lifetime settings.
Instructions
Create an IPsec Phase 2 (Child SA / tunnel) 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": {
"ikeid": "<ikeid>",
"mode": "<mode>",
"localid_type": "<localid_type>"
},
"name": "create_ipsec_phase2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Tunnel mode (tunnel, transport, vti) | |
| descr | No | Description for this Phase 2 entry | |
| ikeid | Yes | Parent Phase 1 IKE ID to associate this Phase 2 with | |
| lifetime | No | SA lifetime in seconds (default is typically 3600) | |
| protocol | No | IPsec protocol (esp, ah) | |
| localid_type | Yes | Local network type (address, network, lan, none) | |
| remoteid_type | No | Remote network type (address, network, none) | |
| localid_address | No | Local network address (required when localid_type is address or network) | |
| localid_netbits | No | Local network prefix length (e.g., 24 for /24; required when localid_type is network) | |
| remoteid_address | No | Remote network address (required when remoteid_type is address or network) | |
| remoteid_netbits | No | Remote network prefix length (e.g., 24; required when remoteid_type is network) | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||