UDP::respond

Description

Sends the specified data directly to the peer. This command can be used to complete a protocol handshake inside an iRule.

Syntax

UDP::respond <data>

UDP::respond <data>

  • Sends the specified data directly to the peer.

Examples

when CLIENT_DATA {
  set payload "Error: Client not allowed."
  if { [IP::remote_addr] eq 10.10.10.1 } {
    UDP::drop
    UDP::respond $payload
  }
}

when CLIENT_ACCEPTED {
  set packet [binary format S {0x0000}]
  UDP::respond $packet
}