Skip to content

Instantly share code, notes, and snippets.

@ekaleido
Created July 25, 2018 19:34
Show Gist options
  • Save ekaleido/de1f7b650352250c7fbdf7ba97e7f520 to your computer and use it in GitHub Desktop.
Save ekaleido/de1f7b650352250c7fbdf7ba97e7f520 to your computer and use it in GitHub Desktop.
when HTTP_REQUEST {
if {[class match [HTTP::uri] contains dst_clients_dg]} {
pool [string range [virtual] 8 end][class match -value [HTTP::uri] contains dst_clients_dg]
} else {
HTTP::respond 404
}
}
ltm virtual thriv-prod-https {
destination X.X.X.X:https
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
dst_clients
}
source 0.0.0.0/0
translate-address enabled
translate-port enabled
vs-index 1670
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment