Gavin_104961
May 07, 2009Nimbostratus
cannot use pool command in a UDP vs
Hi guys,
Here is the iRules with UDP VS problem, when the iRules works, i found TCL error msg in log file, and without pool command it works well, who can help me find the reason cause it, thx.
bye the way, the very similar iRules in TCP VS works ok.
May 7 15:07:49 tmm tmm[2239]: 01220001:3: TCL error: DNS_Rules - Address in use (line 8) invoked from within "pool dns"
May 7 15:07:49 tmm tmm[2239]: 01220002:6: Rule DNS_Rules : dns
iRules for UDP VS:
=============================================
when CLIENT_DATA {
binary scan [UDP::payload] H* gdata
set fdata [substr $gdata 23 1]
if { $fdata eq "1" } {
pool dnssec
log "dnssec"
} elseif { $fdata eq "0" } {
pool dns
log "dns"
} else {
drop
}
}
iRules for TCP VS:
=============================================
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
binary scan [TCP::payload] H* gdata
log "$gdata"
set fdata [substr $gdata 27 1]
if { $fdata eq "1" } {
pool dnssec
log "dnssec"
} elseif { $fdata eq "0" } {
pool dns
log "dns"
} else {
drop
}
TCP::release
}