- 1、本文档共4页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
某运营商省分公司DNS 服务器负载均衡
DNS
DNS F5
DNS30F5
DNS
DNS
IntemetDNSDNSDNS
DNSF5IP
BIGIP 68005DNS
DNS
http://localhost/f5/success/success_l7.htm 1 4 [2008-4-18 18:56:04]
DNS
NAT
6800Pudpicmpudp53
poolratio
UIETCP/UDPiRulesip
DNS
LTM6800 56800 1G
6800
43 NATpoolvs00 vs
udp536800dns
F5
BIGIP
F5
F5 BIGIPDNSF5
DNS
dnsipban_ip_class
class ban_ip_class {
host 69
host 89
host 04
host 3
http://localhost/f5/success/success_l7.htm 2 4 [2008-4-18 18:56:04]
DNS
}
rulesclass 6800class dns
rule ban_ip_rule {
when CLIENT_ACCEPTED {
if { [ matchclass [IP::remote_addr] equals $::ban_ip_class ] } {
discard
}
else {
pool dns_pool
}
}
}
00
DNS124284rcode
0 3
ruleudprcode
rule dns_redirect {
when RULE_INIT {
set ::header_without_id [binary format S5 {0x8180 0x0001 0x0001 0x0000 0x0000}]
set ::answerpart [binary format S6c4 {0xC00C 0x0001 0x0001 0x0000 0x0D1B 0x0004} {100 100 100 100}]
}
when SERVER_DATA {
binary scan [ string range [UDP::payload] 2 3 ] S sflags
set rcode [expr $sflags 0x000f]
if {$rcode == 3 }{
binary scan [string range [UDP::payload] 12 13 ] c foo
set byte [expr $foo 0xff]
set offset 12
set i 0
while {$byte 0 $i 10} {
http://localhost/f5/success/success_l7.htm 3 4 [2008-4-18 18:56:04]
DNS
# grab a part and put it in our text QNAME section
set offset [expr $offset + $byte + 1]
# grab the length of the next part, and make it an unsigned integer
set byte [string range [UDP::payload] $offset [expr $offset + 1]]
binary scan $byte c foo
set byte [expr $foo 0xff]
incr i
}
incr offset
binary scan [string range [UDP::payload] $offset [expr $offset + 2]] S qtype
content
if {$qtype == 0x0001} {
UDP::payload replace 0 0 [binary format a2a*a*a* [string range [UDP::payload] 0 1] $::header_without_id [string range
[UDP::payload] 12 [expr $offset+3]] $::answerpart]
}
}
}
}
F5 iRules
http://localhost/f5/success/success_l7.htm 4 4 [2008-4-18 18:56:04]
您可能关注的文档
- 战国争雄说课教案.doc
- 战国七雄-秦朝的兴衰.pdf
- 战国忍者系列.doc
- 战国第一猛将-本多忠胜.pdf
- 战国策的成语故事.doc
- 战国策的智慧.pdf
- 手机RFID移动通信业尝鲜.pdf
- 手球教学大纲.doc
- 战国时期(公元前475~前221年).ppt
- 手球Andebol.pdf
- 新高考生物二轮复习讲练测第6讲 遗传的分子基础(检测) (原卷版).docx
- 新高考生物二轮复习讲练测第12讲 生物与环境(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第3讲 酶和ATP(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第9讲 神经调节与体液调节(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第11讲 植物生命活动的调节(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第8讲 生物的变异、育种与进化(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第5讲 细胞的分裂、分化、衰老和死亡(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第5讲 细胞的分裂、分化、衰老和死亡(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第12讲 生物与环境(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第11讲 植物生命活动的调节(检测)(原卷版).docx
文档评论(0)