Forum Discussion
Luke_55733
Nimbostratus
Oct 22, 2012Node selection via URL parameters
Hello everyone! I'm trying to do the following...
I would like to monitor individual parts of one of our applications by hitting each member within the F5 pool on a regular basis, and always wit...
nitass
Employee
Oct 23, 2012e.g.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set node_ip [URI::query "?&[HTTP::query]" "node"]
if { [scan $node_ip {%d.%d.%d.%d} a b c d] == 4 } {
HTTP::uri [string trimright [string map [list "node=$node_ip" ""] [HTTP::uri]] "?"]
node $a.$b.$c.$d
}
}
}
test1
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.20.11(58985) <-> 172.28.19.79(80)
1350967002.5006 (0.0007) C>S
---------------------------------------------------------------
HEAD /login.jsp?node=200.200.200.101 HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-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: 200.200.200.10(58985) <-> 200.200.200.101(80)
1350967002.5018 (0.0010) C>S
---------------------------------------------------------------
HEAD /login.jsp HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-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: */*
---------------------------------------------------------------
test2
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.20.11(58986) <-> 172.28.19.79(80)
1350967020.3477 (0.0010) C>S
---------------------------------------------------------------
HEAD /login.jsp?node=200.200.200.111 HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-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: 200.200.200.10(58986) <-> 200.200.200.111(80)
1350967020.3489 (0.0010) C>S
---------------------------------------------------------------
HEAD /login.jsp HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-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: */*
---------------------------------------------------------------
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