Forum Discussion
Democritus_Per1
Jul 12, 2012Nimbostratus
hash persistence on an irule manipulating ICAP headers
Hello all,
I have a Virtual server managing ICAP traffic and I need to set up hash persistence profile using an irule that it would examine the ICAP header .
I found some reference...
nitass
Jul 12, 2012Employee
i am not much familiar with icap. anyway, i think it looks okay to me.
this is my testing.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "\[HTTP::header X-SESSION_ID\]: [HTTP::header X-SESSION_ID]"
persist hash [HTTP::header X-SESSION_ID]
}
}
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(37119) <-> 172.28.19.79(80)
1342082781.0825 (0.0017) C>S
---------------------------------------------------------------
REQMOD icap://172.28.19.79/echo ICAP/1.0
Host: 172.28.19.79
User-Agent: C-ICAP-Client-Library/0.01
X-SESSION_ID: 10.20.44.245:1340175464
Encapsulated: req-hdr=0, null-body=91
---------------------------------------------------------------
1342082781.0825 (0.0000) C>S
---------------------------------------------------------------
GET /something HTTP/1.0
Date: Thu Jul 12 16:49:06 2012
User-Agent: C-ICAP-Client/x.xx
---------------------------------------------------------------
[root@ve10:Active] config b persist show all
PERSISTENT CONNECTIONS
| Mode hash Value 2790347781
| virtual 172.28.19.79:80 node 200.200.200.101:80 age 19sec
[root@ve10:Active] config tail /var/log/ltm
Jul 12 16:46:21 local/tmm info tmm[5111]: Rule myrule : [HTTP::header X-SESSION_ID]: 10.20.44.245:1340175464
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