Forum Discussion
ccraddock
Sep 09, 2019Cirrus
iRule assistance
Dear Community, We ran into an issue last week where one of our app support members was logged into a production web portal (mistakenly thinking she was in the pre-production portal) and she made so...
youssef1
Cumulonimbus
HI,
You can achieve your need easly:
first create a DG with your internal IP:
Internal_user
Then use this IP. if you come from internal network this irule inser a header with the following header:
name: env
value: prod
when CLIENT_ACCEPTED {
set header 0
if { [class match [IP::client_addr] equals Internal_user] } {
set header 1
}
}
when HTTP_RESPONSE {
if {$header}
HTTP::header insert env prod
}
}
keep me in touch
regards
ccraddock
Sep 13, 2019Cirrus
Youssef,
Thanks so much for the reply! I will try this out and let you know either today or Monday if it worked!
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