


下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Tunneling with HTTP CONNECTBackground To ensure that sensitive information is kept secret from potential eavesdroppers, TCP/IP includes secure protocols (SSL/TLS) which have been designed specifically to achieve true end-to-end security. These protocols work by following a handshake algorithm to est
2、ablish a shared encryption key which is known only to the client and the secure server. Once the handshake is complete, all subsequent data transfer between the client and server are encrypted. Since the client and secure server are the only devices which know the shared encryption key, they alone a
3、re able to decrypt the communications using the shared encryption key. A special case occurs when the client must use a proxy server to connect to a remote secure server. The proxy server must connect the client to the remote secure server so the handshake can take place to establish the shared encr
4、yption key. To maintain true end-to-end security, this encryption key must remain unknown to the proxy server . To handle this special case, HTTP has a special method: CONNECT. This method is used by a client to instruct a proxy server to establish a connection with a remote server so that handshaki
5、ng between the client and the remote server can take place. At the end of the handshake, the shared encryption key is established between the client and the remote secure server. All subsequent communications between the client and the remote secure server are encrypted using that key and sent to th
6、e proxy server which then acts only as a data relay between the client and the remote secure server. This is known as tunneling through the proxy. Since the proxy server does not know the encryption key, it cannot examine the data in the communications, and end-to-end security is preserved. The Prob
7、lem Many of our customers want to use LTM to load balance proxy servers (or otherwise tunnel traffic via HTTP using the "CONNECT" method). They report that traffic doesn't seem to flow as expected with an HTTP profile applied to the virtual server: LTM forwards the request to the serve
8、r, but the connection stalls upon a "200 OK" response from the server. Removing the HTTP profile is only a solution if no HTTP profile-based features are required, so that can result in a bit of a chicken & egg situation if you need to forward CONNECT requests while still taking advant
9、age of HTTP profile-based features for other traffic. Modifications to the http profile to fully support the CONNECT method are in the works, but in the meantime, here's a simple iRule workaround. The Solution By configuring an HTTP virtual server with an iRule, you can still use HTTP events to
10、examine each request for the CONNECT method (or any other HTTP conditions to which you might need to react). When the request contains the CONNECT method, you can disable HTTP processing with the HTTP:disable command (added in LTM 9.0.5 for just this purpose), allowing the remainder of the connectio
11、n to pass through LTM unaffected by the HTTP parser. Start by configuring a Standard virtual server with an HTTP profile, the proxy servers as the load balancing pool. Then apply an iRule looking for the CONNECT header. Here's the basic iRule to disable HTTP processing when a request using the C
12、ONNECT method is seen: when HTTP_REQUEST if HTTP:method eq "CONNECT" HTTP:disable If you need to include some additional traffic management logic for non-tunneled HTTP traffic, you can add that to the same iRule: when HTTP_REQUEST if string toupper HTTP:metho
13、d eq "CONNECT" HTTP:disable else if HTTP:uri starts_with "/admin" && !(IP:addr IP:client_addr equals /8) reject return switch HTTP:host "" pool somepool "" pool someotherpool
14、 Caveats Since HTTP events are only triggered when HTTP processing is enabled, once HTTP is disabled in this fashion for a connection, the HTTP events in your iRule are effectively disabled as well for the life of that connection. There are corner cases in which HTTP-like protocols might need HTTP processing selectively re-enabled when conditions change. LTM iRules also include the HTTP:enable command for that purpose, but it requires capturing data at the TCP level with TCP:collect and coding the logic to parse each packet for t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Python开源框架使用分析试题及答案
- 二级考试多种形式计算机试题及答案
- 逻辑推理能力的提升试题及答案
- 计算机二级Delphi开发试题及答案
- 2025年考点知识整合试题及答案
- Delphi编程中的性能瓶颈识别试题及答案
- 财务成本管理案例解析试题及答案
- 2025购物中心与商户租赁合同
- 行业动态财务成本管理试题及答案
- 计算机二级MySQL实战案例试题及答案
- 2023年高考生物试卷(福建)(空白卷)
- 2025年上半年扬州现代农业生态环境投资发展集团公开招聘易考易错模拟试题(共500题)试卷后附参考答案
- 统编版二年级语文下册第七单元综合提优卷(含答案)
- 《词汇构建法:课件中的词根词缀解析》
- 钢材授权合同协议
- 初中生物地理主要知识点总复习人教版结业版
- 18 井冈翠竹 公开课一等奖创新教案
- 小学生朗读指导课件
- DB32-T 5079-2025 城镇供水水表安装及维护技术规程
- 机械工程设备维护与保养手册
- 苏少版八年级下册音乐教案:第六单元《走近交响》教学设计
评论
0/150
提交评论