How to Configure App Rules using the App Rule Wizard
03/26/2020 86 11481
This article shows how to configure App Rules using the Wizard Tool on SonicOS
In order to configure an App Rule Policy using the Wizard, follow the steps below. This example follows how to create an SMTP Policy but also features instructions regarding how to setup many other types of Policies.
1. Click Wizards on the top right corner of the SonicOS Management GUI. The Configuration Wizard Welcome window displays.
2. Select the Application Firewall Wizard radio button and then click Next.
3. In the App Rule Wizard Introduction screen, click Next.
4. In the App Rule Policy Type screen, click a selection for the policy type and click Next.
You can choose among SMTP, incoming POP3, Web Access, or FTP file transfer. The policy that you create will only apply to the type of traffic that you select. The next screen will vary depending on your choice here.
5. In the Select Rules for Application Firewall Policy screen, select a policy rule from the choices supplied, and then click Next.
- Depending on your choice in the previous step, this screen is one of four possible screens:
Select SMTP Rules for Application Firewall Policy
Select POP3 Rules for Application Firewall Policy
Select Web Access Rules for Application Firewall Policy
Select FTP Rules for Application Firewall Policy
6. The screen displayed here will vary depending on your choice of policy rule in the previous step. For the following policy rules, the wizard displays the Set Application Firewall Object Content screen on which you can select the traffic direction to scan, and the content or keywords to match.
All SMTP policy rule types except Specify maximum email size
All POP3 policy rule types
All Web Access policy rule types
All FTP policy types except Make all FTP access read-only and Disallow usage of SITE command
In the Set App Rule Object Keywords and Policy Direction screen, perform the following steps:
- In the Direction drop-down list, select the traffic direction to scan from the drop-down list. Select one of Incoming, Outgoing, or Both.
- Do one of the following:
NOTE: If you selected a choice with the words except the ones specified in the previous step, content that you enter here will be the only content that does not cause
the action to occur.
In the Content field, type or paste a text or hexadecimal representation of the content to match, and then click Add. Repeat until all content is added to the List text box.
To import keywords from a predefined text file that contains a list of content values, one per line, click Load From File.
7. Click Next.
If you selected a policy type in the previous step that did not result in the Set Application Firewall Object Content screen with the standard options, the wizard displays a screen that allows you to select the traffic direction, and certain other choices depending on the policy type.
In the Direction drop-down menu, select the traffic direction to scan.
NOTE: If you selected a choice with the words except the ones specified in the previous step, content that you enter here will be the only content that does not cause the action to occur.
SMTP: In the Set Maximum Email Size window, in the�Maximum Email Size field, enter the maximum number of bytes for an email message.
Web Access: In the special-case Set Application Firewall Object Content window, the Content text box has a drop-down menu with a limited number of choices, and no Load From File button is available. Select a browser from the drop-down menu.
FTP: In the special-case Set Application Firewall Object Content window, you can only select the traffic direction to scan.
8. In the Application Firewall Action Type window, select the action to take when matching content is found in the specified type of network traffic, and then click Next.
You will see one or more of the following choices depending on the policy type, which is shown in parentheses here for reference:
- Blocking Action - block and send custom email reply (SMTP)
- Blocking Action - block without sending email reply (SMTP)
- Blocking Action - disable attachment and add custom text (POP3)
- Blocking Action - custom block page (Web Access)
- Blocking Action - redirect to new location (Web Access)
- Blocking Action - reset connection (Web Access, FTP)
- Blocking Action - add block message (FTP)
- Add Email Banner (append text at the end of email) (SMTP)
- Log Only (SMTP, POP3, Web Access, FTP)
9. In the Application Firewall Action Settings window (if it is displayed), in the Content text box, type the text or URL that you want to use, and then click Next.
TheApplication Firewall Action Settings window is only displayed when you selected an action in the previous step that requires additional text. For a Web Access policy type, if you selected an action that redirects the user, you can type the new URL into the Content text box.
10. In the Select Name for Application Firewall Policy window, in the Policy Name field, type a descriptive name for the policy, and then click Next.
11. In the Confirm New Application Firewall Policy Settings window, review the displayed values for the new policy and do one of the following:
- To create a policy using the displayed configuration values, click Apply.
- To change one or more of the values, click Back.
12. In the Application Firewall Policy Wizard Complete screen, to exit the wizard, click Close.
13. To check this, login to the SonicWall Management GUI and then navigate to Firewall | App Rules. Your new Policy should be displayed.