Danny_Trinh_197
Mar 01, 2009Nimbostratus
Check ports TCP443, TCP5061, UDP3478, TCP-UDP-50000-59999
I'm still in elementary level of iRule. I have script below to check ports. This script is for MS Unified communication (UC). Can you go through to see if I miss some thing?
The scrip will do:
-if ports TCP-UDP 50000-59999, go to pool 1
-if ports TCP-443, TCP5601, go to pool2
-if port UDP3478, go to pool 3
-any thing else drop.
when CLIENT_ACCEPTED {
if { [[TCP::client_port] < 60000 && [TCP::client_port] > 49999] or [[UDP::client_port] < 60000 && [UDP::client_port] > 49999]} then {
Goto pool1
pool pool1
} elseif { [[TCP::client_port] == 443] or [[TCP::client_port] == 5061] } then {
Goto pool2
pool pool2
} elseif { [[UDP::client_port] == 3478] } then {
Goto pool3
pool pool3
} else {
drop
}
}