create_virtual_ip
Create a FortiGate Virtual IP object to enable port forwarding, NAT, and external access to internal services. Define external IP, mapped internal IP, interface, and optional port forwarding rules.
Instructions
Create a new Virtual IP on a FortiGate device.
This tool adds a new Virtual IP object that can be used for port forwarding, NAT, and external access to internal services.
Parameters:
device_id: Identifier of the FortiGate device
name: Virtual IP name
extip: External IP address
mappedip: Mapped internal IP address
extintf: External interface name
portforward: Enable/disable port forwarding (default: disable)
protocol: Protocol type (tcp/udp, default: tcp)
extport: External port (optional)
mappedport: Mapped port (optional)
vdom: Virtual Domain name (optional, uses device default)
Returns:
Creation status
Virtual IP configuration summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Virtual IP name | |
| vdom | No | Virtual Domain | |
| extip | Yes | External IP address | |
| extintf | Yes | External interface name | |
| extport | No | External port | |
| mappedip | Yes | Mapped internal IP address | |
| protocol | No | Protocol type | tcp |
| device_id | Yes | FortiGate device identifier | |
| mappedport | No | Mapped port | |
| portforward | No | Enable/disable port forwarding | disable |