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
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.
Comments ( 0 )
No comments available