Skip to main content
jrosado_FTNT
Staff
Staff
November 5, 2016

Technical Tip: DynDNS VIP

  • November 5, 2016
  • 0 replies
  • 5160 views

Description

 

This article describes how, if the WAN link uses a dynamic IP address and a FortiGuard DDNS FQDN has been configured, it may be used to reach internal services using a VIP.

 

Scope

 

FortiGate.


Solution

 

Make sure an FQDN has been configured for FortiGuard DDNS service.

 

config system ddns
    edit 1
        set ddns-server FortiGuardDDNS
        set ddns-domain "myfortigate.fortiddns.com"
        set monitor-interface "wan1"
    next
end
 
ddns.PNG

 

Configure a VIP leaving the external IP address all zeros:

 

 

config firewall vip
    edit "PublicServer"
        set extip 0.0.0.0
        set extintf "wan1"
        set portforward enable
        set mappedip 192.168.1.250
        set extport 8010
        set mappedport 8010
    next
end

 

vippublicserver.PNG

 

Configure a firewall policy to allow the traffic toward the internal Server:

 

VIP.PNG

 

It should be possible to reach the server on the FortiGuard DDNS FQDN and port defined on the VIP: https://myfortigate.fortiddns.com:8010

 

Special notes:

  • If 'any' interface is selected for the Virtual IP, 0.0.0.0 will not be allowed as an external IP, and the GUI will show an error indicating 'IP must not be zero'.
  • If multiple similar Virtual IPs are configured, port forwarding or services filter must be used to avoid conflict, see Technical Tip: Configure port forwarding using FortiGate VIPs
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!