Forum Discussion
nitass
Nov 15, 2011Employee
Can you clarify what doesn't work in v11? sorry to confuse. it is 10.2.3. client never got redirection. i do not think the irule logic is wrong. maybe there is some change in 10.2.3. what do you think?
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "\[SSL::cipher version\]: [SSL::cipher version]"
log local0. "\[catch {SSL::cipher version} result\]: [catch {SSL::cipher version} result]"
log local0. "\$result: $result"
if {$result equals "None"}{
log local0. "\$result is None"
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
log local0. "\$result is not None"
}
}
}
curl -I http://172.28.65.152:443/
...nothing...
[root@ve1023:Active] config ssldump -Aed -nni 0.0 port 443
New TCP connection 1: 172.28.19.253(38400) <-> 172.28.65.152(443)
1321331913.0099 (0.0030) C>S
---------------------------------------------------------------
HEAD / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8r zlib/1.2.3 libidn/0.6.5
Host: 172.28.65.152:443
Accept: */*
---------------------------------------------------------------
[root@ve1023:Active] config cat /var/log/ltm
Nov 14 20:38:29 local/tmm notice tmm[4766]: 013e0001:5: Tcpdump starting bcast on :::0 from 127.1.1.1:40426
Nov 14 20:38:33 local/tmm info tmm[4766]: Rule myrule : [SSL::cipher version]: None
Nov 14 20:38:33 local/tmm info tmm[4766]: Rule myrule : [catch {SSL::cipher version} result]: 0
Nov 14 20:38:33 local/tmm info tmm[4766]: Rule myrule : $result: None
Nov 14 20:38:33 local/tmm info tmm[4766]: Rule myrule : $result is None
Nov 14 20:41:59 local/tmm notice tmm[4766]: 013e0002:5: Tcpdump stopping on 127.1.1.2:1441 from 127.1.1.1:40426