config firewall service custom edit "Port-1723" set tcp-portrange 1723 set udp-portrange 1723 next end
config firewall local-in-policy edit 1 set intf "port1" <- Your public interface or any set srcaddr "all" set dstaddr "all" set service "Port-1723" set schedule "always" next end
Then you can confirm if the traffic on that port is being blocked using:
Thank you for contacting the Fortinet Forum portal.
After verifying the steps suggested by @FortiArt and @AEH make sure to enable the "set match-vip enable" firewall policy if you have any Virtual IP configured refer to below article :
If you feel the above steps helped resolve the issue, mark the reply as solved so that other customers can get it easily while searching for similar scenarios.