Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

spamfilter iptrust

Use this command to add an entry to a list of trusted IP addresses.

If the FortiGate unit sits behind a company’s Mail Transfer Units, it may be unnecessary to check email IP addresses because they are internal and trusted. The only IP addresses that need to be checked are those from outside of the company. In some cases, external IP addresses may be added to the list if it is known that they are not sources of spam.

config spamfilter iptrust
    edit {id}
    # Configure AntiSpam IP trust.
        set id {integer}   ID. range[0-4294967295]
        set name {string}   Name of table. size[35]
        set comment {string}   Optional comments. size[255]
        config entries
            edit {id}
            # Spam filter trusted IP addresses.
                set status {enable | disable}   Enable/disable status.
                set id {integer}   Trusted IP entry ID. range[0-4294967295]
                set addr-type {ipv4 | ipv6}   Type of address.
                        ipv4  IPv4 Address type.
                        ipv6  IPv6 Address type.
                set ip4-subnet {ipv4 classnet}   IPv4 network address or network address/subnet mask bits.
                set ip6-subnet {ipv6 network}   IPv6 network address/subnet mask bits.
            next
    next
end

Additional information

The following section is for those options that require additional explanation.

addr-type

Select whether IPv4 or IPv6 addresses will be used.

edit {id}

A unique number to identify the IP trust list.

edit {id} (within context of config entries)

A unique number to identify the address.

 

 

 

spamfilter iptrust

Use this command to add an entry to a list of trusted IP addresses.

If the FortiGate unit sits behind a company’s Mail Transfer Units, it may be unnecessary to check email IP addresses because they are internal and trusted. The only IP addresses that need to be checked are those from outside of the company. In some cases, external IP addresses may be added to the list if it is known that they are not sources of spam.

config spamfilter iptrust
    edit {id}
    # Configure AntiSpam IP trust.
        set id {integer}   ID. range[0-4294967295]
        set name {string}   Name of table. size[35]
        set comment {string}   Optional comments. size[255]
        config entries
            edit {id}
            # Spam filter trusted IP addresses.
                set status {enable | disable}   Enable/disable status.
                set id {integer}   Trusted IP entry ID. range[0-4294967295]
                set addr-type {ipv4 | ipv6}   Type of address.
                        ipv4  IPv4 Address type.
                        ipv6  IPv6 Address type.
                set ip4-subnet {ipv4 classnet}   IPv4 network address or network address/subnet mask bits.
                set ip6-subnet {ipv6 network}   IPv6 network address/subnet mask bits.
            next
    next
end

Additional information

The following section is for those options that require additional explanation.

addr-type

Select whether IPv4 or IPv6 addresses will be used.

edit {id}

A unique number to identify the IP trust list.

edit {id} (within context of config entries)

A unique number to identify the address.