Forum Discussion
iRule Error related with Data Group
We need to block some User-Agent, so I created a Data Group that called UnwantedAgents, and an iRules called ir_BlockAgents
when HTTP_REQUEST { if { [class match [string tolower [HTTP::header "User-Agent"]] contains UnwantedAgents ] } { log local0. "Blocked src=[IP::client_addr] src_port=[TCP::client_port],agent= HTTP::header value User-Agent]" reject } }
After I applied this iRule ir_BlockAgents. I saw this error in the log (/var/log/ltm)
Feb 21 12:26:51 jcbigip1 err mcpd[5407]: 01020066:3: The requested rule (/Common/ir_BlockAgents) already exists in partition Common.
How can I fix it?
Thanks, Xin
- Xin_99652NimbostratusMy BIP-IP version 11.2
- nitassEmployee
Feb 21 12:26:51 jcbigip1 err mcpd[5407]: 01020066:3: The requested rule (/Common/ir_BlockAgents) already exists in partition Common.
i understand it is expected when updating an existing irule.
- nitass_89166Noctilucent
Feb 21 12:26:51 jcbigip1 err mcpd[5407]: 01020066:3: The requested rule (/Common/ir_BlockAgents) already exists in partition Common.
i understand it is expected when updating an existing irule.
- Xin_99652Nimbostratusso, you mean nothing wrong? Thanks,
- Xin_99652Nimbostratusso, you mean nothing wrong? Thanks,
- nitass_89166Noctilucenti think so.
Recent Discussions
Related Content
* 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