Implementing ProxyPass iRule in LTM
Scenario
You want to proxypass www.customersite.com to www.internalsite.com without replacing browser URL.
Solution
1) Download the proxypass iRule from the following links based on your BigIp version.
2) Add the iRule to the iRules section
3) Note down the pool names for customersite and internalsite websites
Assume the following names
Virtual Server: customersite-vs
Pools: customersite-pool and internalsite-pool exist in LTM
4) Create a Data Group Navigate to iRules -> Data group
Name: ProxyPasscustomersite-vs
Please note the name should follow the convention above where customersite-vs should match the virtual server name.
Type: String
BigIP 10
Name: /customerdir1
Value: /internaldir1 internalsite-pool
When you add an entry, it will be of the format
/customerdir1 := /internaldir1 internalsite-pool
BigIP 9
String: /customerdir1 Value: /internaldir1 internalsite-pool
You can add more directory mappings as desired.
You can also map the above Value to direct URL mapping in case you do not want to map to a pool.
/customerdir1 := my-new-internal-site.com/internaldir1
5) Associate the iRule to customersite-vs virtual server.
6) Test the URL www.customersite.com/customerdir1. The webpages get loaded from www.internalsite.com/internaldir1 without replacing the browser URL.
Proxypass in F5 is similar to Apache ProxyPass functionality.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home