IRule Customization

We have a requirement to create irlue with the following logic

We have One VS and Two POOL (Pool x and Pool Y)and differentiate the traffic based on requested hostname by the following irule

==================

when HTTP_REQUEST { if {([HTTP::host] contains “auction.com”)} {pool Auction-Pool}

if {([HTTP::host] contains “test.com”) {pool test-Pool}

}

====================

For certain hostname (auction.com) we need to do the following

From internet: All users has to access : https://auction.com

From internet: All users should not have to access to: https://auction.com/test/admin

From intranet : Only following subnet below should have access to : https://auction.com/test/admin

Network1 Range: 10.10.10.X/24

Network2 Range: 20.20.20.X/24