Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

safelist

Use this command to configure safelist operations.

Syntax

execute safelist add

execute safelist backup

execute safelist purge

execute safelist remove

execute safelist restore

Variable

Description

Default

add

Add a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist add [domain | user] <domain-name | user-name> <list-content>

execute safelist add [system] <list-content>

 

backup

Backup a domain or user level safelist, or system level safelist to a TFTP server, as shown below (respectively):

execute safelist backup [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute safelist backup [system] <tftp-server-ip> <file-name>

 

purge

Purge a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist purge [domain | user] <domain-name-list | user-name-list>

execute safelist purge [system]

 

remove

Remove a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist remove [domain | user] <domain-name | user-name> <list-content>

execute safelist remove [system] <list-content>

 

restore

Restore a domain or user level safelist, or system level safelist from a TFTP server, as shown below (respectively):

execute safelist restore [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute safelist restore [system] <tftp-server-ip> <file-name>

 

Related topics

blocklist

safelist

Use this command to configure safelist operations.

Syntax

execute safelist add

execute safelist backup

execute safelist purge

execute safelist remove

execute safelist restore

Variable

Description

Default

add

Add a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist add [domain | user] <domain-name | user-name> <list-content>

execute safelist add [system] <list-content>

 

backup

Backup a domain or user level safelist, or system level safelist to a TFTP server, as shown below (respectively):

execute safelist backup [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute safelist backup [system] <tftp-server-ip> <file-name>

 

purge

Purge a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist purge [domain | user] <domain-name-list | user-name-list>

execute safelist purge [system]

 

remove

Remove a domain or user level safelist, or system level safelist, as shown below (respectively):

execute safelist remove [domain | user] <domain-name | user-name> <list-content>

execute safelist remove [system] <list-content>

 

restore

Restore a domain or user level safelist, or system level safelist from a TFTP server, as shown below (respectively):

execute safelist restore [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute safelist restore [system] <tftp-server-ip> <file-name>

 

Related topics

blocklist