Forum Discussion
sandiksk_35282
Altostratus
Mar 08, 2018allow traffic to VS based on the source IP fwded in the http get request
I need to come up with a design to allow traffic to VS based on the source IP sent in the http get request.
Based on the source IP i need to make a decision whether to allow it or drop it.
Please hel...
sandiksk_35282
Altostratus
Mar 09, 2018I tried with the below irule , but this is not working as throwing me expections and command not valid
when HTTP_REQUEST{ if { [class match [[HTTP::header Client-IP]] eq "datagroup_QA" ] }{ Traffic is allowed. Client IP match found in datagroup_QA return } else { Traffic is dropped. Client IP match not found in datagroup_QA drop } }
If the IP from HTTP header matched the IP listed in datagroup , connection need to be allowed if not it need to be rejected.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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