kunal_borkar_52
Oct 03, 2012Nimbostratus
Not able to see HTTP requset from and HTTP header in floationg IP to server communication
Hi Team,
I have created LAB set up on VMware for LTM. I want to configure Client Ip insertion in HTTP header but when I take Tcpdump on LTM not able to see any HTTP request from Floating IP to server, all requsets show as TCP so not able to see any HTTP header. ehnce not able to confirm whether Client IP is getting insert on HTTP header. Please find below config and find attached capture file,
profile http web_1 {
defaults from http
oneconnect transformations enable
header insert none
header erase none
fallback none
response selective chunk
lws width 80
lws separator none
redirect rewrite none
max header size 32768
max requests 0
pipelining enable
insert xforwarded for enable
fallback status none
response headers allowed none
encrypt cookies none
}
node 10.1.1.25 {}
pool Web_1 {
monitor all tcp
members {
10.1.1.25:hosts2-ns {}
10.1.1.25:xfer {}
}
}
snatpool web_1 {
members 10.1.1.15
}
rule Client_ip {
when HTTP_REQUEST {
HTTP::header insert X-Forwarded-For [IP::remote_addr]
}
}
rule My_rule {
when HTTP_REQUEST {
if {not [HTTP::header exists "X-Forwarded-For"]} {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
}
rule Web_1 {
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://10.1.1.30/joomla/"
}
}
}
traffic class ANY {
classification tag "Any"
src mask none
dst mask none
}
virtual Web_1 {
snat automap
pool Web_1
destination 10.1.1.30:http
ip protocol tcp
rules {
Web_1
My_rule
}
profiles {
http {}
tcp {}
}
}
Please revert with your observation.
Regards..Kunal