




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、F5 iRule介紹,L4和L7交換的本質區(qū)別,L2,Payload,L3,L4,L7,Header,Full Payload,對不定址,不定長的特征碼進行的交換是L7交換的特征,對L7交換特征的提取-iRule,What is an iRule?,iRule是一種腳本語言工具 它的語法是基于TCL語言的 大部分TCL語言的功能都被支持 同時還有很多iRule的擴展功能 它能幫你實現(xiàn)許多擴展功能 當你在CLI/GUI介面無法找到對應的命令/菜單 請相信iRule!,iRules的組成元素,iRules是基于事件驅動(Event-Driven)的 由LTM系統(tǒng)觸發(fā)你在iRules中指定/期望的事
2、件 iRules是由以下的基本元素構成: 事件聲明 操作符 iRules命令,iRules的基本格式,事件聲明 表達式 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ù)包中的手機號碼做會話保持,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還在不斷擴充支持的事件類型) 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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 鄞州區(qū)網格化管理辦法
- 西湖景區(qū)游船管理辦法
- 2025年聲樂演唱職業(yè)能力測試卷:聲樂教學評價方法與應用試題
- 2025年輔導員招聘考試題庫:心理危機干預應急處理能力測試試題
- 以生為本:S小學感恩教育校本課程的實踐與探索
- 2025年電梯安裝維修人員電梯安全評估考試試題
- 2025年茶藝師職業(yè)鑒定理論試卷:茶藝師職業(yè)心理輔導技巧
- 2025秋季部編版五年級語文上冊重點難點突破計劃
- 以球育人:長沙市工人文化宮中小學生籃球俱樂部教育功能的深度剖析
- 新人教版二年級數(shù)學下冊課題研究計劃
- 企業(yè)員工心理危機干預
- 330kV變電站運營維護管理方案
- 拋石擠淤及基礎大開挖施工方案
- 路燈拆裝合同范文
- 《動火作業(yè)安全培訓》課件
- 2025年中考語文備考之12部名著閱讀習題及參考答案
- 1998-2017年中科院植物學考研真題及答案匯編
- 兒童相機市場的發(fā)展趨勢分析
- 血液凈化護理知識競賽考試題庫500題(含答案)
- 帶孩子免責協(xié)議書范本
- 守護生命之窗-氣管切開患者護理
評論
0/150
提交評論