Forum Discussion
JRahm
Dec 22, 2021Admin
you 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
}