Forum Discussion
Richard__Harlan
Nov 02, 2006Historic F5 Account
external calss
We are in the process from moving from a stander data class to a external class but for the life of me every time I try to load the file I get 01070626:3: The IP class external file (/config/spamlist2...
hoolio
Cirrostratus
Nov 02, 2006Here is a bit more info:
'b class help' info:
External classes
You can store class list information outside the bigip.conf file.
b class extern {
}
The parameter can be one of "filename", "type", or "mode".
The parameter depends on which property is being assigned.
Valid values for "type" are "string", "value", or "ip". Valid values
for "mode" are "read" and "rw". The ip values can be in "network
mask " or "host " format.
The following is an example of an external class configuration.
b class ipvals extern {
filename /home/ip2.class
type ip
mode rw
}
Here is an example...
From the bigip.conf:
class spammers_list extern {
type ip
filename "/var/class/external_class"
}
rule external_class_rule {
when CLIENT_ACCEPTED {
if { ([matchclass [IP::client_addr] equals $::spammers_list])} {
log "[IP::client_addr] matched"
}
}
}cat /var/class/external_class
host 172.29.0.10,
network 10.0.0.0 mask 255.0.0.0,
Hope this helps,
Aaron
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