Forum Discussion
Need help with diameter Irule
I do not know DIAMETER but from your iRule code you have two possible problems:
Checking you are executing only on serverside so DIAMETER::respond will send the respond to the server not the client. You will need to check to clientside to respond to the original host.
You need to change the DIAMETER::respond parameters (not sure if you left them as the wiki documentation stats as an example) to provide valid DIAMETER data. One key element of this is the AVPs which needs to be in binary format so likely to need to use the TCL command binary format
when DIAMETER_EGRESS {
if {[serverside]} {
if { [DIAMETER::command] == "282" } {
DIAMETER::drop
log local0. "Disconnect-Peer-Request sent from [IP::local_addr] to [IP::remote_addr] with origin-host [DIAMETER::host origin]"
clientside {DIAMETER::respond "version" "r" "p" "e" "t" "comcode" "appid" "hopid" "endid" "AVPs"}
}
}
}
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com