Forum Discussion
Jean_42123
Nimbostratus
Sep 27, 2010i-rule not being triggered on a virtual server
Hello Guys,
I have the below i-rule that I have defined and I have applied it to the virtual server.
Below is the whole configuration l ( including the profile, the i-rule and the virtual server ) but for some reasons the event is not being triggered althought http traffic is reaching the virtual server on port 8080.
Can anyone advise if I missed anything. thanks in advance.
Your support is really appreciated.
profile http MMS_TrafficFilter_Profile {
defaults from http
}
rule MMS_TrafficFilter {
when HTTP_REQUEST {
if {[HTTP::host] contains "mmsc.omanmobile.om" } {
pool NWG_WAP2
log local0."forwarding_traffic_to_wapgw_pool"
} elseif { [HTTP::host] contains "192.168.220.8"} {
pool NWG_WAP2
log local0."forwarding_traffic_to_wapgw_pool"
} else {
reject
log local0."discarding_traffic"
}
}
}
virtual MMS_WAP2 {
destination x.x.x.x:webcache
lasthop pool lasthop_pool
ip protocol tcp
profile MMS_TrafficFilter_Profile tcp
persist NWG_WAP2_Persistence
pool NWG_WAP2
rule MMS_TrafficFilter
vlans external_mobile enable
}
6 Replies
Sort By
- Jean_42123
Nimbostratus
Does it have to do with the TCP profile to be added along with the http profile?? - Chris_Miller
Altostratus
Do you have an HTTP profile applied? I see the TCP and Persistence profiles but not an HTTP one... - Jean_42123
Nimbostratus
Hi Chris,profile http MMS_TrafficFilter_Profile { defaults from http }
- Chris_Miller
Altostratus
And you aren't seeing any log entries at all? The connection count for this VS is incrementing, right? - hoolio
Cirrostratus
MMS_TrafficFilter_Profile is the HTTP profile. If there wasn't an HTTP profile added to the VS, you'd get an error when trying to add the iRule to the VS. - Jean_42123
Nimbostratus
Hi Aaron,
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