Forum Discussion
14 Replies
Sort By
- Steph_69890NimbostratusAre you using "Route Domains? If so, it's probably your error. Example from one of my irule; set userip [getfield [IP::client_addr] "%" 1] switch -glob -- $userip { "10.10.10.*" - "10.10.11.*" - "10.10.13.*" { Do what you want! } default { the default }}
- Steph_69890NimbostratusAlso, if you need to known the routing domain from an irule; [ROUTE::domain]
- AurelCirrusHi Steph, i do use one RD.
- AurelCirrusWell, i use the IP::remote_addr which do gather the ip address with the "%1". It seems to be a mistake in this line :
- AurelCirruswhen HTTP_REQUEST {
- AurelCirrusset client_ip [IP::remote_addr]}
- AurelCirrusif {[$client_ip equals "1.1.1.1"]} (this line!)
- AurelCirrus{switch -glob [HTTP::uri] (etc...)
- Steph_69890NimbostratusTry to dump values [IP::remote_addr] and [IP::client_addr] into your local0.info log. Then try some connection and check your /var/log/ltm.
- AurelCirrusYes, Steph. I did that. The remote_addr value is my correct ip address with %1 at the end. (1.1.1.1%1). But TCL keep telling me that the command is invalid, while executing "client_ip equal "1.1.1.1""