Forum Discussion
how to limit specified client visit virtual server use irules
Hi
Create virtual server “vs_hfs_80” , only allow "192.168.1.3" and "172.16.1.4" visit the virtual server . How to use irules realize the idea ?
Thanks !
- Sajid
Cirrostratus
try this irule withLocal Traffic ›› iRules : Data Group List (access_list)
when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] equals "/" ) and not ( [class match [IP::client_addr] equals access_list]) } {
HTTP::respond 200 content "You are not authorized to view this page."
}
}
or
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals access_list] } {
accept
}
}
Recent Discussions
Related Content
* 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