Forum Discussion
nitass
Dec 04, 2012Employee
e.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 pool pool1_http list
pool pool1_http {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b pool pool2_http list
pool pool2_http {
members 200.200.200.111:80 {}
}
[root@ve10:Active] config b pool pool_http list
pool pool_http {
members 172.28.19.251:80 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] contains "/streaming/node1" } {
HTTP::uri [string map {"/streaming/node1" "/external"} [HTTP::uri]]
pool pool1_http
} elseif { [HTTP::uri] contains "/streaming/node2" } {
HTTP::uri [string map {"/streaming/node1" "/external"} [HTTP::uri]]
pool pool2_http
} else {
pool pool_http
}
}
}
1
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.20.11(40589) <-> 172.28.19.79(80)
1354630059.4768 (0.0022) C>S
---------------------------------------------------------------
GET /streaming/node1/xxxxxxxxx/yyyyyy HTTP/1.1
User-Agent: curl/7.19.7 (i686-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8x zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(40589) <-> 200.200.200.101(80)
1354630059.4797 (0.0010) C>S
---------------------------------------------------------------
GET /external/xxxxxxxxx/yyyyyy HTTP/1.1
User-Agent: curl/7.19.7 (i686-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8x zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------
2
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.20.11(40592) <-> 172.28.19.79(80)
1354630093.4867 (0.0029) C>S
---------------------------------------------------------------
GET /streaming/node2/aaaaaa/bbbbbbbb HTTP/1.1
User-Agent: curl/7.19.7 (i686-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8x zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(40592) <-> 200.200.200.111(80)
1354630093.4888 (0.0009) C>S
---------------------------------------------------------------
GET /streaming/node2/aaaaaa/bbbbbbbb HTTP/1.1
User-Agent: curl/7.19.7 (i686-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8x zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.79
Accept: */*
---------------------------------------------------------------