Forum Discussion
nitass
Aug 10, 2012Employee
this is my testing.
[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 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] eq "mycompany.com" }{
HTTP::collect [HTTP::header "Content-Length"]
if { [HTTP::header Expect] eq "100-continue" }{
HTTP::respond 100 noserver
}
}
}
when HTTP_REQUEST_DATA {
log local0. "[HTTP::payload]"
}
}
on client
[root@centos251 ~] curl -d "this_is_post_data" http://172.28.19.79 -H "host: mycompany.com"
on bigip
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(43004) <-> 172.28.19.79(80)
1344602578.5274 (0.0012) C>S
---------------------------------------------------------------
POST / 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: mycompany.com
Content-Length: 17
Content-Type: application/x-www-form-urlencoded
this_is_post_data---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(43004) <-> 200.200.200.101(80)
1344602578.5293 (0.0017) C>S
---------------------------------------------------------------
POST / 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: mycompany.com
Content-Length: 17
Content-Type: application/x-www-form-urlencoded
this_is_post_data---------------------------------------------------------------
[root@ve10:Active] config tail /var/log/ltm
Aug 10 20:42:58 local/tmm info tmm[4860]: Rule myrule : this_is_post_data