Skip to main content
kumarh
Staff
Staff
October 28, 2024

Troubleshooting Tip: How to fix error "Must set IPv4 or IPv6 range. object check operator error, -45, discard the setting Command fail. Return code -45"

  • October 28, 2024
  • 0 replies
  • 1286 views
Description

This article describes how to resolve a common error encountered while configuring an IPsec dial-up tunnel on FortiGate when mode-cfg is enabled.

 

image (12).png

 

Scope All FortiGate firmware version.
Solution

When mode-cfg is enabled, FortiGate acts as a DHCP server for VPN clients, dynamically assigning IP addresses and other network configuration details. To avoid the error, it is essential to configure the ipv4-start-ip and ipv4-end-ip range (or the equivalent IPv6 range, if applicable).


For instance,

 

config vpn ipsec phase1-interface

edit <vpn tunnel>

set ipv4-start-ip X.X.X.X <- Where (X.X.X.X and Y.Y.Y.Y is starting and ending IP range).
set ipv4-end-ip Y.Y.Y.Y

end

 

After setting the IP range, the error should no longer appear.

    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.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!