注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

itoedr的it学苑

记录从IT文盲学到专家的历程

 
 
 

日志

 
 

trafficserver 3.2.4的一新特点分析  

2013-08-26 20:34:27|  分类: trafficserver编 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

ATS 3.2版本以后,多处的端口号设置点变到了一处:proxy.config.http.server_ports;但这个参数据值却是string类型,而不是int或float,可能还隐含了一些其它功能。特别是blind的作用,是不是针对后来的wccp-gre模式的联接,还是进一步分析。
更多说明资料:http://trafficserver.apache.org/docs/trunk/admin/index.en.html


proxy.config.http.server_ports
STRING
Default: 8080

Ports used for proxying HTTP traffic. This is a list, separated by space or comma, of port descriptors. Each descriptor is a sequence of keywords and values separated by colons. Not all keywords have values, those that do are specifically noted. Keywords with values can have an optional '=' character separating the keyword and value. The case of keywords is ignored. The order of keywords is irrelevant unless keywords conflict (e.g. tr-full and ssl) in which case the right most keyword dominates, although in such cases odd behavior may result.

KeywordMeaning
numberIP port. Required.
ipv6Use IPv6.
ipv4Use IPv4. Default.
tr-inUse inbound transparency (to client).
tr-outUse outbound transparency (to server).
tr-fullFull transparency, both inbound and outbound.
sslUse SSL termination.
blindUse as a blind tunnel (for CONNECT).
ip-inUse the keyword value as the local inbound (listening) address. This will also set the address family if not explicitly specified. If the IP address family is specified by ipv4 or ipv6 it must agree with this address.
ip-outUse the value as the local address when connecting to a server. This may be specified twice, once for IPv4 and once for IPv6. The actual address used will be determined by the family of the origin server address.


Examples -reference

80 80:ipv6

Listen on port 80 on any address for IPv4 and IPv6.

IPv4:8080:tr-FULL TR-full:IP-in=[fc02:10:10:1::1]:8080

Listen transparently on any IPv4 address on port 8080, and transparently on port 8080 on local address fc01:10:10:1::1 (which implies ipv6).

8080:ipv6:tr-full 443:ssl 80:ip-in=192.168.17.1:ip-out=[fc01:10:10:1::1]:ip-out=10.10.10.1

Listen on port 8080 any address for IPv6, fully transparent. Set up an SSL port on 443. Listen on IP address 192.168.17.1, port 80, IPv4, and connect to origin servers using the local address 10.10.10.1 for IPv4 and fc01:10:10:1::1 for IPv6.

Note: All IPv6 addresses must be enclosed in square brackets.

Note: For SSL you must still configure the certificates, this option handles only the port configuration.

Note: old style configuration of ports should still work but support for that will be removed at some point in the future.

下面的参数说明来自主配置文件records.config
 # basics #
   ##########
   # The server ports are listed here. These are separated by spaces or commas.
   # Each port is a colon separated list of values, which must include a
   # port number. Other options are
   # ipv4 - Use IPv4 (default)
   # ipv6 - Use IPv6
   # tr-in - Transparent inbound.
   # tr-out - Transparent outbound.
   # tr-full - Fully transparent (inbound and outbound).
   # ssl - SSL terminated port.
   # blind - Blind tunnel port.
   # ip-in=[addr] - Bind inbound IP address (listen for client).
   # ip-out=[addr] - Bind outbound IP address (connect to origin server).
   #
   # note - address types must agree with each other and the ipv4/ipv6
   # option if specified. IPv6 addresses must be enclosed in brackets.
   # ip-out can be repeated as long as each address is a different family.
   # The '=' is optional.
   #
   # Example: Port 8080 IPv6 inbound transparent, and port 80 IPv4
   # "8080:ipv6:tr-in 80"
CONFIG proxy.config.http.server_ports STRING 9999:ipv4:tr-in
   # Ports on the origin server to which a blind tunnel may connect.
  评论这张
 
阅读(115)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017