Forum Discussion
TJ_Vreugdenhil
Cirrus
Jul 10, 2017Cannot add F5 net route
Hello!
I am scratching my head because I can't see why this static route is not being added to the config. The "x" is replaced with a usable 1-254 IP.
Existing config:
net self INT-350_NET1_PR...
- Stanislas_Piro2Sep 17, 2017
Cumulonimbus
Hi,
you can use following irule to create a session variable with IP address in header:
when ACCESS_SESSION_STARTED { ACCESS::session data set session.custom.CDN_client_IP [HTTP::header "X-Forwarded-For"] }
then, create a branch rule filtering on this variable
if you want to disable APM when client IP is internal, you can use following code
when HTTP_REQUEST { if {[IP::addr [HTTP::header "X-Forwarded-For"] equals "1.1.1.0/24"]} { APM::disable } }
- Stanislas_Piro2Sep 18, 2017
Cumulonimbus
ACCESS::disable is only working in LTM+APM mode!
Yes, you can configure the branch with advanced expression.
You can configure the expression in first tab then change variable name in second tab!
- Annsar_AkhtarSep 18, 2017
Nimbostratus
Thanks for your help, I have managed to get it working using the branch filter.
Thanks again