Forum Discussion
genseek_32178
Nimbostratus
Nov 30, 2012iRule Code
Hi,
Just trying to under stand how irules work. Got some couple of basic doubts, 1st one is as below,
In the above sample irule,
a)- "serv...
nitass
Employee
Nov 30, 2012is the irule correct? number of open and close bracket is not equal. also, ip::addr seems not in correct syntax.
IP::addr
https://devcentral.f5.com/wiki/irules.ip__addr.ashx
[root@ve10:Active] config cat genseek.txt
rule genseek {
when SERVER_CONNECTED {
if { [IP::addr [IP::addr [clientside {IP::remote_addr}] equals 10.1.1.80] } {
discard
}
}
}
[root@ve10:Active] config b merge genseek.txt
Reading configuration from genseek.txt.
Loading the configuration ...
BIGpipe rule creation error:
01070151:3: Rule [genseek] error:
line 2: [parse error: PARSE missingBracket 31 {missing close-bracket}] [{ [IP::addr [IP::addr [clientside {IP::remote_addr}] equals 10.1.1.80] }]
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