




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、F5 iRule介紹,L4和L7交換的本質(zhì)區(qū)別,L2,Payload,L3,L4,L7,Header,Full Payload,對(duì)不定址,不定長(zhǎng)的特征碼進(jìn)行的交換是L7交換的特征,對(duì)L7交換特征的提取-iRule,What is an iRule?,iRule是一種腳本語(yǔ)言工具 它的語(yǔ)法是基于TCL語(yǔ)言的 大部分TCL語(yǔ)言的功能都被支持 同時(shí)還有很多iRule的擴(kuò)展功能 它能幫你實(shí)現(xiàn)許多擴(kuò)展功能 當(dāng)你在CLI/GUI介面無(wú)法找到對(duì)應(yīng)的命令/菜單 請(qǐng)相信iRule!,iRules的組成元素,iRules是基于事件驅(qū)動(dòng)(Event-Driven)的 由LTM系統(tǒng)觸發(fā)你在iRules中指定/期望的事
2、件 iRules是由以下的基本元素構(gòu)成: 事件聲明 操作符 iRules命令,iRules的基本格式,事件聲明 表達(dá)式 iRules 命令 ,when CLIENT_ACCEPTED if IP:addr IP:remote_addr equals “/24” discard ,iRule的創(chuàng)建和管理(1),iRule的創(chuàng)建和管理(2),Datagroup的創(chuàng)建(1),Datagroup的創(chuàng)建(2),iRule Editor,iRule的引用(1) -新建virtual server,iRule的引用(2)-已有virtual server,iRule案例(1),when
3、 HTTP_REQUEST if HTTP:uri starts_with /csp/dwr/ and HTTP:uri ends_with .js pool csp6_cache_pool elseif HTTP:uri starts_with /csp/js/ pool csp6_cache_pool elseif HTTP:uri starts_with /csp/resources/ pool csp6_cache_pool elseif HTTP:uri starts_with /csp_help/ pool csp6_cache_pool elseif HTTP:uri start
4、s_with /csp/esales/ pool csp6_esales_pool else pool csp6_professional_pool ,iRule例子(2),when HTTP_REQUEST if HTTP:header exists x-up-calling-line-id persist uie HTTP:header values x-up-calling-line-id # log local0. the phonenumber is-HTTP:header values x-up-calling-line-id- 根據(jù)http數(shù)據(jù)包中的手機(jī)號(hào)碼做會(huì)話保持,iRule
5、例子(3),when HTTP_REQUEST if matchclass HTTP:uri ends_with $:class_end pool pool_gateway log local0. the uri is $HTTP:uri, match uri class“ elseif matchclass HTTP:host contains $:class_domain pool pool_gateway log local0. the domain name is $HTTP:host, match class_domain“ else pool CSS-W3log local0. t
6、he uri is $HTTP:uri, use cache $: 全局變量,在v10在不要再采用,而是直接把$:去掉,class class_domain class class_end .aspx .cfm .cgi .jsp .php .phtml .shtml“ ,iRule案例(4),when CLIENT_ACCEPTED log local0. the client is IP:remote_addr, the server is IP:local_addr if (IP:addr IP:local_addr equals /23 | IP:addr IP:
7、local_addr equals /23 | IP:addr IP:local_addr equals /23) path=/; domain=%s $ckname $ckvalue . HTTP:respond 302 Location Set-Cookie $cookie ,when HTTP_RESPONSE if HTTP:status = 302 foreach aCookieName HTTP:cookie names set currentCookie $aCookieNam
8、e=HTTP:cookie value $aCookieName set cookies $cookiesrnSet-Cookie: $currentCookie HTTP:respond 200 content Forbidden Redirect From remote ServerThe server is trying to redirect the client to an external site, but it is forbidden Set-Cookie $cookies ,TMOSCMD:HTTP,iRules事件,如何聲明事件 when body An example:
9、 when CLIENT_ACCEPTED if IP:addr IP:remote_addr equals 0 pool my_pool1 ,iRules事件,事件類型 Global Events IP Events TCP/UDP Events HTTP/SSL/DNS/Auth/Cache Events Others (F5還在不斷擴(kuò)充支持的事件類型) SIP/XML/RTSP, etc,TMOS Events 祥解 1,第一部分 全局事件 TCP/IP事件 HTTP,事件清單 1,事件清單 2,事件:Global,事件:Global:LB_FAILED,事件:IP/TC
10、P,事件:TCP,when SERVER_DATA TCP:release TCP:collect log local0. in SERVER_DATA, calling TCP:notify response to trigger USER_RESPONSE event TCP:notify response when USER_RESPONSE log local0. in USER_RESPONSE ,事件:HTTP,Advanced Persistence with iRules,UIE - Universal Inspection Engine Hash,iRules命令:Global:persist,iRules命令:Global:persist,iRules命令:Global:persist,iRules命令:Global:session,iRules命令:persist&session,when HTTP_REQUEST set lookup li
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 品牌加盟店協(xié)議書
- 內(nèi)蒙古自治區(qū)離婚協(xié)議書
- 不同產(chǎn)品線的銷售額統(tǒng)計(jì)圖表
- 三方購(gòu)買房屋定金合同
- 合同能源管理節(jié)能改造項(xiàng)目合同
- 個(gè)人學(xué)習(xí)計(jì)劃進(jìn)度記錄表格
- 交通運(yùn)輸行業(yè)發(fā)展趨勢(shì)分析對(duì)比表
- 企業(yè)合同管理要點(diǎn)
- 彩鋼瓦房屋租賃合同
- 項(xiàng)目進(jìn)度調(diào)整與應(yīng)對(duì)策略報(bào)告
- 湖南美術(shù)出版社五年級(jí)下冊(cè)書法練習(xí)指導(dǎo)
- 《高分子物理》配套教學(xué)課件
- 年度應(yīng)急演練計(jì)劃表
- 英語(yǔ)板書設(shè)計(jì)(課件)
- 三年級(jí)勞動(dòng)課1ppt
- 建筑裝飾設(shè)計(jì)收費(fèi)標(biāo)準(zhǔn)
- 智能中臺(tái)數(shù)據(jù)底座解決方案
- 《財(cái)政與金融》課程教學(xué)大綱
- 《國(guó)際稅收》教案
- 傳統(tǒng)體育養(yǎng)生概論
- 公益性崗位保潔員保證書
評(píng)論
0/150
提交評(píng)論