Forum Discussion
winifred_corbet
Nimbostratus
May 20, 2010allow access to URL by specific IP range - all others rejected
For a specific URL I need to allow access to URL only to our internal IP range, all other IP addresses need to be rejected.
Something along these lines, but clearly this is not correct. Can...
Michael_Yates
Nimbostratus
May 20, 2010Sorry...I had to edit my first post and the format is never the same after an edit:
Go into your LTM under iRules -> Data Group List
Create -> Name it -> Type Address
Add the IP Addresses (or configure the Network Range) that you want to allow (Then replace the "PoolOfAllowedAddresses" with the name of the group you created).
when HTTP_REQUEST {
if { [HTTP::host] equals "www.website.com" and ([matchclass [IP::remote_addr] equals $::PoolOfAllowedAddresses ]) } {
pool poolofallowedservers
}
else {
reject
}
}
This is designed to Accept anything in the Data Group and Reject everything else.
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
