Fortinet white logo
Fortinet white logo

CLI Reference

config firewall vip

config firewall vip

Configure virtual IP for IPv4.

config firewall vip
    Description: Configure virtual IP for IPv4.
    edit <name>
        set id {integer}
        set comment {var-string}
        set extip {user}
        config mappedip
            Description: IP address or address range on the destination network to which the external IP address is mapped.
            edit <range>
            next
        end
        set extintf {string}
        set arp-reply [disable|enable]
        set portforward [disable|enable]
        set protocol [tcp|udp|...]
        set extport {user}
        set mappedport {user}
        set color {integer}
    next
end

config firewall vip

Parameter

Description

Type

Size

name

Virtual IP name.

string

Maximum length: 63

id

Custom defined ID.

integer

Minimum value: 0 Maximum value: 65535

comment

Comment.

var-string

Maximum length: 255

extip

IP address or address range on the external interface that you want to map to an address or address range on the destination network.

user

Not Specified

extintf

Interface connected to the source network that receives the packets that will be forwarded to the destination network.

string

Maximum length: 35

arp-reply

Enable to respond to ARP requests for this virtual IP address. Enabled by default.

option

-

Option

Description

disable

Disable ARP reply.

enable

Enable ARP reply.

portforward

Enable/disable port forwarding.

option

-

Option

Description

disable

Disable port forward.

enable

Enable port forward.

protocol

Protocol to use when forwarding packets.

option

-

Option

Description

tcp

TCP.

udp

UDP.

sctp

SCTP.

icmp

ICMP.

extport

Incoming port number range that you want to map to a port number range on the destination network.

user

Not Specified

mappedport

Port number range on the destination network to which the external port number range is mapped.

user

Not Specified

color

Color of icon on the GUI.

integer

Minimum value: 0 Maximum value: 32

config mappedip

Parameter

Description

Type

Size

range

Mapped IP range.

string

Maximum length: 64

config firewall vip

config firewall vip

Configure virtual IP for IPv4.

config firewall vip
    Description: Configure virtual IP for IPv4.
    edit <name>
        set id {integer}
        set comment {var-string}
        set extip {user}
        config mappedip
            Description: IP address or address range on the destination network to which the external IP address is mapped.
            edit <range>
            next
        end
        set extintf {string}
        set arp-reply [disable|enable]
        set portforward [disable|enable]
        set protocol [tcp|udp|...]
        set extport {user}
        set mappedport {user}
        set color {integer}
    next
end

config firewall vip

Parameter

Description

Type

Size

name

Virtual IP name.

string

Maximum length: 63

id

Custom defined ID.

integer

Minimum value: 0 Maximum value: 65535

comment

Comment.

var-string

Maximum length: 255

extip

IP address or address range on the external interface that you want to map to an address or address range on the destination network.

user

Not Specified

extintf

Interface connected to the source network that receives the packets that will be forwarded to the destination network.

string

Maximum length: 35

arp-reply

Enable to respond to ARP requests for this virtual IP address. Enabled by default.

option

-

Option

Description

disable

Disable ARP reply.

enable

Enable ARP reply.

portforward

Enable/disable port forwarding.

option

-

Option

Description

disable

Disable port forward.

enable

Enable port forward.

protocol

Protocol to use when forwarding packets.

option

-

Option

Description

tcp

TCP.

udp

UDP.

sctp

SCTP.

icmp

ICMP.

extport

Incoming port number range that you want to map to a port number range on the destination network.

user

Not Specified

mappedport

Port number range on the destination network to which the external port number range is mapped.

user

Not Specified

color

Color of icon on the GUI.

integer

Minimum value: 0 Maximum value: 32

config mappedip

Parameter

Description

Type

Size

range

Mapped IP range.

string

Maximum length: 64