Forum Discussion
nitass
Apr 30, 2013Employee
this 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