WHAT IS AN I-RULE ?
An iRule is TCL based scripting language code which is used when you want to extend the capabilities of the BIG-IP that are unavailable by default.
iRules can route, re-route, redirect, inspect, modify, delay, discard or reject, log or … do just about anything else with network traffic passing through a BIG-IP.
3 STEPS TO WRITE I-RULES ?
1) Events
An event will dig into much more detail, it is a way of executing iRules code at a given point in time
within the flow of a networking session. Events are also important because they indicate at which point in the proxy chain an iRule executes (incoming/outgoing). Given that BIG-IP is a bi-directional proxy, it is important for iRules to execute on not only the right side of the proxy, but at the right moment in the network flow.
2) Conditional statement
If a particular condition exists which may have combinations of relational/logical operators some specific action will get executed else there may be some other action.
3) Action
It performs actions such as sending traffic on a specific pool, redirecting URI, deleting cookies, etc.
EXAMPLE OF I-RULES
Lets understand its components very closely by following examples. Comments are enclosed by hash “#”.
#Event
when HTTP_REQUEST {
#Conditional Statement
if {[HTTP::uri] ends_with “jpg”} {
#Action1
pool Pool1
}
#Action2
else { pool Pool2 }
}
You may download the pdf from below link – F5 LTM – irules basics
You may follow our YouTube channel for more detailed technical discussions, which is as follows – YouTube
We also offer a diverse library of pre-recorded videos for any online training or buy self-paced courses.
“Get enrolled now“.
Email:info@netminion.net, netminionsolutions@gmail.com
Helpline: +91-9599857762(IN), + 19024124779 (CA)
LinkedIn: https://www.linkedin.com/in/netminion-solutions/
Website: https://netminion.net
Videos Website: https://videos.netminion.in
Telegram Channel: https://t.me/NetMinionSolitionsOffical
Buy a Rack Rental : https://labs.netminion.net/page/login/index.php
Welcome to NetMinion Solutions, a leading education training institute/company to nurture minds and fostering a passion for learning. No matter if you are a beginner or a professional – our dedicated faculty and state-of-the-art facilities create an enriching environment where you can explore, innovate, and grow exponentially – academically and personally both.
We are committed to practical learning and provide cutting-edge lab solutions, to enhance your learning journey – including CCNA, CCNP & CCIE, data center, Wireless, Cloud, VMware, F5 -LTM, GTM, ASM, APM, Palo Alto, SD-WAN, Checkpoint, ACI and list goes on.
Keep Learning! Keep Growing! Keep investing!
I like the helpful information you provide to your articles.
I will bookmark your blog and take a look at again here regularly.
I am rather sure I’ll be told plenty of new stuff proper here!
Best of luck for the next!