Forum Discussion
Balasubramaniy2
Nimbostratus
Aug 22, 2018Need to control particular source while accessing particular URL when URL forwarding enabled for multiple applications on the Same Virtual server
Hi,
The requirement is to do URL forwarding for multiple applications based on the URL. but, wants to block particular source accessing particular URL on the same virtual server not all URL. ...
Andy_McGrath
Cumulonimbus
Aug 22, 2018Simply iRule assigned to the Virtual Server would do it:
when HTTP_REQUEST {
if {[HTTP::host] == "app2.test.com" && [IP::addr [IP::client_addr] equals 10.10.10.100]} {
drop
}
}
Could also look to do the same with an LTM Policy:
ltm policy ExampleDropPolicy {
controls { forwarding }
requires { http tcp }
rules {
dropTraffic {
actions {
0 {
forward
reset
}
}
conditions {
0 {
tcp
address
matches
values { 10.10.10.10 }
}
1 {
http-host
host
values { app2.test.com }
}
}
}
}
strategy first-match
}
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
