Skip to Content

Solved: How do I implement basic policy for Policy Based NGFW Mode?

This article describes how to implement basic policy for Policy Based NGFW Mode


Basic internet policy for PC users (tested on FOS 6.4.8).


Fortigate has 2 (two) NGFW mode:

  • Profile Based ( default ) – – not covered for this example.
  • Policy Based.

There are 3 (three) components which need to pay attention to, in order to implement basic policy in Policy-based NGFW mode.

GUI ( Policy & Objects ) CLI
Security Policy Firewall Security Policy
Central SNAT Firewall central-snat-map
SSL Inspection & Authentication Firewall Policy

Note: Routing must be in place to address the network requirement

FGT1 (client_vdom) # get system settings | grep ngfw
ngfw-mode : policy-based
FGT1 (client_vdom) # show firewall security-policy 1
config firewall security-policy
edit 1
set uuid 1aab8348-6cea-51ed-51f6-d59f43e4848e
set name "internet"
set srcintf "port7" --> intf to user pc
set dstintf "vdom_link1" --> intf to internet
set srcaddr "all"
set dstaddr "all"
set action accept
set schedule "always"
set logtraffic all
FGT1 (client_vdom) # show firewall central-snat-map 1
config firewall central-snat-map
edit 1
set uuid 26bcef28-6cea-51ed-4867-befe6c338372
set srcintf "port7"
set dstintf "vdom_link1"
set orig-addr "all"
set dst-addr "all"
FGT1 (client_vdom) # show firewall policy 1
config firewall policy
edit 1
set name "internet_ssl"
set uuid 041ce39c-6cea-51ed-2ac9-a858f21eedd5
set srcintf "port7"
set dstintf "vdom_link1"
set srcaddr "all"
set dstaddr "all"
set service "ALL"

Warning: Changing NGFW Mode from profile to policy-based and vice versa will remove all the firewall policy configurations.

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.