Forum Discussion
nitass
Jan 30, 2012Employee
please feel free to revise.
[root@ve1023: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@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[scan [string tolower [HTTP::uri]] {/details/%d/%s} u1 u2] == 2} {
HTTP::uri "/propertydetails.aspx?HID=${u1}&L=${u2}"
}
}
}
[root@ve1023:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.253(34582) <-> 172.28.19.79(80)
1327896840.4802 (0.0029) C>S
---------------------------------------------------------------
GET /details/123/en HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8r zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(34582) <-> 200.200.200.101(80)
1327896840.4813 (0.0009) C>S
---------------------------------------------------------------
GET /propertydetails.aspx?HID=123&L=en HTTP/1.1
User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8r zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------