update_ipsec_phase1
Modify an existing IPsec Phase 1 (IKE) entry by ID to adjust tunnel settings such as gateway, identifiers, authentication, lifetime, or enabled state on pfSense.
Instructions
Update an existing IPsec Phase 1 (IKE) entry by ID
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": {
"phase1_id": "<phase1_id>"
},
"name": "update_ipsec_phase1"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Description | |
| iketype | No | IKE version (ikev1, ikev2, auto) | |
| disabled | No | Whether entry is disabled | |
| lifetime | No | SA lifetime in seconds | |
| protocol | No | Protocol (inet, inet6, both) | |
| interface | No | Interface for the tunnel (wan, lan, etc.) | |
| myid_data | No | Local identifier data | |
| myid_type | No | Local identifier type | |
| phase1_id | Yes | Phase 1 entry ID (from search_ipsec_phase1s) | |
| peerid_data | No | Peer identifier data | |
| peerid_type | No | Peer identifier type | |
| pre_shared_key | No | Pre-shared key | |
| remote_gateway | No | Remote gateway IP address or hostname | |
| apply_immediately | No | Whether to apply changes immediately | |
| authentication_method | No | Auth method (pre_shared_key, cert) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||