doesn't the irule above still work??
root@ve1110(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:80
ip-protocol tcp
mask 255.255.255.255
persist {
cookie {
default yes
}
}
pool foo
profiles {
http { }
tcp { }
}
snat automap
vlans-disabled
}
[root@ve1110:Active] config curl -I http://172.28.19.252
HTTP/1.1 200 OK
Date: Thu, 19 Apr 2012 03:04:31 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 11 Nov 2011 14:48:14 GMT
ETag: "4183e4-3e-9c564780"
Accept-Ranges: bytes
Content-Length: 62
Content-Type: text/html; charset=UTF-8
Set-Cookie: BIGipServerfoo=1707657416.20480.0000; path=/
root@ve1110(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_RESPONSE {
set cookie_names [HTTP::cookie names]
if { $cookie_names ne "" } {
foreach cookie $cookie_names {
set cookie_value [HTTP::cookie $cookie]
HTTP::cookie remove $cookie
HTTP::cookie insert name $cookie value $cookie_value path / version 1
HTTP::cookie httponly $cookie enable
HTTP::cookie secure $cookie enable
}
}
}
}
root@ve1110(Active)(/Common)(tmos) modify ltm virtual bar rules { myrule }
root@ve1110(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:80
ip-protocol tcp
mask 255.255.255.255
persist {
cookie {
default yes
}
}
pool foo
profiles {
http { }
tcp { }
}
rules {
myrule
}
snat automap
vlans-disabled
}
root@ve1110(Active)(/Common)(tmos) quit
[root@ve1110:Active] config curl -I http://172.28.19.252
HTTP/1.1 200 OK
Date: Thu, 19 Apr 2012 03:05:06 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 11 Nov 2011 14:48:14 GMT
ETag: "4183e4-3e-9c564780"
Accept-Ranges: bytes
Content-Length: 62
Content-Type: text/html; charset=UTF-8
Set-Cookie: BIGipServerfoo=1707657416.20480.0000;Secure;HttpOnly;Path=/;Version=1;