Forum Discussion
nitass
Oct 23, 2012Employee
e.g.
[root@ve10: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@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/proxyservice" } {
if { not ([IP::addr [IP::client_addr] equals 10.16.0.0/16]) } {
log local0. "[IP::client_addr]:[TCP::client_port]: Dropping request to [HTTP::uri]"
HTTP::respond 200 content "Forbidden
Website Error: Forbidden
Your information has been logged.
"
}
}
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Oct 23 12:53:53 local/tmm info tmm[7926]: Rule myrule : 172.28.20.11:58988: Dropping request to /proxyservice/something