首页 > 分享 > ATS?�?e�?e�???Z?�?a?�a�?c?�(c��c�?e�?c��a??a??)?��c?�-aY?c?�a?�

ATS?�?e�?e�???Z?�?a?�a�?c?�(c��c�?e�?c��a??a??)?��c?�-aY?c?�a?�

2013年11月23日     浏览数:3,896 发表评论 阅读评论

c��a��i?s
a??c�?ATS??�e�?tproxya�?c��a??a?�e�???Zcs�?�?a?�a�?c?�???aS?a�?a��e��a?�aS�e�Ya��a??c?�a��e??a?Sc?�cs�a??c�?a��

a???�?e�?a????�??scs�e?�c?�

Tafficserver?�?e�??Z?a�??�????c�?e?�

c�???�a��a��a�?a?????a??cs�a??aS?i?s

NATi?se�?c��a??c�???�???e??e�???Zi??a?�????��??�a��c?�?��??�a?se�se?�ATScs�IPa�?aZ�a��a?se��a��a??c?�cs�a?�a?�aY?a?ZIPa?�a?�?��a?scs�c��c�?i??a?�e�????a?�c�?e�?a?�a�?e�?e�Yi?�?��??�c�Y?�?a��

?��e�s?�?a?�a�?c?�i?se��aZ�NAT?�?a??cs�aS?aS?i??e??e?�e�?c�???�?��aS?e�?c?�a�?c?�a��

WCCPi?se?z?�?c��e�?a��?��??�a??c�?

c�???�a��a��a�?a?????a??cs�aS?aS?i?s

e�?a??i?s?????�e�?a??e�?c?�c��a?�a��a??a?�?�?e�?e�?a??e?�i??e?�e�?c�?LVSa�?ATS Clustere�?a??a��?????�e?�e�?

WCCPi?s?????�WCCPc��a?�i??WCCPe�?a?�a??a?�??�?Y?

a�?a???�?c?�a�???�a?�a?�cs�?��?��a�?e?�a?�e�?a�?c��a��

?��?��a�?
c��c�?e�?c��?�?c?�a�?

a��a��a�?a??i?s

1a�?3a��?�?a??a?�??????a��a?Za??a�?H3Ca�??�?c��a�?e�???�a�?c?za�z?��c�?a?�a??a��a??e?�?�????c��c�?e�?c��i??a?Za??a?�??????a?Sa?�?�?c��c�?a?�traffic-policyi?�

2a�?ATSa??c??a�?e��c�?e?z?�?a??i????�e??a?�??????a?�?????�a?Sc?�c�???�i?�

3a�?ATS???aS?a�?a?Se�?a��e�?a��a?�a??c?�a??a?�a?�a��a??a??e???��e??i??a�?e��e�?a��Broadcom??�Intelcs�c?�a??

?�?e?�i?s

a�?e�???Za�?c?�?��a�?cs�e�?c?�i??e?�a?�e�?a��a��?��???a��??�e?�e�?a??e??a?�a?�??�a�?cs�a��

1a�?ATScs�records.config

CONFIG proxy.config.reverse_proxy.enabled INT 0 
CONFIG proxy.config.url_remap.remap_required INT 0
CONFIG proxy.config.http.server_ports STRING 80:ipv4:tr-full, 8080

80c�?a??a�?a??a??e�???Z???a??i??8080a�?a??a???��e�s?�?a?�a�?c?�???a??i??e?�e�??�?e�?a�?e�?c?�i?�a??a�?c�?????��e?�a�?c?�???a?�a�?a???�?a??a��

2a�?a�?c��ATS???a�?a��c��c�?e�?c��a�?e?�a?�c��c�?

 ip rule add fwmark 1/1 table 1
 ip route add local 0.0.0.0/0 dev lo table 1

 iptables -t mangle -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j TPROXY --on-ip 0.0.0.0 --on-port 8080 --tproxy-mark 1/1

 iptables -t mangle -A PREROUTING -i eth0 -p tcp -m tcp --sport 80 -j MARK --set-mark 1/1

3a�??�?a??a?�??????a?Sa�?c��c��c�?e�?c��

??�a�?a?Za??9700a?�??????a?sa?�a�?a��e?�a?????a�?a?Scs�c��c�?e�?c��a?�a?s?�?e�?a�sa?�a��a�??�?c��/e�???�??�c�?a?�a��cs�a??a??a��

a�?c��ACL3001i??a??e�????a?�a?�a??c�???�i??c��cs�c�?a??a??80cs�ACL

