Forum Discussion
Abhilash_37247
Nimbostratus
Aug 08, 2014Need suggestion on how to resolve the issue with a TCL error happening due to a HTTP::respond in another irule attached to the same Virtual Server
Hi,
We have a virtual server which has four irules configured on it.
The irule(irule) with the highest priority has a logic which would perform a HTTP::respond during the HTTP_REQUEST event wit...
nitass
Employee
Aug 10, 2014e.g.
config
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 100.100.100.41:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
rule1
rule2
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 5
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm rule rule1
ltm rule rule1 {
when HTTP_REQUEST {
if { [HTTP::uri] ne "/" } {
HTTP::redirect "http://www.google.com/"
}
}
}
root@(B6900-R69-S40)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm rule rule2
ltm rule rule2 {
when HTTP_REQUEST_SEND {
clientside {
HTTP::header remove testHeader
HTTP::header insert testHeader testvalue
}
}
}
trace
[root@B6900-R69-S40:Active:Standalone] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 100.100.100.3(34895) <-> 100.100.100.41(80)
1407680420.8779 (0.0211) C>S
---------------------------------------------------------------
HEAD / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 100.100.100.41
Accept: */*
testHeader: 1234
---------------------------------------------------------------
New TCP connection 2: 200.200.200.40(34895) <-> 200.200.200.101(80)
1407680421.0482 (0.1696) C>S
---------------------------------------------------------------
HEAD / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 100.100.100.41
Accept: */*
testHeader: testvalue
---------------------------------------------------------------
[root@B6900-R69-S40:Active:Standalone] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 100.100.100.3(34896) <-> 100.100.100.41(80)
1407680465.4821 (0.0006) C>S
---------------------------------------------------------------
HEAD /something HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 100.100.100.41
Accept: */*
testHeader: 1234
---------------------------------------------------------------
1407680465.4822 (0.0000) S>C
---------------------------------------------------------------
HTTP/1.0 302 Found
Location: http://www.google.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
---------------------------------------------------------------
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects