Forum Discussion
Is there any tool available to write Irules
I would like to know how to learn writing complex Irules and is there any tool available with F5 which is used to write or edit or analyze Irules.
8 Replies
- Renato
Altostratus
Do you know the iRule Editor?
- dipta_03_149731
Nimbostratus
Yes I did heard about the Editor tool and hence looking forward to know how can I use it and how to get it installed..
- dipta_03_149731
Nimbostratus
Yes I did heard about the Editor tool and hence looking forward to know how can I use it and how to get it installed..
- Renato_166638
Nimbostratus
It's available in download area: https://devcentral.f5.com/s/articles/iRule-Editor-Download
- dipta_03_149731
Nimbostratus
Ok I got it downloaded and now I have the zip file. Do i need to install any .net framework for this. Also which file to pick friom the zip location..
- Renato_166638
Nimbostratus
I have no idea regarding the requirements. It simply worked for me.
- Amit_Grover_171
Nimbostratus
You need to unzip and install it. I guess it doesn't required any .net framework. Instead you need to connect your F5 Device with this I rule editor(click on File button to connect). Once you are good to connect with F5 Device you can create your own Irule.
- dipta_03_149731
Nimbostratus
Not sure I f I can get some help on this irule:
I have a Irule as below:
when HTTP_REQUEST { set uri [HTTP::uri] }
when HTTP_RESPONSE priority 400 {
if { not ($uri starts_with "/cip/SpotfireWeb/AjaxService.asmx/NeedsRefresh") } { set lat [clock seconds] if { not ($uri starts_with "/imcadminhome/services/userSessionServerPing") } { HTTP::cookie insert name "PD-L-LAT" value $lat path "/" domain ".ironmountain.com" HTTP::cookie secure "PD-L-LAT" enable log local0. "\[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]" } HTTP::cookie insert name "PD-L-LAT" value $lat path "/imcadminhome" domain ".ironmountain.com" HTTP::cookie secure "PD-L-LAT" enable log local0. "\[HTTP::cookie \"cookie\"\]: [HTTP::cookie "cookie"]" }}
This iRule is to delete all session cookies from browser so that browser doesnt remember anything about old session. We have a /pkmslogout.html page that currently has javascript running on it to delete session cookies but we trying to achieve that throught the irule so that once we logout from the application , all session cookies get expired. Also I am trying to log it in the log file but only seeing below logs:
cat /var/log/ltm | egrep PD-L-LAT-no-heartbeat-admin-iRule-ModifiedNov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:52 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:53 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:53 kan-qa-vf5-a info tmm[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]: Nov 25 09:39:53 kan-qa-vf5-a info tmm1[28093]: Rule /Common/PD-L-LAT-no-heartbeat-admin-iRule-Modified : [HTTP::cookie "cookie"]:
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com