• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

LB替换深信服AD,跨虚服务访问部分网页时通时不通

  • 0关注
  • 0收藏 535浏览
粉丝:0人 关注:0人

问题描述

深信服AD配置多个VIP地址共用一个服务,且后端有多个实服务器,业务运行使用正常,但是切换到我司LB后,业务时通时不通,需要分析原因

过程分析

1、深信服AD对于虚服务的处理逻辑是优先匹配前置策略,然后匹配节点池,所以首先检查这两处的配置;

2、检查后发现使用了轮询IP机制,会话保持是源IP机制,关于底层其他的机制暂未知晓;

3、针对多个VIP和多个实服务器我司配置是保持了持续性组,但是没有配置跨虚服务持续性组;

结论:如果不配置跨虚服务持续性组,那么会话可能会到不同的实服务器上,导致转发异常,需要开启跨虚服务的持续性组解决此问题


解决方法

深信服AD对应的配置(列举了json文件的主要内容点):

  "/slb/virtual-service": [

    {

      "name": "HTTP-HTTPS-EZProxy",

      "description": "***.***",

      "state": "ENABLE",

      "service": "TCP-PROXY",

      "vips": [

        "60.190.224.201",

        "60.190.224.202",

        "210.33.7.201",

        "210.33.7.202"

      ],

      "vports": [

        "80",

        "443"

      ],

      "pool": "BlankNode", //节点池

      "pre_rules": [

        "http-https-***.***" //前置策略

      ],

      "tcp_sched_stream_cache": {

        "state": "DISABLE"

      },

      "snat": "DISABLE",

      "dnat": "ENABLE",

      "dnat_translated_address": "",

      "dnat_translated_port": 0,

      "tcp_profile": "七层虚拟服务TCP策略",

      "ssl_server_profiles": [],

      "qos_profile": "QoS流量控制",

      "connection_limits_type": "SINGLE-SOURCE-IP",

      "connection_limits": [],

      "ipros": [],

      "icon": "ICON17",

      "source_port": "PRESERVE",

      "session_sync": "GLOBAL",

      "autolasthop": "GLOBAL",

      "notify_status_to_vip": "ENABLE",

      "inbound_links": [

        "ALL"

      ]

    }

————————————————————————————————————————————————————————————

  "/slb/pool": [

    {

      "name": "LAN-EZProxy",

      "description": "EZproxy",

      "method": "ROUND-ROBIN",

      "priority_level_available_node": 0,

      "persist": "sourceip", //会话保持设置

      "alternate_persist": "NONE",

      "service_monitors": [

        "http-***.***",

        "https-***.***"

      ],

      "available_requirement": 1,

      "node_up_delay": 0,

      "slow_ramp_time": 0,

      "recover_by_manual": "DISABLE",

      "recover_by_timer": "DISABLE",

      "busy_process_policy": "IGNORE-BUSY",

      "connection_statistic": "COMPLETED",

      "schedule_by_connect": "DISABLE",

      "nodes": [

        {

          "name": "172.16.11.230_0",

          "description": "",

          "address": "172.16.11.230",

          "port": 0,

          "state": "OFFLINE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 81574472,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.231_1",

          "description": "",

          "address": "172.16.11.231",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 52896716,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.232_2",

          "description": "",

          "address": "172.16.11.232",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 42016505,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.233_3",

          "description": "",

          "address": "172.16.11.233",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 49033824,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.234_4",

          "description": "",

          "address": "172.16.11.234",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 49881958,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.235_5",

          "description": "",

          "address": "172.16.11.235",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 93516441,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.236_6",

          "description": "",

          "address": "172.16.11.236",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 42560422,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.237_7",

          "description": "",

          "address": "172.16.11.237",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 38681486,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.238_8",

          "description": "",

          "address": "172.16.11.238",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 81202878,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.239_9",

          "description": "",

          "address": "172.16.11.239",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 77539816,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        },

        {

          "name": "172.16.11.240_10",

          "description": "",

          "address": "172.16.11.240",

          "port": 0,

          "state": "ENABLE",

          "weight": 10,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 24571952,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 0,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        }

      ]

    }

——————————————————————————————————————————————————

  "/slb/pool": [

    {

      "name": "BlankNode",

      "description": "空节点",

      "method": "ROUND-ROBIN",

      "priority_level_available_node": 0,

      "persist": "NONE",

      "alternate_persist": "NONE",

      "service_monitors": [],

      "available_requirement": 0,

      "node_up_delay": 0,

      "slow_ramp_time": 0,

      "recover_by_manual": "DISABLE",

      "recover_by_timer": "DISABLE",

      "busy_process_policy": "RETURN-FAILED",

      "connection_statistic": "COMPLETED",

      "schedule_by_connect": "DISABLE",

      "nodes": [

        {

          "name": "127.0.0.0",

          "description": "",

          "address": "127.0.0.0",

          "port": 0,

          "state": "ENABLE",

          "weight": 1,

          "priority_level": 1,

          "connection_limit": 0,

          "connection_rate_limit": 0,

          "request_rate_limit": 0,

          "COOKIE": 38220429,

          "node_variable": "",

          "inherit_pool_monitor": "ENABLE",

          "service_monitors": [],

          "available_requirement": 1,

          "associated_domain": "",

          "type": "ADDRESS",

          "recover_by_manual": "DISABLE"

        }

      ]

—————————————————————————————————————————————————————

  "/slb/pre-rule/tcp-proxy": [

    {

      "name": "http-https-***.***",

      "description": "",

      "service": "TCP-PROXY",

      "source_address": {

        "type": "ALL"

      },

      "tcp_stream_rule": {

        "mode": "NONE",

        "case_sensitive": "DISABLE"

      },

      "action": "SCHED-POOL",

      "sched_pool": "LAN-EZProxy",

      "sched_failure": "NEXT-RULE"

    },

————————————————————————————————————————————————————

  "/slb/tcp-profile/l7-proxy": [

    {

      "name": "七层虚拟服务TCP策略",

      "description": "",

      "type": "L7-PROXY",

      "idle_timeout": 600,

      "timewait_timeout_ms": 10000,

      "syn_timeout": 75,

      "maximum_segment_size": 1460,

      "time_stamp": "DISABLE",

      "service_unavailable_refuse_connection": "NONE",

      "close_node_connection_with_rst": "ENABLE",

      "close_client_connection_with_rst": "ENABLE",

      "node_fault_close_connection": "DISABLE",

      "timewait_recycle": "ENABLE",

      "delay_ack": "ENABLE",

      "sack_support": "ENABLE",

      "dsack_support": "DISABLE",

      "maximum_syn_retransmission_times": 8,

      "maximum_seg_retransmission_times": 8,

      "maximum_fin_retransmission_times": 8,

      "receive_window_scale": 0,

      "initial_receive_window_size": 65535,

      "min_retran_time": 250,

      "tcp_options": [],

      "fast_tcp": "DISABLE",

      "connection_pool": {

        "state": "DISABLE"

      },

      "reset_invalid_connection": "ENABLE",

      "lastack_close_timeout_ms": 0,

      "default": "READONLY",

      "keep_alive_interval": 60,

      "zero_window_timeout": 20

    }

  ]



我司对应配置(对应深信服AD的上述配置):

sticky-group sourceip_ipv4_tcp type address-port

 override-limit enable

 match-across-virtual-server enable

 ip source

 timeout 86400

#

server-farm lan-ezproxy

 description EZProxy

 probe tcp-443

 probe tcp-80

 success-criteria at-least 1

 real-server 172.16.11.230 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.231 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.232 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.233 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.234 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.235 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.236 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.237 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.238 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.239 port 0

  weight 10

  success-criteria at-least 1

 real-server 172.16.11.240 port 0

  weight 10

  success-criteria at-least 1

#

virtual-server http-https-ezproxy type tcp

 port 80 443

 virtual ip address 60.190.224.202

 default server-farm lan-ezproxy sticky sourceip_ipv4_tcp

 rate-limit bandwidth inbound 204800 kbps

 rate-limit bandwidth outbound 204800 kbps

 connection-sync enable

 sticky-sync enable global

 vrrp vrid 4 interface Ten-GigabitEthernet1/3/3

 application-mode enable

 service enable

#

virtual-server http-https-ezproxy1 type tcp

 port 80 443

 virtual ip address 60.190.224.201

 default server-farm lan-ezproxy sticky sourceip_ipv4_tcp

 rate-limit bandwidth inbound 204800 kbps

 rate-limit bandwidth outbound 204800 kbps

 connection-sync enable

 sticky-sync enable global

 vrrp vrid 4 interface Ten-GigabitEthernet1/3/3

 application-mode enable

 service enable

#

virtual-server http-https-ezproxy3 type tcp

 port 80 443

 virtual ip address 210.33.7.201

 default server-farm lan-ezproxy sticky sourceip_ipv4_tcp

 rate-limit bandwidth inbound 204800 kbps

 rate-limit bandwidth outbound 204800 kbps

 connection-sync enable

 sticky-sync enable global

 vrrp vrid 3 interface Ten-GigabitEthernet1/3/2

 application-mode enable

 service enable

#

virtual-server http-https-ezproxy4 type tcp

 port 80 443

 virtual ip address 210.33.7.202

 default server-farm lan-ezproxy sticky sourceip_ipv4_tcp

 rate-limit bandwidth inbound 204800 kbps

 rate-limit bandwidth outbound 204800 kbps

 connection-sync enable

 sticky-sync enable global

 vrrp vrid 3 interface Ten-GigabitEthernet1/3/2

 application-mode enable

 service enable

#

 


该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作