Skip to main content
begar
New Member
Dec 17, 2020 1:07 PM UTC
Solved

Site to site IPSEC

Hello there, im fairly new to Fortinet hardware so i figured i could ask this question in here: I've setup a site-to-site IPSEC tunnel, my problem is that one of the sites has DHCP on the WAN port. Meaning that if the FortiGate resets, it will get a new ip address and then the tunnel will go down.

 

How do i configure an IPSEC tunnel where one of the sites gets its WAN IP via DHCP?

 

Thanks in advance :)

    sw2090
    sw2090Answer
    SuperUser
    Dec 17, 2020 1:30 PM UTC

    since you don't always want to reconfigure your IPSEC whan that WAN IP changes use some dyndns service to create a FQDN that resolves to that ip and make sure there is some client on the DHCP WAN Site that keeps the dyndns up to date. Then set your IPSEC to use an FQDN as remote gw and set it to the dyndns your created.

     

    If the DHCP WAN Site is a FortiGate too you could easily use the built in fortiddns service on that FGT :)

    2 replies

    sw2090
    SuperUser
    sw2090Answer
    SuperUser
    Dec 17, 2020 1:30 PM UTC

    since you don't always want to reconfigure your IPSEC whan that WAN IP changes use some dyndns service to create a FQDN that resolves to that ip and make sure there is some client on the DHCP WAN Site that keeps the dyndns up to date. Then set your IPSEC to use an FQDN as remote gw and set it to the dyndns your created.

     

    If the DHCP WAN Site is a FortiGate too you could easily use the built in fortiddns service on that FGT :)

    begar
    begarAuthor
    New Member
    Dec 17, 2020 1:52 PM UTC

    Worked like a charm, thank you very much for you fast and accurate reply :)

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT