Forum Discussion
xia
Nimbostratus
Aug 14, 2019how 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
Aug 14, 2019try 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
}
}
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
