Skip to main content
Version: v7

KB: 2007

how to set policy rules based on the client requirement?

Problem Statement I

The client wants to drop the requests coming from particular client IP.

Solution

The client can utilize the policy rule in SLB by selecting "Drop Request" as rule action based on different rule conditions.

This can be achieved by the following way

  1. Below picture shows that the listener page is opening properly.

  1. Now Go to Apps > SLB > Listeners > Rules > Policy rule > Add rule > Save changes. Select "Drop Request" as rule action.

  1. Client needs to create at least one rule condition for implementing Policy Rule as shown in below picture.

  1. The below picture is showing the request is getting dropped on the bases of policy rule.

Here we can observe that the Policy rule is working as intended. As per rule action we are choosing that the SLB is dropping the request.

Problem Statement II

The client wants to redirect the request coming from particular client IP.

Solution

The client can utilize the policy rule in SLB by selecting "REDIRECT REQUEST" as rule action based on different rule conditions.

Step to solve:-

  1. Go to Apps > SLB > Listeners > Rules > Policy rule > Add rule > Save changes. Then select "REDIRECT REQUEST" as rule action.

  1. In above image we are also taking one https site where we want to redirect the request .

  2. In below image we are seeing that our request is going to https site that mentioned in redirection url (take a look of rule details in above image).

Problem Statement III

The client wants to Bypass the request coming from particular client IP.

Solution

The client can utilize the policy rule in SLB by selecting "BYPASS REQUEST" as rule action based on different rule conditions.

Steps to solve:-

  1. Client have to blacklist the particular IP if the request are coming from that particular IP will be blocked. (Go to Apps > SLB > Listener > Profile > Setting icon > Geo Filtering > Blacklisted IP Prefixes > Click on save changes)

  1. Go to Apps > SLB > Listeners > Rules > Policy rule > Add rule > Save changes. Select "BYPASS REQUEST" as rule action**.

  1. Below image shows that request coming from that particular IP is Bypassing the request on our default http site.