Fortinet black logo

CLI Reference

config firewall policy6

config firewall policy6

Use this command to configure firewall policy rules for IPv6 addresses.

A firewall policy is a filter that allows or denies traffic to be forwarded to the system based on a matching tuple: source address, destination address, and service. By default, firewall policy rules are stateful: if client-to-server traffic is allowed, the session is maintained in a state table, and the response traffic is allowed.

The FortiADC system evaluates firewall policies before other rules. It matches traffic against the firewall policy table, beginning with the first rule. If a rule matches, the specified action is taken. If the session is denied by a firewall policy rule, it is dropped. If the session is accepted, system processing continues.

By default, if firewall rules are not configured, the system does not perform firewall processing; all traffic is processed as if the system were a router, and traffic is forwarded according to routing and other system rules.

Note: You do not need to create firewall rules for routine management traffic associated with the management port or HA ports. The interface “allow access” option enables permitted protocols. The system automatically permits from-self traffic, such as health check traffic, and expected responses.

Before you begin:
  • You must have a good understanding and knowledge of firewalls.
  • You must have created the address configuration objects and service configuration objects that define the matching tuple in your firewall policy rules.
  • You must have read-write permission for firewall settings.

Syntax

config firewall policy6

set default-action {deny|accept}

set stateful {enable|disable}

config rule

edit <name>

set action {deny | accept}

set deny-log {disable | enable}

set destination-type {address|addrgrp|external-resource}

set destination-address6 <datasource>

set destination-addrgrp6 <datasource>

set destination-external-resource-address6 <datasource>

set in-interface <datasource>

set out-interface <datasource>

set service <datasource>

set source-type {address|addrgrp|external-resource}

set source-address6 <datasource>

set source-addrgrp6 <datasource>

set source-external-resource-address6 <datasource>

set status {enable | disable}

next

end

end

default-action

Action when no rule matches or no rules are configured:

  • deny—Drop the traffic.
  • accept—Allow the traffic to pass the firewall.

stateful

Enable/disable stateful firewall. When enabled, server response traffic is permitted automatically when the client-to-server rule allows the connection to be established. When disabled, you must create separate rules for client-to-server and server-to-client traffic. Enabled by default.

config rule

action

  • deny—Drop the traffic.
  • accept—Allow the traffic to pass the firewall.

deny-log

Enable/disable deny log. When enabled, firewall denied traffic is logged, wherein relevant information for traffic is logged when the traffic triggers the policy action to drop it. The deny-log option is only available when action is set to deny. Disabled by default.

destination-type

Select the destination type to use to form the matching tuple.

  • address
  • addrgrp
  • external-resource

destination-address6

The destination-address6 option is available if the destination-type is address.

Specify the Address object to use as the destination.

destination-addrgrp6

The destination-address-group6 option is available if the destination-type is addrgrp.

Specify the Address Group object to use as the destination.

destination-external-resource-address6

The destination-external-resource-address6 option is available if the destination-type is external-resource.

Specify the external IP address list imported through the IP Address connector to use as the destination. For details, see config system external-resource.

in-interface

Interface that receives traffic.

out-interface

Interface that forwards traffic.

service

Service object to use to form the matching tuple.

source-type

Select the source type to use to form the matching tuple.

  • address
  • address-group
  • external-resource

source-address6

The source-address6 option is available if the source-type is address.

Specify the Address object to use as the source.

source-addrgrp6

The source-address-group6 option is available if the source-type is addrgrp.

Specify the Address Group object to use as the source.

source-external-resource-address6

The source-external-resource-address6 option is available if the source-type is external-resource.

Specify the external IP address list imported through the IP Address connector to use as the source. For details, see config system external-resource.

status

Enable or disable firewall policy6 rule.

config firewall policy6

Use this command to configure firewall policy rules for IPv6 addresses.

A firewall policy is a filter that allows or denies traffic to be forwarded to the system based on a matching tuple: source address, destination address, and service. By default, firewall policy rules are stateful: if client-to-server traffic is allowed, the session is maintained in a state table, and the response traffic is allowed.

The FortiADC system evaluates firewall policies before other rules. It matches traffic against the firewall policy table, beginning with the first rule. If a rule matches, the specified action is taken. If the session is denied by a firewall policy rule, it is dropped. If the session is accepted, system processing continues.

By default, if firewall rules are not configured, the system does not perform firewall processing; all traffic is processed as if the system were a router, and traffic is forwarded according to routing and other system rules.

Note: You do not need to create firewall rules for routine management traffic associated with the management port or HA ports. The interface “allow access” option enables permitted protocols. The system automatically permits from-self traffic, such as health check traffic, and expected responses.

Before you begin:
  • You must have a good understanding and knowledge of firewalls.
  • You must have created the address configuration objects and service configuration objects that define the matching tuple in your firewall policy rules.
  • You must have read-write permission for firewall settings.

Syntax

config firewall policy6

set default-action {deny|accept}

set stateful {enable|disable}

config rule

edit <name>

set action {deny | accept}

set deny-log {disable | enable}

set destination-type {address|addrgrp|external-resource}

set destination-address6 <datasource>

set destination-addrgrp6 <datasource>

set destination-external-resource-address6 <datasource>

set in-interface <datasource>

set out-interface <datasource>

set service <datasource>

set source-type {address|addrgrp|external-resource}

set source-address6 <datasource>

set source-addrgrp6 <datasource>

set source-external-resource-address6 <datasource>

set status {enable | disable}

next

end

end

default-action

Action when no rule matches or no rules are configured:

  • deny—Drop the traffic.
  • accept—Allow the traffic to pass the firewall.

stateful

Enable/disable stateful firewall. When enabled, server response traffic is permitted automatically when the client-to-server rule allows the connection to be established. When disabled, you must create separate rules for client-to-server and server-to-client traffic. Enabled by default.

config rule

action

  • deny—Drop the traffic.
  • accept—Allow the traffic to pass the firewall.

deny-log

Enable/disable deny log. When enabled, firewall denied traffic is logged, wherein relevant information for traffic is logged when the traffic triggers the policy action to drop it. The deny-log option is only available when action is set to deny. Disabled by default.

destination-type

Select the destination type to use to form the matching tuple.

  • address
  • addrgrp
  • external-resource

destination-address6

The destination-address6 option is available if the destination-type is address.

Specify the Address object to use as the destination.

destination-addrgrp6

The destination-address-group6 option is available if the destination-type is addrgrp.

Specify the Address Group object to use as the destination.

destination-external-resource-address6

The destination-external-resource-address6 option is available if the destination-type is external-resource.

Specify the external IP address list imported through the IP Address connector to use as the destination. For details, see config system external-resource.

in-interface

Interface that receives traffic.

out-interface

Interface that forwards traffic.

service

Service object to use to form the matching tuple.

source-type

Select the source type to use to form the matching tuple.

  • address
  • address-group
  • external-resource

source-address6

The source-address6 option is available if the source-type is address.

Specify the Address object to use as the source.

source-addrgrp6

The source-address-group6 option is available if the source-type is addrgrp.

Specify the Address Group object to use as the source.

source-external-resource-address6

The source-external-resource-address6 option is available if the source-type is external-resource.

Specify the external IP address list imported through the IP Address connector to use as the source. For details, see config system external-resource.

status

Enable or disable firewall policy6 rule.