post http://localhost:3001/rest/json/system/ipsecUdpPorts
Use this api to configure the ipsec udp local and peer ports. If the appliance is managed by an Orchestrator, you should change the ports in the Orchestrator. Orchestrator is the master of this configuration and will override what you save here if it's different.