create_device_ipsec_phase2_interface
Creates an IPsec phase2-interface tunnel or traffic selector in a device database under a parent phase1 gateway, with configurable proxy subnets and proposal settings.
Instructions
Create an IPsec phase2-interface (tunnel/traffic selector) in a device's device DB.
Args: device: Managed device name name: New phase2-interface (tunnel) name phase1name: Parent phase1-interface (remote gateway) name this tunnel is negotiated under src_subnet: Local proxy ID subnet, CIDR ("192.168.1.0/24") or "address netmask" form. Omitted means the FortiOS default (0.0.0.0/0, the whole local network) dst_subnet: Remote proxy ID subnet, same accepted forms. Omitted means the FortiOS default (0.0.0.0/0) proposal: Phase2 encryption/authentication proposal list (e.g. ["aes256-sha256"]). Pass-through, see module docstring dhgrp: Phase2 PFS Diffie-Hellman group list. Pass-through, see module docstring pfs: Perfect Forward Secrecy: "disable" or "enable" replay: Replay detection: "disable" or "enable" keepalive: Keep-alive: "disable" or "enable" auto_negotiate: IPsec SA auto-negotiation: "disable" or "enable" keylifeseconds: Phase2 key life in seconds (120-172800) comments: Free-text comment vdom: VDOM the tunnel lives in (default "root")
Returns: Creation result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pfs | No | ||
| name | Yes | ||
| vdom | No | root | |
| dhgrp | No | ||
| device | Yes | ||
| replay | No | ||
| comments | No | ||
| proposal | No | ||
| keepalive | No | ||
| dst_subnet | No | ||
| phase1name | Yes | ||
| src_subnet | No | ||
| auto_negotiate | No | ||
| keylifeseconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||