Assuming you're also terminating SSL on your 443 VIP, something like this should work: just wondering shouldn't it be SSL::respond rather than TCP::respond (because it is https).
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.252:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENTSSL_HANDSHAKE {
SSL::respond "HTTP/1.1 302 Found\r\nLocation: http://www.google.com\r\n\r\n"
}
}
[root@ve10:Active] config curl -Ik https://172.28.19.252
HTTP/1.1 302 Found
Location: http://www.google.com