Dave_Wu_20200
Dec 09, 2011Nimbostratus
Rate Shaping using url and ip address
Hi Guys,
I am attempting to write a irule to shape bandwidth by using source ip address xxx.xxx.xxx.xxx and host of xyz.com.
Could I use something like that
when HTTP_REQUEST {
if { [HTTP::host] equals "XYZ.com" && [IP::client_addr] == xxx.xxx.xxx.xxx }
{
rateclass rateshape1
}
}
Is my code correct?
Thanks in advance