Forum Discussion
Brendan_Hogan_9
Nimbostratus
May 16, 2008Want to use data group list instead of ip address
How would I change the following rule to use a data group list instead of specific IP addresses?
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 164.16.1.1] } {
pool f89devl}
elseif { [IP::addr [IP::client_addr] equals 164.16.1.2] } {
pool f89devl}
else
{HTTP::redirect "https://outage.vccs.edu"}
}
- Here you go.
class address_list {
when HTTP_REQUEST { if { [matchclass [IP::client_addr] equals $::address_list] } { pool f89devl } else { HTTP::redirect "https://outage.vccs.edu" } }
when HTTP_REQUEST { if { [IP::addr [IP::client_addr]/24 equals 164.16.1.0] } { pool f89dev1 } else { HTTP::redirect "https://outage.vccs.edu" } }
- Brendan_Hogan_9
Nimbostratus
Very good. Exactly what I was looking for. Thanks! - Nicolas_Menant
Employee
Hi,
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