peer¶
Description¶
Causes the specified iRule commands to be evaluated under the peer’s
(opposite) context. This is a general form of the
clientside and serverside
commands.
Syntax¶
peer { <iRule commands> }
peer { <iRule commands> }¶
- Causes the specified iRule commands to be evaluated under the peer’s (opposite) context.
Examples¶
when SERVER_CONNECTED {
peer { TCP::collect }
}
when CLIENT_DATA {
if { [TCP::payload] starts_with "EHLO" } {
TCP::respond "500 5.3.3 Unrecognized command\r\n"
set len [TCP::payload length]
TCP::payload replace 0 $len ""
TCP::release
} else {
TCP::release
TCP::collect
}
}