• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to configure Interface, Address, and Firewall Policy on Fortigate in CLI Mode

  • 01:05 config system interface
  • 01:18 edit port6
  • 01:28 set ip 192.168.5.1 255.255.255.0
  • 01:51 set allowaccess http
  • 02:04 end
  • 02:41 config firewall address
  • 02:51 edit "add1"
  • 03:05 set type ipmask
  • 03:18 set associated-interface ''
  • 03:38 set color 0
  • 03:48 set allow-routing disable
  • 04:05 set subnet 192.168.5.1 255.255.255.0
  • 04:32 end
  • 05:02 config firewall policy
  • 05:11 edit 1
  • 05:17 set name "policy1"
  • 05:35 set srcintf "port5"
  • 05:45 set dstintf "port6"
  • 05:55 set srcaddr "add1"
  • 06:07 set dstaddr "all"
  • 06:20 set action accept
  • 06:31 set schedule "always"
  • 06:40 set service "ALL"
  • 06:49 set logtraffic all
  • 07:05 end
{{postValue.id}}

To configure Interface, Address and Firewall Policy on FortiGate in CLI Mode

Introduction:

FortiGate firewalls are purpose-built security processers that allow the industry's best threat protection and performance for SSL-encrypted traffic by rendering granular visibility of applications, users, and IoT devices. These tools are designed to identify issues instantly and effectively.

Configuration:

Configure Interface by using the below command:

FortiGate-VM64 # config system interface
FortiGate-VM64 (interface) # edit port6
FortiGate-VM64 (port6) # set ip 192.168.5.1  255.255.255.0
FortiGate-VM64 (port6) # set allowaccess http
FortiGate-VM64 (port6) # end

Configure Firewall address by using the below command:

FortiGate-VM64 # config firewall address
FortiGate-VM64 (address) # edit "add1"
FortiGate-VM64 (add1) # set type ipmask
FortiGate-VM64 (add1) # set associated-interface ''
FortiGate-VM64 (add1) # set color 0
FortiGate-VM64 (add1) # set allow-routing disable
FortiGate-VM64 (add1) #  set subnet 192.168.5.1 255.255.255.0
FortiGate-VM64 (add1) # end

Configure Firewall policy by using below command:

FortiGate-VM64 # config firewall policy
FortiGate-VM64 (policy) # edit 1
FortiGate-VM64 (1) # set name "policy1"
FortiGate-VM64 (1) # set srcintf "port5"
FortiGate-VM64 (1) # set dstintf "port6"
FortiGate-VM64 (1) # set srcaddr "add1" 
FortiGate-VM64 (1) # set dstaddr "all"
FortiGate-VM64 (1) # set action accept
FortiGate-VM64 (1) # set schedule "always"
FortiGate-VM64 (1) # set service "ALL"
FortiGate-VM64 (1) # set logtraffic all
FortiGate-VM64 (1) #  end

With this method, the configuration of Interface, Address and Policy on FortiGate in CLI mode comes to an end.

Tags:
lincoln
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Fortigate?

A

FortiGate NGFWs are network firewalls powered by purpose-built security processing units (SPUs) including the latest NP7 (Network Processor 7). They enable security-driven networking and are ideal network firewalls for hybrid and hyper-scale data centers.

Q

How to download FortiGate?

A

Open the below website and register with a mail Id to download the FortiGate
https://support.fortinet.com/

Q

Is FortiGate free?

A

FortiGate 30 series and higher models include a FortiClient free trial license for ten connected FortiClient endpoints.

Q

How do I install FortiClient?

A

To install FortiClient on your Windows computer, run the *.exe or *. msi file after downloading it from the Fortinet website. After the download completes, double-click on the installer file to run it.

Q

What are the 3 types of firewalls?

A

There are three basic types of firewalls that are used by companies to protect their data & devices to keep destructive elements out of the network, viz. Packet Filters, Stateful Inspection, and Proxy Server Firewalls. Let us give you a brief introduction to each of these.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.