Forum Discussion
nitass
Oct 03, 2012Employee
e.g.
[root@ve10:Active] config b virtual Web_1 list
virtual Web_1 {
snat automap
pool Web_1
destination 172.28.19.79:80
ip protocol 6
rules {
Web_1
My_rule
}
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b pool Web_1 list
pool Web_1 {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b rule Web_1 list
rule Web_1 {
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "http://10.1.1.30/joomla/"
}
}
}
[root@ve10:Active] config b rule My_rule list
rule My_rule {
when HTTP_REQUEST {
if {not [HTTP::header exists "X-Forwarded-For"]} {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
}
[root@ve10:Active] config ssldump -Aed -nni 0.0 port 80
New TCP connection 1: 172.28.19.251(49526) <-> 172.28.19.79(80)
1349253665.2904 (0.0013) C>S
---------------------------------------------------------------
HEAD /something 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.79
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.10(49526) <-> 200.200.200.101(80)
1349253665.2931 (0.0009) C>S
---------------------------------------------------------------
HEAD /something 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.79
Accept: */*
X-Forwarded-For: 172.28.19.251
---------------------------------------------------------------