Forum Discussion
RiverFish
Dec 09, 2019Altostratus
Forward request to IP contained in request header.
Customer is trying to avoid opening a bunch of firewall requests. They want to add a header (ex. DEST: 10.x.x.x) in the request that contains the real destination IP. When the VIP receives the reques...
RiverFish
Dec 09, 2019Altostratus
We pieced this together. Hopefully it will work...
when HTTP_REQUEST {
if { [HTTP::header exists "DEST-IP"] } {
set DEST-IP [HTTP::header "DEST-IP"]
log local0. "HTTP request DEST-IP: $DEST-IP"
node $DEST-IP 443
} else {
log local0. "No DEST-IP header found"
drop
return
}
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