Created on 06-20-2018 02:06 AM Edited on 05-26-2022 11:16 AM By Anonymous
Description
This article describes how to insert the special symbol "?" in the CLI as part of the input. In the FortiOS CLI, "?" is usually used to open the help menu, but under certain circumstances it can be used as part of the input, for example, to configure a redirect URL containing a "?" in a firewall policy.
Solution
To use the special symbol "?" as part of the input in the CLI, press "CTRL+V" on the keyboard first, then press "?".
This is how to configure a redirect firewall policy to use a url with a "?" :
config firewall policy
edit 1
set name "test"
set uuid 9454cdf2-4923-51e8-336f-123d6b6ab6b5
set srcintf "port2"
set dstintf "port1"
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set service "ALL"
set logtraffic all
set groups "Local"
set nat enable
set redirect-url "http://abc.com/test?=123"
next
end
Note that copying and pasting the entire redirect-url won't work, it is absolutely necessary to input "CTRL+V" first before using the "?" symbol.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.