Forum Discussion
Kamalpreet_1068
Nimbostratus
Aug 24, 2012Node Selction based on Host Header
Hi ,
This is the first time i am writting here
I have the following scenario
Client sends a data to Virtual IP and having a host header "xsp-tibapp-qa-nlb.pac.com:8100"
A...
nitass
Employee
Aug 25, 2012e.g.
[root@ve10: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@ve10:Active] config b pool foo list
pool foo {
members {
200.200.200.101:80 {}
200.200.200.102:80 {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when LB_SELECTED {
HTTP::header replace Host [class match -value [LB::server addr] equals host_class]
}
}
[root@ve10:Active] config b class host_class list
class host_class {
{
"200.200.200.101" { "xsp-tibapp-qa1.pac.com:8100" }
"200.200.200.102" { "xsp-tibapp-qa2.pac.com:8100" }
}
}
200.200.200.101
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(44440) <-> 172.28.19.79(80)
1345878448.9086 (0.0010) C>S
---------------------------------------------------------------
HEAD /something 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
Accept: */*
Host: xsp-tibapp-qa-nlb.pac.com:8100
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(44440) <-> 200.200.200.101(80)
1345878448.9094 (0.0006) C>S
---------------------------------------------------------------
HEAD /something 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
Accept: */*
Host: xsp-tibapp-qa1.pac.com:8100
---------------------------------------------------------------
200.200.200.102
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(44441) <-> 172.28.19.79(80)
1345878480.0076 (0.0010) C>S
---------------------------------------------------------------
HEAD /something 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
Accept: */*
Host: xsp-tibapp-qa-nlb.pac.com:8100
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(44441) <-> 200.200.200.102(80)
1345878480.0086 (0.0009) C>S
---------------------------------------------------------------
HEAD /something 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
Accept: */*
Host: xsp-tibapp-qa2.pac.com:8100
---------------------------------------------------------------
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