Questions tagged [irule]
21 questions
1
vote
0 answers
F5 irule in a script from console
We've got some user data stored in LDAP that has been "encrypted" by an iRule with the AES::Encrypt function. We now find we need to use the encrypted value elsewhere.
We need to decrypt and re-encrypt it because : The Encrypt uses AES-CWC - which…

Max Allan
- 859
- 1
- 8
- 25
1
vote
1 answer
Big-IP F5 irule to change uri
Is there a way to change a URI without a redirect. I want to change the following URL
https://example.com//q//w//et
to
https://example.com/q/w/et

user2926144
- 35
- 2
- 6
1
vote
0 answers
Source based routing (Policy based routing) on BIG-IP F5
I've multiple DHCP pools for different VPN profiles (Different subnets) on BIG-IP APM, and I want to route internet traffic for the users through VPN (Force all traffic through VPN), I have multiple self IPs through which I have connectivity to…

butt.usmanali
- 11
- 3
1
vote
1 answer
F5 iRule to Secure Cookie with HTTPOnly and Secure but not contains cookie name="cnlfsid"
We need to Secure Cookie with HTTPOnly and Secure but not contains a cookie name ="cnlfsid"
Here is my code:
when HTTP_RESPONSE {
foreach x [HTTP::cookie names] {
set ckname $x
set ckvalue [HTTP::cookie value $x]
set…

Oliviattt
- 11
- 2
0
votes
0 answers
is send command in irules asynchronous
I was trying to find out it in send command i can use async to improve the performance of the code
when HTTP_REQ {
set reqData [call req $myid]
set send_bytes [send -status mystats $myconn $myresp]
close $myconn
}
tried placing…

sand87
- 123
- 1
- 11
0
votes
1 answer
F5 Maintenance Page iRule produces ERR_CONNECTION_RESET in browser
We have an F5 LTM that uses a simple iRule that puts up a maintenance page. It has worked fine for years - until we updated from to BigIP 15.1.5.1 (from 15.1.5.0). Now when we implement the iRule, the browser usually produces an ERR_CONNECTION_RESET…

mrbranden
- 880
- 2
- 10
- 19
0
votes
1 answer
Big-IP F5 irule get uri and store in variable
There is my irule config as below :
when HTTP_REQUEST {
switch [HTTP::query] {
"*NetTest0*" {
HTTP::respond 200 content "NetTest0()"
}
"*NetTest1*" {
HTTP::respond 200 content "NetTest1()"
}
"*NetTest2*" {
…

Eric Wu
- 35
- 7
0
votes
1 answer
Trim parenthesis via tcl
I have the following URL and would like to remove the parentheses by using the iRule (TCL):
http://ing1.example.com:32100/test1/test1.json/Streams(Type_4000000)
when HTTP_REQUEST {
if { ([HTTP::host] eq "ing1.example.com") or ([HTTP::host] eq…

user515576
- 65
- 6
0
votes
1 answer
Redirecting a Website request with multiple embedded URL strings
I need to redirect the following example to a new website URL.
https://test.test.com/MDR/LauncherInterface.aspx?host=https://test.test.com/MDR&numid=11111&numid=1111&username=1111&userpass=1111
I need to redirect both URL statements to…
0
votes
1 answer
How to capture second match from the given text using regex
I tried to capture the second match from given text i.e,
hash=e1467eb30743fb0a180ed141a26c58f7&token=a62ef9cf-2b4e-4a99-9335-267b6224b991:IO:OPCA:117804471:OPI:false:en:opsdr:117804471&providerId=paytm
In the above text, I want to capture the…

Ram Kowsu
- 711
- 2
- 10
- 30
0
votes
0 answers
Artifactory Docker port configuration F5
We are trying to configure docker port method configuration in F5 and we added below Irule and we are not able to login into docker repo
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/v2/"} {
set ARTI_PROTO http
set ARTI_PORT 3000
set…

banu
- 31
- 1
- 1
- 6
0
votes
1 answer
F5 Big-IP caching through iRule
Have a iRule that forces uri's into the cache.
when HTTP_REQUEST {
if { [HTTP::header "Content-Type"] contains "jpg" } {
CACHE::enable
}
}
Seems this item will be cached forever or until the cache is forcibly emptied. Is there a way we can…

flalar
- 1,181
- 3
- 12
- 23
0
votes
1 answer
How to redirect using F5 iRules with a variable in the URL
Hi I'm new to F5 iRule.
I'm trying to redirect
https://website1.com/userid=1234
to
https://website2.com/userid=1234
such that whatever value the userid may have will be carried over after redirection.
I'm thinking userid value should be set to a…

Jeremiah
- 1
- 1
- 1
- 1
0
votes
1 answer
Creating IRule in F5 based on ip_address:portnumber/servletname
I am very new for F5-LTM configuration.Any help related to below requirement will be vary much appreciated.
I have my application on Weblogic-11g server running on managed server at port number : 8001.
Now as my user count has increased i have…

D.Dilip
- 1
- 2
0
votes
0 answers
Upload a file as iFile using iControl
Is there a way to update the contents of an existing iFile? I didn't see any way to update the contents. So, I started looking at deleting and creating a file by uploading a local file to the BigIP using the iControl. I understand there are two…

Ashish Gupta
- 14,869
- 20
- 75
- 134