Configuring the AppRules policy to perform HTTP Redirect
10/14/2021
60 People found this article helpful
454,460 Views
Description
The App Rules (Application Firewall) feature in the SonicOS can perform HTTP redirect to another domain name. For example: When a user accesses www.google.com you can perform an HTTP redirect to www.yahoo.com.
Resolution
Resolution for SonicOS 6.5
This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.
Step 1: Creating a Match Object
In the SonicWall Management Interface, navigate to Manage |Objects | Match Objects page and Click on "Add" button to create a new Match Object.
- Object Name: enter a name
- Match Object Type: select HTTP Host
- Match Type: Partial Match or Exact Match
- Content: Enter the desired domain name (E.g. google.com)
- Click Add to populate the entry in the List: section and when done click OK button.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170830085759.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Step 2: Creating an Action Object
In the SonicWall Management Interface, navigate to Manage |Objects | Action Objects page and Click on "Add" button to create a new Action Object.
- Action Name: enter a name
- Action: HTTP Redirect
- Content: Enter the desired domain name (Http://www.yahoo.com)
Important: Always include the Http:// (protocol) in the URL
- When done click OK button.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170830596849.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Step 3: Create an AppRules Policy
In the SonicWall Management Interface, navigate to Manage | Rules | Application Control page and click on "Add" button to create a new AppControl Policy
- Policy Name: enter a name
- Policy Type: HTTP Client
- Service Destination: HTTP
- Match Object: Select the appropriate Match Object
- Action Object: Select the appropriate Action Object (Redirect)
- Connection Side: Client Side
- Direction: Basic (Incoming or Both)
- when done click OK button to add the policy.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731991166.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Please Note: Make sure you enable the Global option Enable App Rules and also the Enable option on the policy.
How to Test:
From a computer behind SonicWall try accessing the Website www.google.com and the web browser will be automatically redirected to www.yahoo.com web page.
In the SonicWall Log an entry will be created when HTTP Redirect is performed:
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731619473.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Resolution for SonicOS 6.2 and Below
The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.
Step 1: Creating a Match Object
In the SonicWall Management Interface, navigate to Firewall > Match Objects page and Click on "Add" button to create a new Match Object.
- Object Name: enter a name
- Match Object Type: select HTTP Host
- Match Type: Partial Match or Exact Match
- Content: Enter the desired domain name (E.g. google.com)
- Click Add to populate the entry in the List: section and when done click OK button.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731461456.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Step 2: Creating an Action Object
In the SonicWall Management Interface, navigate to Firewall > Action Objects page and Click on "Add" button to create a new Action Object.
- Action Name: enter a name
- Action: HTTP Redirect
- Content: Enter the desired domain name (Http://www.yahoo.com)
Important: Always include the Http:// (protocol) in the URL
- When done click OK button.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731157192.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Step 3: Create an AppRules Policy
In the SonicWall Management Interface, navigate to Firewall | App Rules page and click on "Add" button to create a new AppRules Policy
- Policy Name: enter a name
- Policy Type: HTTP Client
- Service Destination: HTTP
- Match Object: Select the appropriate Match Object
- Action Object: Select the appropriate Action Object (Redirect)
- Connection Side: Client Side
- Direction: Basic (Incoming or Both)
- when done click OK button to add the policy.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731991166.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Please Note: Make sure you enable the Global option Enable App Rules and also the Enable option on the policy.
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731689369.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
How to Test:
From a computer behind SonicWall try accessing the Website www.google.com and the web browser will be automatically redirected to www.yahoo.com web page.
In the SonicWall Log an entry will be created when HTTP Redirect is performed:
![Image](https://sonicwall.rightanswers.com/portal/app/portlets/results/onsitehypermedia/090170731619473.png?linkToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzb25pY3dhbGwiLCJleHAiOjE3NTY2MDk4ODIsImlhdCI6MTcyNTA3Mzg4Mn0.VmpyAmA9-HFBKyqVKtFQEem6g68XjD0OhzGliPYLQN8)
Related Articles
Categories