Forum Discussion
wassim_97659
Nimbostratus
Feb 18, 2011IP addresses List
Hi guys, 01070151:3: Rule [CNAME-REDIRECT-1] error: line 1: [undefined procedure: class] [class address_list {Thanks
I have GTM 1600 running BIGIP-10.2.0.1707.0.iso , and i want to add IRule for DNS redirect. I have many IP addresses and I want to build a list to be used in the example below instead of adding a line for each IP. Any idea??
when DNS_REQUEST {
if {[IP::addr [IP::client_addr]/24 equals 10.1.1.0] \
or [IP::addr [IP::client_addr]/24 equals 10.1.2.0] \
or [IP::addr [IP::client_addr]/24 equals 10.1.3.0] \
or [IP::addr [IP::client_addr]/24 equals 10.1.4.0]} {
cname "example1.com"} else {
cname "example2.com"}
}
I tried :
class address_list {
host 10.1.1.0
host 10.1.2.0
}
but i get errors:
3 Replies
Sort By
- hoolio
Cirrostratus
Unfortunately GTM doesn't currently support datagroups so multiple IP::addr checks are necessary. You could open a case with F5 Support to request this feature. If there's an existing RFE ID, they'll add your request to it. If not, they can create one for you. - wassim
Altostratus
Hi Aaron, - hoolio
Cirrostratus
Hi Wassim,
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