FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
esalija
Staff
Staff
Article Id 295033
Description This article describes how to configure a Loopback interface in FortiGate and access it for a public IP address.
Scope FortiGate.
Solution
  • Configure a loopback interface with an IP address not used in the Network:

 

config system interface

    edit "MGMT-LO"

        set vdom "root"

        set ip 172.16.1.1 255.255.255.0

        set allowaccess https ssh

        set type loopback

        set role lan

        set snmp-index 15

    next

end

 

loopback interface.PNG

 

  • Configure the WAN interface, Port 1 in this case is acting as the WAN Interface.

 

config system interface

    edit "port1"

        set vdom "root"

        set ip 10.191.21.15 255.255.240.0

        set allowaccess ping https ssh http telnet

        set type physical

        set snmp-index 1

    next

end

 

Port 1 interface.PNG

 

  • Configure a VIP from Port 1 -> MGMT-LO for external port 10443 -> 443.

 

config firewall vip

    edit "mgmt-lo-vip"

        set uuid 383740ea-b60f-51ee-f91a-bb56173ab47c

        set extip 10.191.21.15

        set mappedip "172.16.1.1"

        set extintf "any"

        set portforward enable

        set extport 10443

        set mappedport 443

    next

end

 

VIP.PNG

 

  • Configure a Firewall Policy in the FortiGate. 

 

config firewall policy

    edit 1

        set name "Access-Mgmt-Lo"

        set uuid 5c08d9e8-b60f-51ee-7585-7c63bae0531a

        set srcintf "port1"

        set dstintf "MGMT-LO"

        set action accept

        set srcaddr "all"

        set dstaddr "mgmt-lo-vip"

        set schedule "always"

        set service "HTTPS"

    next

end

 

Firewall policy.PNG

 

 

  • The admin can log in to the FortiGate using port 10443 and port 443.

 

login page.PNG

 login2.PNG