Forum Discussion
Gavin_104961
Nimbostratus
May 07, 2009cannot 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
}
- hoolio
Cirrostratus
Hi Gavin, - Gavin_104961
Nimbostratus
Thanks ur reply, Aaron. - Nat_Thirasuttakorn
Employee
you may enable "datagram lb" option in UDP profile and probably use CLIENT_ACCEPTED instead of CLIENT_DATA - Gavin_104961
Nimbostratus
after change EVENT to CLIENT_ACCEPTED iRules works, thx natty76.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects