Forum Discussion
tacobell_112236
Nimbostratus
Dec 08, 2010URL access based on IP\LDAP
Im new to F5 ASM so I apologize for my ignorance in advance. Is it possible to create an IRule to allow access to a webpage based on IP adresses and\ or LDAP group?
I see this as an exam...
tacobell_14395
Nimbostratus
Dec 16, 2010Sorry for the delay...basically i need to redirect certain externally accessible sites to internal network only. And if you are not part of the IP adress redirect you to home page. This needs to be done at F5 level... So question is how do I add multiple sites to check???
basic URL site check:
when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/adstructure") and ([matchclass [IP::remote_addr] equals $$IPAddressDataGroup]) } { HTTP::redirect "https://www.xxx.com/adstructure/xxx/login.jsp/index/index/" } else { HTTP::redirect "https://www.xxx.com/" } }
my attempt to do multiple site lookups: ( yeah its wrong - i know)
when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/adstructure" or starts_with "/ CiteCode or /jsp/funsite ) and ([matchclass [IP::remote_addr] equals $$IPAddressDataGroup]) } { HTTP::redirect "https://www.xxx.com/adstructure/xxx/login.jsp/index/index/" } else { HTTP::redirect "https://www.xxx.com/" } }
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
