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 Configuration
To configure server-based antispam using the J-Web Configuration
editor:
Select Configure>Security>UTM>Anti-Spam.
In the Anti-Spam profiles configuration window,
click Add to configure a profile for the Symantec
SBL server.
The profile configuration pop-up window appears. (To edit an
existing item, select it and click the Edit button.)
In the Profile name box, enter a unique name for
the antispam profile you are creating.
If you are using the default server, select Yes next to Symantec default SBL server. If you are
not using the default server, select No.
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
Yes, you are disabling 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.
In the Custom tag string box, enter a custom string
for identifying a message as spam.
By default, the devices uses ***SPAM***.
In the antispam action list, select one of the
following: Tag subject, Block
email, or Tag header.
Here you are selecting the action to be taken by the device
when spam is detected.
Click OK to save your profile.
If the profile is saved successfully, you receive
a confirmation and you must click OK again. If
the profile is not saved successfully, you can click Details in the pop-up window that appears to discover why.
Next, you configure a UTM policy for SMTP to which you attach
the antispam profile you have configured.
Select Configure>Security>Policy>UTM
Policies.
In the UTM policy configuration window, click Add to configure a UTM policy.
In the policy configuration window, select the Main tab.
In the Policy name box, enter a unique name for
the UTM policy you are creating.
In the Session per client limit box, enter a session
per client limit from 0 to 20000 for this UTM policy.
In the Session per client over limit list, select
one of the following: Log and permit or Block.
This is the action the device takes when the session per client
limit for this UTM policy is exceeded.
Select the Anti-Spam profiles tab in the pop-up window.
From the SMTP profile list, select the antispam
profile you are attaching to this UTM policy.
Click OK to save your policy.
If the policy is saved successfully, you receive
a confirmation and you must click OK again. If
the profile is not saved successfully, you can click Details in the pop-up window that appears to discover why.
Next, you attach the UTM policy to a security policy that you
create.
Select Configure>Security>Policy>FW
Policies.
In the Security Policy window, click Add to configure a security policy with UTM.
This takes you to the policy configuration pop-up window. (To
edit an existing item, select it and click the Edit button.)
In the Policy tab, enter a name in the Policy Name
box.
Next to From Zone, select a zone from the list.
Next to To Zone, select a zone from the list.
Choose a Source Address.
Choose a Destination Address.
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, or Reject.
Note:
When you select Permit for Policy Action, several additional
fields become available in the Applications Services tab, including
UTM Policy.
Select the Application Services tab in the pop-up window.
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 in this pop-up window 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 to save your policy.
If the policy is saved successfully, you receive
a confirmation and you must click OK again. If
the profile is not saved successfully, you can click Details in the pop-up window that appears to discover why.
Note:
You must activate your new policy to apply it.
J-Web Point and Click CLI Configuration
To configure server-based antispam using the J-Web Point and
Click CLI:
Select the Configure>CLI Tools>Point
and Click CLI.
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 and click Configure. (Because
you are configuring server-based spam, you do not select a local Address
whitelist or an Address blacklist.)
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), or tag header (of e-mail). Here you
are selecting the action to be taken by the device when spam is detected.
Figure 117: Antispam Server-Based Profile
Configuration, Point and Click CLI Configuration
Next, you configure a UTM policy for SMTP to which you attach
the antispam profile you have configured.
Select Configure>CLI Tools>Point
and Click CLI.
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 Configure>CLI Tools>Point
and Click CLI.
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 window), 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).