Forum Discussion
MW1
Cirrus
Apr 29, 2013Can someone advise if this format of external class file (old v9.3.1) for addresses is in the correct formatt
Hi,
I have an irule that I have mashed together that checks the clients IP against a list in a file held locally on the F5 which works when I use an internal data group but is failing when I u...
nitass
Employee
Apr 29, 2013this is mine.
[root@bigip:Active] config b version|grep -iA 1 version
BIG-IP Version 9.3.1 37.1
Final Edition
[root@bigip:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "\[IP::client_addr\] [IP::client_addr]"
log local0. "\[matchclass [IP::client_addr] equals $::IPlist\] [matchclass [IP::client_addr] equals $::IPlist]"
}
}
[root@bigip:Active] config b class IPlist list
class IPlist extern {
type ip
filename "/var/class/IPlist"
}
[root@bigip:Active] config cat /var/class/IPlist
host 94.11.71.11,
host 100.100.100.1,
host 128.33.4.3,
host 128.44.5.3,
host 172.30.0.30,
host 192.16.83.5,
[root@bigip:Active] config tail -f /var/log/ltm
Apr 29 18:05:02 tmm tmm[1229]: Rule myrule : [IP::client_addr] 100.100.100.1
Apr 29 18:05:02 tmm tmm[1229]: Rule myrule : [matchclass 100.100.100.1 equals {172.30.0.30/32} {192.16.83.5/32} {128.44.5.3/32} {94.11.71.11/32} {128.33.4.3/32} {100.100.100.1/32}] 6
Apr 29 18:05:04 tmm tmm[1229]: Rule myrule : [IP::client_addr] 100.100.100.3
Apr 29 18:05:04 tmm tmm[1229]: Rule myrule : [matchclass 100.100.100.3 equals {172.30.0.30/32} {192.16.83.5/32} {128.44.5.3/32} {94.11.71.11/32} {128.33.4.3/32} {100.100.100.1/32}] 0
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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