acl number 3001

rule 5 permit tcp source 192.168.36.0 0.0.3.255 destination-port eq www

traffic classifier user-to-internet operator or precedence 20

if-match acl 3001

a�?c��traffic behaviori???�?e??a??i?�to_ats

traffic behavior to_ats
permit
redirect ip-nexthop 192.168.0.165

a�?c��traffic policyi???�?c��c�?i?�user-to-atsi??a?�c�??�?a?�c��a�??�?e??a??

traffic policy user-to-ats
classifier  user-to-internet behavior to_ats01

a??a?�??????1a??a?�c�?c��c�?

traffic-policy user-to-ats inbound

e�??��c�???�-a��a��c?�?�?a?�cs�c��c�?a�?c�?e�?c?�a�???�

?Z?a?�???e�?c?�a��c?�-a��c�???�?�?a?�

a�?c��traffic classifieri???�?a?�c��i?�user-to-internet

traffic classifier internet-to-user operator or precedence 25

if-match acl 3011

a�?c��traffic policyi???�?c��c�?i?�user-to-atsi??a?�c�??�?a?�c��a�??�?e??a??

traffic policy internet-to-ats
classifier  internet-to-user behavior to_ats01

a??a?�??????3a??a?�c�?c��c�?

traffic-policy internet-to-ats inbound

a?�?��i??a�?e??e�?c?�a�????a��a��a��a??a�?e?�a?�a?�i??c�??�?e�?a�??��a?�ip138.coma��a?�e?????a?sc?�a?�a?�a��c?�cs�IPa��a��a??ATSe�?e��a?saS�a?SX-Forwarder-For

c��a��a��???e��a��a????�a?�e��cs�a?�?�?i?s

1a�?c?�topi??a��?z?CPU0a?�c�?cZ�a??e�?i??a��a��a??c�?a��a?�a??e??e?�e?�c?�a??a?�?��e��e??a?�a��??�?Y?e�?a��c?�a??cs�a�se?Ya?�???a?�a?�a??

e�se?�smp_affinitya��???a??e?Ya?�a?�e�?a?�a??a??cs�?�?a??a?Si??a?�?�Sa?�c�?cZ�

2a�?sysctl.confe�?a�?a?Ztcpcs�a?�?��e�?a?sa??a?�a��a??a�?a?�c��nginxi??httpda?�c��web???aS?a�?cs�a��

3a�?c��a�???�c�?cs�c�???�i??ATS4.0.2a��a??e?zhttp?��??�a�?c��e�?a?�e�se?�a??a?Z??�Bugi??a?�a??a�?a?Za?sa?�???a��

a��a?�a??a�?e?�a??e�?
 CONFIG proxy.config.http.server_ports STRING 80:ipv4:tr-full:tr-pass, 8080

 proxy.config.http.use_client_target_addre�?0

4a�?a�?e��a??ATS???aS?a�?a?Se�?a��??�a�?DNSc?�a�????aS?a�?a��namede�?e��??�???a�???�??�a��e�?e��e�?a?�a��

c��a�???�a�ze��c�?a?�???i???�?a��a??a?�a?�a�?a�?a?�cZ�a??30%a��

c??a?�?��e�?a??a?Sa??7c�?a?Se�?a?�a??5c�?a?Si??a��a?�?��e�??�?e�?a�?a?Z10Mbpsa��

a??a?�a??c??1000a??i??a?�a�?2000a??a��

a�?a?Z206i?s??�a??e��ATSc�?a��e�?a��?��206i??a�?a??c�?a�?a��a��??�a��a?�e�s??�???a��?�sa?S10c�?aZ�a?�?z?a?�a��cs�?�?a?�i??c�?curlaZ�a?�e??206cs�e�??Z?a��

c�?a?�?�Ye�?c?�e�?a?�a??c��??�cs�a?�aS�i??a��a��???@c??e??

?�?e?Za��a��a�za?�e�?e�?

分类: 分享 标签:
  1. 范可由
    2013年11月23日22:03 | #1

    这么高端大气上档次,我还是直接在路由里边设置转发

  2. Cheer
    2014年3月6日09:29 | #2

    请问下H3C的服务器核心交换机上如何建立策略路由

  3. young
    2015年2月5日21:30 | #3

    您好,请教下您的代理,lvs和ats cluster是怎么配合使用的?

  4. echowing
    2016年8月18日16:59 | #4

    请问Cisco 三层交换机如何配置呢?

  1. 本文目前尚无任何 trackbacks 和 pingbacks.