Forum Discussion
nitass
Jan 14, 2013Employee
what about this?
[root@ve10:Active] config b virtual bar80 list
virtual bar80 {
snat automap
pool foo
destination 172.28.19.252:80
ip protocol 6
rules myrule
}
[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 CLIENT_ACCEPTED {
log local0. "-"
}
when CLIENT_DATA {
log local0. "-"
log local0. "[TCP::payload]"
log local0. "[LB::server addr]:[LB::server port]"
TCP::release
TCP::collect
}
when LB_SELECTED {
log local0. "-"
TCP::collect
}
when SERVER_CONNECTED {
log local0. "-"
TCP::collect
}
when SERVER_DATA {
log local0. "-"
log local0. "[TCP::payload]"
TCP::release
TCP::collect
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : -
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : -
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : -
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : 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.252 Accept: */*
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : 200.200.200.101:80
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : -
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : -
Jan 14 22:41:17 local/tmm info tmm[4884]: Rule myrule : HTTP/1.1 200 OK Date: Mon, 14 Jan 2013 15:06:17 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Sat, 27 Oct 2012 03:22:35 GMT ETag: "4183f3-59-f28f94c0" Accept-Ranges: bytes Content-Length: 89 Content-Type: text/html; charset=UTF-8 This is 101 host.