Forum Discussion
Hi Daniel,
Firstly thank you very much for responding to this question!
And that is correct, the VS has a dns record in place for example lets say abc.aeltc.com so if they type that it it hits the VS.
However I would like the policy to push the traffic to a specific node depending on the second part of the string.
So abc.aeltc.com/football -> 10.10.10.1
abc.aeltc.com/tennis -> 10.10.10.2
abc.aeltc.com/hockey -> 10.10.10.3
The beginning host header will always be the same its just the /*** that will change and depending on that /*** the F5 will push it to a specific node.
below is the snippet, I just want to also state that these are running on two different partitions. One is common and the other is a created partition DMZ
Working Policy:
(cfg-sync Changes Pending)(Active)(/Common)(tmos)# list ltm policy Wifi-Proxy
ltm policy Wifi-Proxy {
controls { forwarding }
last-modified 2020-11-17:14:28:30
requires { http }
rules {
wifi-Redirect-test {
actions {
0 {
forward
select
node 167.98.43.131
snat automap
}
}
conditions {
0 {
http-uri
values { /cloud-authorizeMAC.php }
}
}
}
wifi-Redirect-testPT {
actions {
0 {
forward
select
node 10.11.1.103
snat disable
}
}
conditions {
0 {
http-uri
values { /api/v1/venues/aeltc/locations/last_known.json }
}
}
ordinal 1
}
}
status published
strategy best-match
}
Not working config policy:
(cfg-sync Changes Pending)(Active)(/DMZ)(tmos)# list ltm policy Azure-URI-Pool-Selection-V2
ltm policy Azure-URI-Pool-Selection-V2 {
controls { forwarding }
draft-copy Drafts/Azure-URI-Pool-Selection-V2
last-modified 2021-01-27:12:31:25
partition DMZ
requires { http }
rules {
aegis {
actions {
0 {
forward
select
node 10.110.64.123
}
}
conditions {
0 {
http-uri
values { /aegis/tt/api/ }
}
}
}
catering {
actions {
0 {
forward
select
node 10.110.64.123
}
}
conditions {
0 {
http-uri
values { /catering/tt/api/ }
}
}
ordinal 1
}
stringers {
actions {
0 {
forward
select
node 10.110.64.130
}
}
conditions {
0 {
http-uri
values { /stringers/tt/api/ }
}
}
ordinal 2
}
}
status published
strategy /Common/best-match
}
I also want to point out that I am using profile rewrites to modify the backend servers uri.
Once again I really appreciate the help!