Forum Discussion
Subrun
Cirrostratus
Dec 22, 2021URI Based Filtering using ASM Module ?
Hello, I am doing replace based LTM Policy as below , below 3 line is path for 3 different company and want to control each company can access to their respective URL not the other ones. Like if...
JRahm
Admin
Dec 22, 2021you can use the source IPs to differentiate what paths are accessible and can incorporate that directly into your policy, either by address list in the policies or via datagroups. Here's the address list version:
ltm policy access_by_src_ip {
controls { forwarding }
last-modified 2021-12-22:15:50:07
requires { http tcp }
rules {
app1 {
actions {
0 {
forward
select
pool pool1
}
}
conditions {
0 {
tcp
client-accepted
address
matches
values { 1.1.1.1 }
}
}
}
app2 {
actions {
0 {
forward
select
pool pool2
}
}
conditions {
0 {
tcp
client-accepted
address
matches
values { 2.2.2.2 }
}
}
ordinal 1
}
app3 {
actions {
0 {
forward
select
pool pool3
}
}
conditions {
0 {
tcp
client-accepted
address
matches
values { 3.3.3.3 }
}
}
ordinal 2
}
}
status published
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
