Fortinet white logo
Fortinet white logo

CLI Reference

config firewall acl

config firewall acl

Note

This command is available for model(s): FortiGate 1000F, FortiGate 1001F, FortiGate 100F, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 120G, FortiGate 121G, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 1801F, FortiGate 2000E, FortiGate 200F, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3000F, FortiGate 3001F, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3200F, FortiGate 3201F, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3500F, FortiGate 3501F, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3700F, FortiGate 3701F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 401E, FortiGate 401F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F, FortiGate 500E, FortiGate 501E, FortiGate 600E, FortiGate 600F, FortiGate 601E, FortiGate 601F, FortiGate 900G, FortiGate 901G.

It is not available for: FortiGate 1000D, FortiGate 200E, FortiGate 201E, FortiGate 5001E1, FortiGate 5001E, FortiGate 60E DSLJ, FortiGate 60E, FortiGate 61E, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F DSL, FortiGate 81E-POE, FortiGate 900D, FortiGate 90E, FortiGate 90G, FortiGate 91E, FortiGate 91G, FortiGate-VM64 Aliyun, FortiGate-VM64 AWS, FortiGate-VM64 Azure, FortiGate-VM64 GCP, FortiGate-VM64 OPC, FortiGate-VM64, FortiGateRugged 70F, FortiWiFi 60E DSLJ, FortiWiFi 61E, FortiWiFi 80F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G DSL.

Configure IPv4 access control list.

config firewall acl
    Description: Configure IPv4 access control list.
    edit <policyid>
        set comments {var-string}
        set dstaddr <name1>, <name2>, ...
        set fragment [pass|drop]
        set interface {string}
        set name {string}
        set service <name1>, <name2>, ...
        set srcaddr <name1>, <name2>, ...
        set status [enable|disable]
    next
end

config firewall acl

Parameter

Description

Type

Size

Default

comments

Comment.

var-string

Maximum length: 1023

dstaddr <name>

Destination address name.

Address name.

string

Maximum length: 79

fragment

Pass/drop fragments that match L3 information.

option

-

pass

Option

Description

pass

Pass fragments that match interface, srcaddr, and dstaddr.

drop

Drop fragments that match interface, srcaddr, and dstaddr.

interface

Interface name.

string

Maximum length: 35

name

Policy name.

string

Maximum length: 35

policyid

Policy ID.

integer

Minimum value: 0 Maximum value: 9999

0

service <name>

Service name.

Service name.

string

Maximum length: 79

srcaddr <name>

Source address name.

Address name.

string

Maximum length: 79

status

Enable/disable access control list status.

option

-

enable

Option

Description

enable

Enable access control list status.

disable

Disable access control list status.

config firewall acl

config firewall acl

Note

This command is available for model(s): FortiGate 1000F, FortiGate 1001F, FortiGate 100F, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 120G, FortiGate 121G, FortiGate 140E-POE, FortiGate 140E, FortiGate 1800F, FortiGate 1801F, FortiGate 2000E, FortiGate 200F, FortiGate 201F, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 2600F, FortiGate 2601F, FortiGate 3000D, FortiGate 3000F, FortiGate 3001F, FortiGate 300E, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3200F, FortiGate 3201F, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3500F, FortiGate 3501F, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3700F, FortiGate 3701F, FortiGate 3960E, FortiGate 3980E, FortiGate 400E Bypass, FortiGate 400E, FortiGate 400F, FortiGate 401E, FortiGate 401F, FortiGate 4200F, FortiGate 4201F, FortiGate 4400F, FortiGate 4401F, FortiGate 500E, FortiGate 501E, FortiGate 600E, FortiGate 600F, FortiGate 601E, FortiGate 601F, FortiGate 900G, FortiGate 901G.

It is not available for: FortiGate 1000D, FortiGate 200E, FortiGate 201E, FortiGate 5001E1, FortiGate 5001E, FortiGate 60E DSLJ, FortiGate 60E, FortiGate 61E, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F DSL, FortiGate 81E-POE, FortiGate 900D, FortiGate 90E, FortiGate 90G, FortiGate 91E, FortiGate 91G, FortiGate-VM64 Aliyun, FortiGate-VM64 AWS, FortiGate-VM64 Azure, FortiGate-VM64 GCP, FortiGate-VM64 OPC, FortiGate-VM64, FortiGateRugged 70F, FortiWiFi 60E DSLJ, FortiWiFi 61E, FortiWiFi 80F 2R 3G4G DSL, FortiWiFi 81F 2R 3G4G DSL.

Configure IPv4 access control list.

config firewall acl
    Description: Configure IPv4 access control list.
    edit <policyid>
        set comments {var-string}
        set dstaddr <name1>, <name2>, ...
        set fragment [pass|drop]
        set interface {string}
        set name {string}
        set service <name1>, <name2>, ...
        set srcaddr <name1>, <name2>, ...
        set status [enable|disable]
    next
end

config firewall acl

Parameter

Description

Type

Size

Default

comments

Comment.

var-string

Maximum length: 1023

dstaddr <name>

Destination address name.

Address name.

string

Maximum length: 79

fragment

Pass/drop fragments that match L3 information.

option

-

pass

Option

Description

pass

Pass fragments that match interface, srcaddr, and dstaddr.

drop

Drop fragments that match interface, srcaddr, and dstaddr.

interface

Interface name.

string

Maximum length: 35

name

Policy name.

string

Maximum length: 35

policyid

Policy ID.

integer

Minimum value: 0 Maximum value: 9999

0

service <name>

Service name.

Service name.

string

Maximum length: 79

srcaddr <name>

Source address name.

Address name.

string

Maximum length: 79

status

Enable/disable access control list status.

option

-

enable

Option

Description

enable

Enable access control list status.

disable

Disable access control list status.