Forum Discussion
AngryCat_52750
Nimbostratus
Apr 13, 2012logging external redirect error
We want to create a VS to have our applications point to a internal address abc.example.com and have that redirect to an external vendor.
I get the redirect part but if the external vendor i...
nitass
Employee
Apr 14, 2012just wondering if replacing host header and logging in LB_FAILED event is usable (instead of redirection).
e.g.
74.125.235.31 is www.google.com.sg
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 74.125.235.31:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::header replace Host "www.google.com.sg"
}
when LB_FAILED {
log local0. "LB_FAILED is triggered"
}
}
[root@ve1023:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(53125) <-> 172.28.19.79(80)
1334382564.8509 (0.0011) C>S
---------------------------------------------------------------
GET / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 172.28.19.80(53125) <-> 74.125.235.31(80)
1334382564.8579 (0.0069) C>S
---------------------------------------------------------------
GET / HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: www.google.com.sg
Accept: */*
---------------------------------------------------------------
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