create_ipsec_phase2
Create an IPsec Phase 2 (Child SA) entry on pfSense, linking it to a parent Phase 1 IKE ID and defining tunnel mode and network selectors.
Instructions
Create an IPsec Phase 2 (Child SA / tunnel) entry
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 | |||