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) has an invalid format. is there a doc that shows the external class format so we can find out what we are doing wrong. Thanks Blow is a snip of the external class
89.52.100.126 / 255.255.255.255
89.52.84.12 / 255.255.255.255
89.82.255.36 / 255.255.255.255
89.86.165.5 / 255.255.255.255
89.98.89.20 / 255.255.255.255
- hoolio
Cirrostratus
You should be able to just separate the fields with spaces and then reference the class from a rule. - Richard__HarlanHistoric F5 AccountNo the rule class combo causes the tmm system to core. The rule we are useing is below
- Colin_Walker_12Historic F5 AccountIf those are all single IP addresses, then you should be able to remove the second half of each line completely, and just build a class list of IP addresses individually. That shouldn't cause any problems with the iRule posted above.
- hoolio
Cirrostratus
Here is a bit more info: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" } } }
- Richard__HarlanHistoric F5 AccountFound out what the problem was in the data class we had a space between the path and the filename. The GUI let it go but the system blew up when the iRule ran
- unRuleY_95363Historic F5 AccountAh, yes, that would be the empty class bug. CR66389 fixed in 9.4.
- G__Wesley_RoberHistoric F5 AccountHi,
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