Forum Discussion
skarpovi_111573
Nimbostratus
Mar 25, 2008Redirect based on the source IP
Folks, can anyone help.
i need something like this:
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } """ and source IP = 10.x.x.x"""" then redirect to
{
...
skarpovi_111573
Nimbostratus
Mar 25, 2008tried to play with brackets - fixed some errors, but still have some:
70151:3: Rule [eRoom-rule] error:
line 2: [parse error: PARSE syntax 53 {syntax error in expression " ([TCP::local_port] eq "80") AND ([IP::client_addr] equals ...": extra tokens at end of expression}] [{ ([TCP::local_port] eq "80") AND ([IP::client_addr] equals "10.0.0.0/16") }]
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