Forum Discussion
eliton_199802
Nimbostratus
Jun 26, 2018iRule expression error
Can somebody please assist me with the following irule, I receive the following error: security:9: error: [missing an expression][ ]
when HTTP_REQUEST { lowercase the host string received switch -glob [string tolower [HTTP::uri]] { "/" { HTTP::redirect "/123/login" }
"/123/adminconsole.jsp"
if { [IP::addr [IP::client_addr] ne 10.0.0.0/8%5] } {
Drop the connection
reject
}
}
}
1 Reply
Seems you are missing some curly brackets in your switch statement, right above and below your if statement.
when HTTP_REQUEST { lowercase the host string received switch -glob [string tolower [HTTP::uri]] { "/" { HTTP::redirect "/123/login" } "/123/adminconsole.jsp" { if { [IP::addr [IP::client_addr] ne 10.0.0.0/8%5] } { Drop the connection reject } } } }
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