For each UTM feature, you should configure feature parameters
in the following order:
First configure UTM custom objects (if any)
for the feature in question. Custom objects are global parameters
for UTM features. This means that configured custom objects can be
applied to all UTM policies where applicable, rather than only to
individual policies.
The CLI command for setting custom objects is :
user@host# set security utm custom-objects
Configure main feature parameters, called feature profiles.
The CLI command for setting antispam feature profiles is:
user@host# set security utm feature-profile anti-spam
Configure a UTM policy for each protocol
and attach this policy to a profile.
CLI commands for configuring a UTM policy for SMTP and attaching
that policy to a profile are:
Note:
At this time, the antispam feature is only supported for the
SMTP protocol.
user@host# set security utm utm-policy <name>
user@host# set security utm utm-policy utmp1 anti-spam smtp-profile smtp1
Attach the UTM policy to a firewall security
policy.
The CLI command for attaching a UTM policy to a security policy
is:
user@host# set security policies
user@host# set security policies from-zone trust to-zone
untrust policy p1 then permit application-services
utm-policy utmp1
J-Web Quick Configuration
To configure server-based antispam using the J-Web Quick Configuration
editor:
Select the Configuration tab at the top of the page.
Select UTM in the left pane,
under Quick Configuration, to expand the UTM category. Once UTM is
expanded, Anti-Virus, Web Filtering, Anti-Spam, Content Filtering,
and Custom Objects become available.
Select Anti-Spam in the left
pane.
In the right pane, under Anti-Spam global options,
select an Address Whitelist and/or an Address Blacklist from the list if you are using
local lists for spam filtering. (These lists are configured as Custom
Objects and are made available for selection here. Because you are
configuring server-based spam, you do not select a local Address Whitelist
or a Blacklist. For more information on configuring these lists, refer
to Using Local List Spam Filtering.)
Under Anti-Spam profiles, click the Add button to configure a profile for the Symantec SBL server.
This takes you to the profile configuration page.
In the Profile Name box, enter a unique name for
the antispam profile you are creating.
If you are using the default server, select the
check box beside Symantec default SBL server. If you are not using
the default server, leave the check box unselected. The SBL server
is predefined on the device. It ships knowing the name and address
of the Symantec SBL server. If you do not select this check box, you
are disabling sever-based spam filtering. You would disable it if
you are using only local lists or if you do not have a license for
server-based spam filtering.
In the antispam action list, select one of the
following: Tag subject of e-mail, Block e-mail, Tag header of e-mail. Here
you are selecting the action to be taken by the device when spam is
detected.
In the Custom tag string box, enter a custom string
for identifying a message as spam. By default, the devices uses ***SPAM***.
Click OK to save your profile.
See Figure 178 (This takes you back to
main antispam configuration page. Under Anti-Spam profiles, the profile
you created is now listed.)
Under Anti-Spam profiles, select the check box for the profile you
are using.
Click Apply.
Next, you configure a UTM policy for SMTP to which you attach
the antispam profile you have configured.
Select Security Policies > UTM
Policies.
Click Add.
In the Policy Name box, enter a unique name for
the UTM policy you are creating.
Scroll down to the antispam section of the page
and locate the SMTP Profile list. Select the antispam profile you
are attaching to this UTM policy. (For these instructions, you are
only attaching an antispam profile to this UTM policy. But note that
you can attach several profiles for multiple features to one UTM policy.)
In the Session Per Client Over Limit list, select
one of the following: Log and Permit, Block. This is the action the
device takes when the session per client limit for this UTM policy
is exceeded.
In the Session Per Client Limit box, enter a session
per client limit from 0 to 20000 for this UTM policy.
Click OK. This takes you back
to the UTM Policies page.
Select the check box in the UTM Policy table for
the policy you are using.
Click Apply.
Next, you attach the UTM policy to a security policy that you
create.
Select Security Policies > FW
/ VPN Policies.
Next to Default Policy Action, select one of the
following: Deny-All, Permit-All.
Next to From Zone, select a zone from the list.
Next to To Zone, select a zone from the list.
Under Zone Direction, click Add
a Policy.
In the Policy Name box, enter a unique name for
the security policy you are creating.
Under Match Criterias, choose a Source Address. Do this by selecting an entry in the Source
Address Book box and clicking the <— button to move it to
the Matched box.
Under Match Criterias, choose a Destination Address. Do this by selecting an entry in the Destination
Address Book box and clicking the <— button to move it to
the Matched box.
Under Match Criterias, choose an Application. Do this by selecting junos-smtp (for antispam) in the Application Sets box and clicking the <—
button to move it to the Matched box.
Next to Policy Action, select one of the following: Permit, Deny, Reject.
Note:
When you select Permit for Policy Action, several additional
fields become available, including UTM Policy.
Next to UTM Policy, select the appropriate policy
from the list. This attaches your UTM policy to the security policy.
Note:
There are several fields on this page that are not described
in this section. See the section on Security Policies for detailed
information on configuring security policies and all the available
fields.
Click OK. This takes you back
to the main Security Policies configuration page.
Under Policies, select the check box beside the
security policy you created.
Click Apply.
J-Web View and Edit Configuration
To configure server-based antispam using the J-Web View and
Edit editor:
Select Configuration>View and Edit >Edit Configuration.
Next to Security, click Configure or Edit.
Next to UTM, click Configure.
Next to Feature Profile, click Configure.
Next to Anti spam, click Configure.
Next to Symantec sbl, select the Yes check box. A Configure link appears. (Because you are configuring
server-based spam, you do not select a local Address whitelist or
an Address blacklist.)
Next to Symantec sbl, Yes checkbox, click the Configure link.
Next to Profile, click Add new
entry.
In the Name box, enter a unique name for the antispam
profile you are creating.
In the Custom tag string box, enter a custom string
for identifying a message as spam. By default, the devices uses ***SPAM***.
Select the Yes check box beside
the Symantec default SBL default server if you are using the default
server. Otherwise, select the No check box.
In the Spam action list, select one of the following: tag subject (of e-mail), block (e-mail), tag header (of e-mail). Here you
are selecting the action to be taken by the device when spam is detected.
Figure 179: Antispam Server-Based Profile
Configuration, View and Edit Configuration
Next, you configure a UTM policy for SMTP to which you attach
the antispam profile you have configured.
Select Configuration>View and Edit >Edit Configuration.
Next to Security, click Configure or Edit.
Next to UTM, click Configure.
Next to UTM policy, click Add new
entry.
In the Name box, enter a unique name for the UTM
policy you are creating.
Next to Anti spam, click Configure.
In the Smtp profile box, enter the name of the
antispam profile you created earlier.
Click OK.
Click OK again to return to
main UTM configuration page. Your UTM antispam policy is now listed
in the UTM policy table.
Next, you attach the UTM policy to a security policy that you
create.
Select Configuration>View and Edit >Edit Configuration.
Next to Security, click Configure or Edit.
Next to Security, click Configure.
Next to Policy, select the Yes check box click Edit.
Next to Policy, click Add new entry.
Note:
Refer to the section on security policy configuration for further
details on configuring a policy. Note that when you configure the
Then field as part of the policy, select Permit as the action, and
then configure Application services, you are able to enter the Utm
policy name as part of this security policy.
Next to Utm policy (in the Application services
security policy screen), enter the name of the appropriate policy.
This attaches your UTM policy to the security policy.
Click OK.
CLI Configuration
To configure server-based antispam using the
CLI, first create a profile name.
user@host# set security utm feature-profile anti-spam symantec-sbl
profile sblprofile1
Configure the default SBL server lookup
as enabled or disabled. If you are using server-based spam filtering,
you should enter sbl-default-server to enable the Symantec
default SBL server. (The SBL server is predefined on the device. It
ships knowing the name and address of the Symantec SBL server.) Entering no-sbl-default-server disables server-based spam filtering.
You would disable it if you are using only local lists or if you do
not have a license for server-based spam filtering.
user@host# set security utm feature-profile anti-spam symantec-sbl
profile sblprofile1 sbl-default-server
Configure the action to be taken by the
device when spam is detected (block, tag-header, tag-subject).