找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 23286|回复: 28

mwan3负载均衡后端口转发有问题以及部分网站打不开

[复制链接]
如题,本人用的netgear wndr 4300,刷了好几个版本的openwrt,多拨后用mwan3做负载均衡,在防火墙里面做了端口转发规则,测试下来端口已经映射出去了,但是连接不上端口,比如我把内网192.168.1.2的ssh 22端口映射到外网的223端口,在外网用telnet 223端口,可以看到openssh版本号,但是使用ssh连接的时候就连接不上了,还有就是有部分网站需要指定default路由表才能打开,请问有谁知道该如何解决这问题呢?谢谢!
附mwan3的Troubleshooting Data:
  1. Software versions :

  2. OpenWrt - OpenWrt Chaos Calmer r42082
  3. LuCI - svn-r10469

  4. mwan3 - 1.4-22
  5. 1.4-20
  6. luci-app-mwan3 - 1.2-19

  7. Output of "cat /etc/config/mwan3" :

  8. config rule 'right'
  9.         option dest_ip 'right.com.cn'
  10.         option proto 'all'
  11.         option use_policy 'default'

  12. config rule 'CHDbits'
  13.         option proto 'tcp'
  14.         option use_policy 'wan2_only'
  15.         option dest_port '80,443'
  16.         option dest_ip 'chdbits.org'

  17. config rule 'IPv6'
  18.         option dest_ip '216.218.221.6'
  19.         option proto 'all'
  20.         option use_policy 'wan2_only'

  21. config rule 'web'
  22.         option proto 'tcp'
  23.         option use_policy 'wan1_only'
  24.         option dest_port '22,80,443,8000'

  25. config rule 'loadbalance'
  26.         option dest_ip '0.0.0.0/0'
  27.         option use_policy 'loadbalanced'
  28.         option proto 'all'
  29.         option equalize '1'

  30. config policy 'wan1_only'
  31.         list use_member 'wan1_m1_w3'

  32. config policy 'wan2_only'
  33.         list use_member 'wan2_m1_w2'

  34. config policy 'loadbalanced'
  35.         list use_member 'wan1_m1_w3'
  36.         list use_member 'wan2_m1_w2'
  37.         list use_member 'wan3_m1_w2'
  38.         list use_member 'wan4_m1_w2'
  39.         list use_member 'wan5_m1_w2'
  40.         list use_member 'wan6_m1_w2'

  41. config interface 'wan1'
  42.         option enabled '1'
  43.         option reliability '1'
  44.         option count '1'
  45.         option down '3'
  46.         option up '3'
  47.         option timeout '3'
  48.         list track_ip '114.114.114.114'
  49.         list track_ip '114.114.115.115'
  50.         option interval '3600'
  51.         option reroute '1'

  52. config interface 'wan2'
  53.         option enabled '1'
  54.         option reliability '1'
  55.         option count '1'
  56.         option down '3'
  57.         option up '3'
  58.         option timeout '3'
  59.         list track_ip '114.114.114.114'
  60.         list track_ip '114.114.115.115'
  61.         option interval '3600'
  62.         option reroute '1'

  63. config interface 'wan3'
  64.         option enabled '1'
  65.         option reliability '1'
  66.         option count '1'
  67.         option down '3'
  68.         option up '3'
  69.         option timeout '3'
  70.         list track_ip '114.114.114.114'
  71.         list track_ip '114.114.115.115'
  72.         option interval '3600'
  73.         option reroute '1'

  74. config interface 'wan4'
  75.         option enabled '1'
  76.         option reliability '1'
  77.         option count '1'
  78.         option down '3'
  79.         option up '3'
  80.         option timeout '3'
  81.         list track_ip '114.114.114.114'
  82.         list track_ip '114.114.115.115'
  83.         option interval '3600'
  84.         option reroute '1'

  85. config interface 'wan5'
  86.         option enabled '1'
  87.         option reliability '1'
  88.         option count '1'
  89.         option down '3'
  90.         option up '3'
  91.         option timeout '3'
  92.         list track_ip '114.114.114.114'
  93.         list track_ip '114.114.115.115'
  94.         option interval '3600'
  95.         option reroute '1'

  96. config interface 'wan6'
  97.         option enabled '1'
  98.         option reliability '1'
  99.         option count '1'
  100.         option down '3'
  101.         option up '3'
  102.         option timeout '3'
  103.         list track_ip '114.114.114.114'
  104.         list track_ip '114.114.115.115'
  105.         option interval '3600'
  106.         option reroute '1'

  107. config member 'wan1_m1_w3'
  108.         option metric '1'
  109.         option weight '3'
  110.         option interface 'wan1'

  111. config member 'wan2_m1_w2'
  112.         option interface 'wan2'
  113.         option metric '1'
  114.         option weight '2'

  115. config member 'wan3_m1_w2'
  116.         option interface 'wan3'
  117.         option metric '1'
  118.         option weight '2'

  119. config member 'wan4_m1_w2'
  120.         option interface 'wan4'
  121.         option metric '1'
  122.         option weight '2'

  123. config member 'wan5_m1_w2'
  124.         option interface 'wan5'
  125.         option metric '1'
  126.         option weight '2'

  127. config member 'wan6_m1_w2'
  128.         option interface 'wan6'
  129.         option metric '1'
  130.         option weight '2'

  131. Output of "cat /etc/config/network" :

  132. config interface 'loopback'
  133.         option ifname 'lo'
  134.         option proto 'static'
  135.         option ipaddr '127.0.0.1'
  136.         option netmask '255.0.0.0'

  137. config globals 'globals'
  138.         option ula_prefix '2001:470:fbde::/48'

  139. config interface 'lan'
  140.         option ifname 'eth0.1'
  141.         option force_link '1'
  142.         option type 'bridge'
  143.         option proto 'static'
  144.         option ipaddr '192.168.1.1'
  145.         option netmask '255.255.255.0'
  146.         option macaddr '44:94:fc:8a:60:f7'
  147.         option dns '114.114.114.114 114.114.115.115'
  148.         option ip6addr '2001:470:fbde::1/48'
  149.         option ip6prefix '2001:470:fbde::/48'

  150. config interface 'wan1'
  151.         option ifname 'eth0.2'
  152.         option _orig_ifname 'eth0.2'
  153.         option _orig_bridge 'false'
  154.         option proto 'pppoe'
  155.         USERNAME HIDDEN
  156.         PASSWORD HIDDEN
  157.         option peerdns '0'
  158.         option dns '114.114.114.114 114.114.115.115'
  159.         option metric '10'

  160. config interface 'wan2'
  161.         option ifname 'eth0.3'
  162.         option _orig_ifname 'eth0.3'
  163.         option _orig_bridge 'false'
  164.         option proto 'pppoe'
  165.         USERNAME HIDDEN
  166.         PASSWORD HIDDEN
  167.         option peerdns '0'
  168.         option dns '114.114.114.114 114.114.115.115'
  169.         option metric '20'
  170.        
  171. config interface 'wan3'
  172.         option ifname 'eth0.3'
  173.         option _orig_ifname 'eth0.3'
  174.         option _orig_bridge 'false'
  175.         option proto 'pppoe'
  176.         USERNAME HIDDEN
  177.         PASSWORD HIDDEN
  178.         option peerdns '0'
  179.         option dns '114.114.114.114 114.114.115.115'
  180.         option metric '30'
  181.        
  182. config interface 'wan4'
  183.         option ifname 'eth0.3'
  184.         option _orig_ifname 'eth0.3'
  185.         option _orig_bridge 'false'
  186.         option proto 'pppoe'
  187.         USERNAME HIDDEN
  188.         PASSWORD HIDDEN
  189.         option peerdns '0'
  190.         option dns '114.114.114.114 114.114.115.115'
  191.         option metric '40'
  192.        
  193. config interface 'wan5'
  194.         option ifname 'eth0.3'
  195.         option _orig_ifname 'eth0.3'
  196.         option _orig_bridge 'false'
  197.         option proto 'pppoe'
  198.         USERNAME HIDDEN
  199.         PASSWORD HIDDEN
  200.         option peerdns '0'
  201.         option dns '114.114.114.114 114.114.115.115'
  202.         option metric '50'               
  203.        
  204. config interface 'wan6'                             
  205.         option ifname 'eth0.3'                     
  206.         option _orig_ifname 'eth0.3'               
  207.         option _orig_bridge 'false'                 
  208.         option proto 'pppoe'                        
  209.         USERNAME HIDDEN
  210.         PASSWORD HIDDEN
  211.         option peerdns '0'                          
  212.         option dns '114.114.114.114 114.114.115.115'
  213.         option metric '60'                          

  214. config interface 'wan7'
  215.         option _orig_ifname '@wan'
  216.         option _orig_bridge 'false'
  217.         option proto '6in4'
  218.         option peeraddr '216.218.221.6'
  219.         option ip6addr '2001:470:18:978::2'
  220.         option ip6prefix '2001:470:fbde::/48'
  221.         option mtu '1480'

  222. config switch
  223.         option name 'switch0'
  224.         option reset '1'
  225.         option enable_vlan '1'

  226. config switch_vlan
  227.         option device 'switch0'
  228.         option vlan '1'
  229.         option ports '0t 1 2 3'

  230. config switch_vlan
  231.         option device 'switch0'
  232.         option vlan '2'
  233.         option ports '0t 5'

  234. config switch_vlan
  235.         option device 'switch0'
  236.         option vlan '3'
  237.         option ports '0t 4'

  238. Output of "ifconfig" :

  239. 6in4-wan7 Link encap:IPv6-in-IPv4  
  240.           inet6 addr: 2001:470:18:978::2/128 Scope:Global
  241.           inet6 addr: fe80::debc:c5fb/64 Scope:Link
  242.           UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
  243.           RX packets:4030 errors:0 dropped:0 overruns:0 frame:0
  244.           TX packets:8092 errors:0 dropped:7 overruns:0 carrier:0
  245.           collisions:0 txqueuelen:0
  246.           RX bytes:3268203 (3.1 MiB)  TX bytes:950321 (928.0 KiB)

  247. br-lan    Link encap:Ethernet  HWaddr 44:94:FC:8A:60:F7  
  248.           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  249.           inet6 addr: 2001:470:fbde::1/48 Scope:Global
  250.           inet6 addr: fe80::4694:fcff:fe8a:60f7/64 Scope:Link
  251.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  252.           RX packets:1088502 errors:0 dropped:0 overruns:0 frame:0
  253.           TX packets:1484513 errors:0 dropped:0 overruns:0 carrier:0
  254.           collisions:0 txqueuelen:0
  255.           RX bytes:188502242 (179.7 MiB)  TX bytes:1472069153 (1.3 GiB)

  256. eth0      Link encap:Ethernet  HWaddr 72:E2:D1:39:6A:5A  
  257.           inet6 addr: fe80::70e2:d1ff:fe39:6a5a/64 Scope:Link
  258.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  259.           RX packets:3218638 errors:0 dropped:10 overruns:10 frame:0
  260.           TX packets:2878085 errors:0 dropped:0 overruns:0 carrier:0
  261.           collisions:0 txqueuelen:1000
  262.           RX bytes:1678266349 (1.5 GiB)  TX bytes:1673923574 (1.5 GiB)
  263.           Interrupt:4

  264. eth0.1    Link encap:Ethernet  HWaddr 72:E2:D1:39:6A:5A  
  265.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  266.           RX packets:1086810 errors:0 dropped:41 overruns:0 frame:0
  267.           TX packets:1447551 errors:0 dropped:0 overruns:0 carrier:0
  268.           collisions:0 txqueuelen:0
  269.           RX bytes:188340171 (179.6 MiB)  TX bytes:1453996441 (1.3 GiB)

  270. eth0.2    Link encap:Ethernet  HWaddr 72:E2:D1:39:6A:5A  
  271.           inet6 addr: fe80::70e2:d1ff:fe39:6a5a/64 Scope:Link
  272.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  273.           RX packets:1517501 errors:0 dropped:317790 overruns:0 frame:0
  274.           TX packets:822753 errors:0 dropped:0 overruns:0 carrier:0
  275.           collisions:0 txqueuelen:0
  276.           RX bytes:1315144670 (1.2 GiB)  TX bytes:108346914 (103.3 MiB)

  277. eth0.3    Link encap:Ethernet  HWaddr 72:E2:D1:39:6A:5A  
  278.           inet6 addr: fe80::70e2:d1ff:fe39:6a5a/64 Scope:Link
  279.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  280.           RX packets:614292 errors:0 dropped:79443 overruns:0 frame:0
  281.           TX packets:607885 errors:0 dropped:0 overruns:0 carrier:0
  282.           collisions:0 txqueuelen:0
  283.           RX bytes:116842886 (111.4 MiB)  TX bytes:100093249 (95.4 MiB)

  284. lo        Link encap:Local Loopback  
  285.           inet addr:127.0.0.1  Mask:255.0.0.0
  286.           inet6 addr: ::1/128 Scope:Host
  287.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  288.           RX packets:2933 errors:0 dropped:0 overruns:0 frame:0
  289.           TX packets:2933 errors:0 dropped:0 overruns:0 carrier:0
  290.           collisions:0 txqueuelen:0
  291.           RX bytes:234202 (228.7 KiB)  TX bytes:234202 (228.7 KiB)

  292. pppoe-wan1 Link encap:Point-to-Point Protocol  
  293.           inet addr:222.188.197.251  P-t-P:222.188.197.1  Mask:255.255.255.255
  294.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  295.           RX packets:1132322 errors:0 dropped:0 overruns:0 frame:0
  296.           TX packets:755988 errors:0 dropped:0 overruns:0 carrier:0
  297.           collisions:0 txqueuelen:3
  298.           RX bytes:1287093559 (1.1 GiB)  TX bytes:89711608 (85.5 MiB)

  299. pppoe-wan2 Link encap:Point-to-Point Protocol  
  300.           inet addr:112.3.85.168  P-t-P:112.3.84.1  Mask:255.255.255.255
  301.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  302.           RX packets:50611 errors:0 dropped:0 overruns:0 frame:0
  303.           TX packets:62240 errors:0 dropped:0 overruns:0 carrier:0
  304.           collisions:0 txqueuelen:3
  305.           RX bytes:30873615 (29.4 MiB)  TX bytes:7625629 (7.2 MiB)

  306. pppoe-wan3 Link encap:Point-to-Point Protocol  
  307.           inet addr:183.213.154.56  P-t-P:183.213.154.1  Mask:255.255.255.255
  308.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  309.           RX packets:26821 errors:0 dropped:0 overruns:0 frame:0
  310.           TX packets:36034 errors:0 dropped:0 overruns:0 carrier:0
  311.           collisions:0 txqueuelen:3
  312.           RX bytes:6283582 (5.9 MiB)  TX bytes:9079222 (8.6 MiB)

  313. pppoe-wan4 Link encap:Point-to-Point Protocol  
  314.           inet addr:223.66.37.108  P-t-P:223.66.36.1  Mask:255.255.255.255
  315.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  316.           RX packets:33154 errors:0 dropped:0 overruns:0 frame:0
  317.           TX packets:50076 errors:0 dropped:0 overruns:0 carrier:0
  318.           collisions:0 txqueuelen:3
  319.           RX bytes:3156966 (3.0 MiB)  TX bytes:37116380 (35.3 MiB)

  320. pppoe-wan5 Link encap:Point-to-Point Protocol  
  321.           inet addr:112.3.85.177  P-t-P:112.3.84.1  Mask:255.255.255.255
  322.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  323.           RX packets:54743 errors:0 dropped:0 overruns:0 frame:0
  324.           TX packets:81821 errors:0 dropped:0 overruns:0 carrier:0
  325.           collisions:0 txqueuelen:3
  326.           RX bytes:28904901 (27.5 MiB)  TX bytes:23637605 (22.5 MiB)

  327. pppoe-wan6 Link encap:Point-to-Point Protocol  
  328.           inet addr:112.1.87.237  P-t-P:112.1.86.1  Mask:255.255.255.255
  329.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  330.           RX packets:15961 errors:0 dropped:0 overruns:0 frame:0
  331.           TX packets:21181 errors:0 dropped:0 overruns:0 carrier:0
  332.           collisions:0 txqueuelen:3
  333.           RX bytes:2487677 (2.3 MiB)  TX bytes:1859325 (1.7 MiB)

  334. wlan0     Link encap:Ethernet  HWaddr 44:94:FC:8A:60:F7  
  335.           inet6 addr: fe80::4694:fcff:fe8a:60f7/64 Scope:Link
  336.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  337.           RX packets:1738 errors:0 dropped:0 overruns:0 frame:0
  338.           TX packets:34833 errors:0 dropped:0 overruns:0 carrier:0
  339.           collisions:0 txqueuelen:1000
  340.           RX bytes:188752 (184.3 KiB)  TX bytes:6096464 (5.8 MiB)

  341. wlan1     Link encap:Ethernet  HWaddr 44:94:FC:8A:60:F9  
  342.           inet6 addr: fe80::4694:fcff:fe8a:60f9/64 Scope:Link
  343.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  344.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  345.           TX packets:32371 errors:0 dropped:0 overruns:0 carrier:0
  346.           collisions:0 txqueuelen:1000
  347.           RX bytes:0 (0.0 B)  TX bytes:3578518 (3.4 MiB)

  348. Output of "route -n" :

  349. Kernel IP routing table
  350. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  351. 0.0.0.0         222.188.197.1   0.0.0.0         UG    10     0        0 pppoe-wan1
  352. 0.0.0.0         112.3.84.1      0.0.0.0         UG    20     0        0 pppoe-wan2
  353. 0.0.0.0         183.213.154.1   0.0.0.0         UG    30     0        0 pppoe-wan3
  354. 0.0.0.0         223.66.36.1     0.0.0.0         UG    40     0        0 pppoe-wan4
  355. 0.0.0.0         112.3.84.1      0.0.0.0         UG    50     0        0 pppoe-wan5
  356. 0.0.0.0         112.1.86.1      0.0.0.0         UG    60     0        0 pppoe-wan6
  357. 112.1.86.1      0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan6
  358. 112.3.84.1      0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan5
  359. 112.3.84.1      0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan2
  360. 183.213.154.1   0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan3
  361. 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
  362. 222.188.197.1   0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan1
  363. 223.66.36.1     0.0.0.0         255.255.255.255 UH    0      0        0 pppoe-wan4

  364. Output of "ip rule show" :

  365. 0:        from all lookup local
  366. 1001:        from all iif pppoe-wan1 lookup main
  367. 1002:        from all iif pppoe-wan2 lookup main
  368. 1003:        from all iif pppoe-wan3 lookup main
  369. 1004:        from all iif pppoe-wan4 lookup main
  370. 1005:        from all iif pppoe-wan5 lookup main
  371. 1006:        from all iif pppoe-wan6 lookup main
  372. 2001:        from all fwmark 0x100/0xff00 lookup 1
  373. 2002:        from all fwmark 0x200/0xff00 lookup 2
  374. 2003:        from all fwmark 0x300/0xff00 lookup 3
  375. 2004:        from all fwmark 0x400/0xff00 lookup 4
  376. 2005:        from all fwmark 0x500/0xff00 lookup 5
  377. 2006:        from all fwmark 0x600/0xff00 lookup 6
  378. 2254:        from all fwmark 0xfe00/0xff00 unreachable
  379. 6693:        from all fwmark 0x200 lookup 2
  380. 6694:        from all fwmark 0x100 lookup 1
  381. 6695:        from all fwmark 0x200 lookup 2
  382. 6696:        from all fwmark 0x100 lookup 1
  383. 6697:        from all fwmark 0x200 lookup 2
  384. 6698:        from all fwmark 0x100 lookup 1
  385. 6699:        from all lookup 65
  386. 32766:        from all lookup main
  387. 32767:        from all lookup default

  388. Output of "ip route list table 1-250" :

  389. 1
  390. default via 222.188.197.1 dev pppoe-wan1
  391. 2
  392. default via 112.3.84.1 dev pppoe-wan2
  393. 3
  394. default via 183.213.154.1 dev pppoe-wan3
  395. 4
  396. default via 223.66.36.1 dev pppoe-wan4
  397. 5
  398. default via 112.3.84.1 dev pppoe-wan5
  399. 6
  400. default via 112.1.86.1 dev pppoe-wan6

  401. Firewall default output policy (must be ACCEPT) :

  402. ACCEPT

  403. Output of "iptables -L -t mangle -v -n" :

  404. Chain PREROUTING (policy ACCEPT 145K packets, 66M bytes)
  405. pkts bytes target     prot opt in     out     source               destination         
  406. 146K   66M mwan3_hook  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
  407. 145K   66M fwmark     all  --  *      *       0.0.0.0/0            0.0.0.0/0           

  408. Chain INPUT (policy ACCEPT 36728 packets, 3942K bytes)
  409. pkts bytes target     prot opt in     out     source               destination         

  410. Chain FORWARD (policy ACCEPT 108K packets, 61M bytes)
  411. pkts bytes target     prot opt in     out     source               destination         
  412. 108K   61M mssfix     all  --  *      *       0.0.0.0/0            0.0.0.0/0           

  413. Chain OUTPUT (policy ACCEPT 43929 packets, 16M bytes)
  414. pkts bytes target     prot opt in     out     source               destination         
  415. 44141   16M mwan3_hook  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
  416. 44141   16M mwan3_track_hook  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

  417. Chain POSTROUTING (policy ACCEPT 152K packets, 77M bytes)
  418. pkts bytes target     prot opt in     out     source               destination         

  419. Chain fwmark (1 references)
  420. pkts bytes target     prot opt in     out     source               destination         

  421. Chain mssfix (1 references)
  422. pkts bytes target     prot opt in     out     source               destination         
  423. 3308  196K TCPMSS     tcp  --  *      pppoe-wan1  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  424.   748 44708 TCPMSS     tcp  --  *      pppoe-wan2  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  425.   618 36956 TCPMSS     tcp  --  *      pppoe-wan3  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  426.   726 43528 TCPMSS     tcp  --  *      pppoe-wan4  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  427.   639 38036 TCPMSS     tcp  --  *      pppoe-wan5  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  428.   665 39736 TCPMSS     tcp  --  *      pppoe-wan6  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
  429.     0     0 TCPMSS     tcp  --  *      6in4-wan7  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU

  430. Chain mwan3_connected (1 references)
  431. pkts bytes target     prot opt in     out     source               destination         
  432.    86  5850 MARK       all  --  *      *       0.0.0.0/0            127.0.0.0/8          mark match 0x0/0xff00 MARK or 0xff00
  433.   392 25426 MARK       all  --  *      *       0.0.0.0/0            224.0.0.0/3          mark match 0x0/0xff00 MARK or 0xff00
  434.     0     0 MARK       all  --  *      *       0.0.0.0/0            112.1.86.1           mark match 0x0/0xff00 MARK or 0xff00
  435.     0     0 MARK       all  --  *      *       0.0.0.0/0            112.3.84.1           mark match 0x0/0xff00 MARK or 0xff00
  436.     0     0 MARK       all  --  *      *       0.0.0.0/0            112.3.84.1           mark match 0x0/0xff00 MARK or 0xff00
  437.     0     0 MARK       all  --  *      *       0.0.0.0/0            183.213.154.1        mark match 0x0/0xff00 MARK or 0xff00
  438. 3600  239K MARK       all  --  *      *       0.0.0.0/0            192.168.1.0/24       mark match 0x0/0xff00 MARK or 0xff00
  439.     0     0 MARK       all  --  *      *       0.0.0.0/0            222.188.197.1        mark match 0x0/0xff00 MARK or 0xff00
  440.     0     0 MARK       all  --  *      *       0.0.0.0/0            223.66.36.1          mark match 0x0/0xff00 MARK or 0xff00

  441. Chain mwan3_hook (2 references)
  442. pkts bytes target     prot opt in     out     source               destination         
  443. 190K   82M CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK restore mask 0xff00
  444. 14990  989K mwan3_ifaces  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  445. 11304  722K mwan3_connected  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  446. 7193  450K mwan3_rules  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  447. 190K   82M CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK save mask 0xff00

  448. Chain mwan3_iface_wan1 (1 references)
  449. pkts bytes target     prot opt in     out     source               destination         
  450.     0     0 MARK       all  --  *      *       222.188.197.1        0.0.0.0/0            mark match 0x0/0xff00 /* wan1 */ MARK or 0xff00
  451. 1149 83599 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan1 */ MARK xset 0x100/0xff00

  452. Chain mwan3_iface_wan2 (1 references)
  453. pkts bytes target     prot opt in     out     source               destination         
  454.     0     0 MARK       all  --  *      *       112.3.84.1           0.0.0.0/0            mark match 0x0/0xff00 /* wan2 */ MARK or 0xff00
  455.   868 52206 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan2 */ MARK xset 0x200/0xff00

  456. Chain mwan3_iface_wan3 (1 references)
  457. pkts bytes target     prot opt in     out     source               destination         
  458.     0     0 MARK       all  --  *      *       183.213.154.1        0.0.0.0/0            mark match 0x0/0xff00 /* wan3 */ MARK or 0xff00
  459.   297 30866 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan3 */ MARK xset 0x300/0xff00

  460. Chain mwan3_iface_wan4 (1 references)
  461. pkts bytes target     prot opt in     out     source               destination         
  462.     0     0 MARK       all  --  *      *       223.66.36.1          0.0.0.0/0            mark match 0x0/0xff00 /* wan4 */ MARK or 0xff00
  463.   473 52804 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan4 */ MARK xset 0x400/0xff00

  464. Chain mwan3_iface_wan5 (1 references)
  465. pkts bytes target     prot opt in     out     source               destination         
  466.     0     0 MARK       all  --  *      *       112.3.84.1           0.0.0.0/0            mark match 0x0/0xff00 /* wan5 */ MARK or 0xff00
  467.   784 40008 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan5 */ MARK xset 0x500/0xff00

  468. Chain mwan3_iface_wan6 (1 references)
  469. pkts bytes target     prot opt in     out     source               destination         
  470.     0     0 MARK       all  --  *      *       112.1.86.1           0.0.0.0/0            mark match 0x0/0xff00 /* wan6 */ MARK or 0xff00
  471.   115  7512 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan6 */ MARK xset 0x600/0xff00

  472. Chain mwan3_ifaces (1 references)
  473. pkts bytes target     prot opt in     out     source               destination         
  474. 1149 83599 mwan3_iface_wan1  all  --  pppoe-wan1 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  475.   868 52206 mwan3_iface_wan2  all  --  pppoe-wan2 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  476.   297 30866 mwan3_iface_wan3  all  --  pppoe-wan3 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  477.   473 52804 mwan3_iface_wan4  all  --  pppoe-wan4 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  478.   784 40008 mwan3_iface_wan5  all  --  pppoe-wan5 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00
  479.   115  7512 mwan3_iface_wan6  all  --  pppoe-wan6 *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00

  480. Chain mwan3_policy_loadbalanced (1 references)
  481. pkts bytes target     prot opt in     out     source               destination         
  482.   810 51727 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 statistic mode random probability 0.15299999993 /* wan6 2 13 */ MARK xset 0x600/0xff00
  483.   779 49348 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 statistic mode random probability 0.18099999987 /* wan5 2 11 */ MARK xset 0x500/0xff00
  484.   817 51448 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 statistic mode random probability 0.22200000007 /* wan4 2 9 */ MARK xset 0x400/0xff00
  485.   796 51217 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 statistic mode random probability 0.28500000015 /* wan3 2 7 */ MARK xset 0x300/0xff00
  486.   836 54111 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 statistic mode random probability 0.39999999991 /* wan2 2 5 */ MARK xset 0x200/0xff00
  487. 1220 77310 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan1 3 3 */ MARK xset 0x100/0xff00

  488. Chain mwan3_policy_wan1_only (1 references)
  489. pkts bytes target     prot opt in     out     source               destination         
  490. 1771  103K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan1 3 3 */ MARK xset 0x100/0xff00

  491. Chain mwan3_policy_wan2_only (6 references)
  492. pkts bytes target     prot opt in     out     source               destination         
  493.    80  5014 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* wan2 2 2 */ MARK xset 0x200/0xff00

  494. Chain mwan3_rules (1 references)
  495. pkts bytes target     prot opt in     out     source               destination         
  496.    18  1080 MARK       all  --  *      *       0.0.0.0/0            115.29.247.125       mark match 0x0/0xff00 /* right */ MARK or 0xff00
  497.    12   720 mwan3_policy_wan2_only  tcp  --  *      *       0.0.0.0/0            198.41.177.80        multiport sports 0:65535 multiport dports 80,443 mark match 0x0/0xff00 /* CHDbits */
  498.     9   540 mwan3_policy_wan2_only  tcp  --  *      *       0.0.0.0/0            198.41.183.79        multiport sports 0:65535 multiport dports 80,443 mark match 0x0/0xff00 /* CHDbits */
  499.     2   120 mwan3_policy_wan2_only  tcp  --  *      *       0.0.0.0/0            198.41.176.80        multiport sports 0:65535 multiport dports 80,443 mark match 0x0/0xff00 /* CHDbits */
  500.    39  2490 mwan3_policy_wan2_only  tcp  --  *      *       0.0.0.0/0            198.41.181.79        multiport sports 0:65535 multiport dports 80,443 mark match 0x0/0xff00 /* CHDbits */
  501.    16   960 mwan3_policy_wan2_only  tcp  --  *      *       0.0.0.0/0            198.41.182.79        multiport sports 0:65535 multiport dports 80,443 mark match 0x0/0xff00 /* CHDbits */
  502.     2   184 mwan3_policy_wan2_only  all  --  *      *       0.0.0.0/0            216.218.221.6        mark match 0x0/0xff00 /* IPv6 */
  503. 1771  103K mwan3_policy_wan1_only  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport sports 0:65535 multiport dports 22,80,443,8000 mark match 0x0/0xff00 /* web */
  504. 5258  335K mwan3_policy_loadbalanced  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff00 /* loadbalance */

  505. Chain mwan3_track_hook (1 references)
  506. pkts bytes target     prot opt in     out     source               destination         
  507.    24   768 mwan3_track_wan1  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32
  508.    22   704 mwan3_track_wan2  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32
  509.    20   640 mwan3_track_wan3  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32
  510.    18   576 mwan3_track_wan4  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32
  511.    16   512 mwan3_track_wan5  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32
  512.    14   448 mwan3_track_wan6  icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8 length 32

  513. Chain mwan3_track_wan1 (1 references)
  514. pkts bytes target     prot opt in     out     source               destination         
  515.    12   384 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  516.    12   384 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00

  517. Chain mwan3_track_wan2 (1 references)
  518. pkts bytes target     prot opt in     out     source               destination         
  519.    11   352 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  520.    11   352 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00

  521. Chain mwan3_track_wan3 (1 references)
  522. pkts bytes target     prot opt in     out     source               destination         
  523.    10   320 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  524.    10   320 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00

  525. Chain mwan3_track_wan4 (1 references)
  526. pkts bytes target     prot opt in     out     source               destination         
  527.     9   288 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  528.     9   288 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00

  529. Chain mwan3_track_wan5 (1 references)
  530. pkts bytes target     prot opt in     out     source               destination         
  531.     8   256 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  532.     8   256 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00

  533. Chain mwan3_track_wan6 (1 references)
  534. pkts bytes target     prot opt in     out     source               destination         
  535.     7   224 MARK       all  --  *      *       0.0.0.0/0            114.114.115.115      MARK or 0xff00
  536.     7   224 MARK       all  --  *      *       0.0.0.0/0            114.114.114.114      MARK or 0xff00
复制代码



我的恩山、我的无线 The best wifi forum is right here.
本帖最后由 shenyz 于 2014-8-11 09:29 编辑

mwan3 4线叠加 端口映射 一切正常
访问外网https 443端口 (网银)请走指定线路
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
我这不正常啊,映射到路由本身的没问题,关键是映射到内网的访问不进来,刚抓包分析了下,好像是内网的数据包发送不出去,80,443已经指定了出口的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
终于解决了,这算是个bug,在openwrt论坛上发帖求助,mwan3作者果断找到bug原因并且果断更新了代码,现在端口转发正常, 某些需要指定default路由表的网站也正常了...

点评

不错啊,作者有没有更新版本  详情 回复 发表于 2015-2-5 20:19
有新版编译好的 包没  详情 回复 发表于 2014-8-13 17:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wackejohn 发表于 2014-8-13 16:49
终于解决了,这算是个bug,在openwrt论坛上发帖求助,mwan3作者果断找到bug原因并且果断更新了代码,现在端 ...

有新版编译好的 包没

点评

请问 mwan3负载均衡后 端口映射外网访问不了的问题如何解决?  详情 回复 发表于 2014-9-18 21:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
好像还没有吧,我是直接把github上的源码直接复制下来的,这个包其实都是纯脚本,不编译也能用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

刚编译的,你可以试试。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

网站有些还是打开的慢  详情 回复 发表于 2014-8-24 08:50
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 abc1999abc 于 2014-8-24 08:59 编辑
981213 发表于 2014-8-13 20:40
刚编译的,你可以试试。


比以前好像有效果,但打开京东还是有问题啊。什么情况啊,这个MWAN3,打开京东这么不稳定。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

maxjove 发表于 2014-8-13 17:46
有新版编译好的 包没

请问 mwan3负载均衡后 端口映射外网访问不了的问题如何解决?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

netgear wndr 4300
你的双线怎么设置的?
可以截图看看嘛?  我的4300还在路上

点评

双线路很简单的,只要自己改下vlan配置就行了,我的/etc/config/network的vlan部分:  详情 回复 发表于 2014-9-19 11:07
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
ptsa 发表于 2014-9-19 00:19
netgear wndr 4300
你的双线怎么设置的?
可以截图看看嘛?  我的4300还在路上

双线路很简单的,只要自己改下vlan配置就行了,我的/etc/config/network的vlan部分:
  1. config switch
  2.         option name 'switch0'
  3.         option reset '1'
  4.         option enable_vlan '1'

  5. config switch_vlan
  6.         option device 'switch0'
  7.         option vlan '1'
  8.         option ports '0t 1 2 3'

  9. config switch_vlan
  10.         option device 'switch0'
  11.         option vlan '2'
  12.         option ports '0t 5'

  13. config switch_vlan
  14.         option device 'switch0'
  15.         option vlan '3'
  16.         option ports '0t 4'
复制代码

点评

按线路走 比如电信网站 走电信 移动走移动 如何弄?  详情 回复 发表于 2014-9-19 12:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wackejohn 发表于 2014-9-19 11:07
双线路很简单的,只要自己改下vlan配置就行了,我的/etc/config/network的vlan部分:

按线路走   比如电信网站 走电信 移动走移动 如何弄?

点评

这个你需要找到电信,移动单独的路由表才行了,我是把80,443这些端口全部走电信的线路  详情 回复 发表于 2014-9-19 14:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
ptsa 发表于 2014-9-19 12:16
按线路走   比如电信网站 走电信 移动走移动 如何弄?

这个你需要找到电信,移动单独的路由表才行了,我是把80,443这些端口全部走电信的线路

点评

单独 路由表有了, 找到了.,.. 还没找到怎么弄哈  详情 回复 发表于 2014-9-19 14:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

wackejohn 发表于 2014-9-19 14:20
这个你需要找到电信,移动单独的路由表才行了,我是把80,443这些端口全部走电信的线路

单独 路由表有了, 找到了.,.. 还没找到怎么弄哈

点评

静态路由表添加可以参考chnroutes,autoddvpn等项目里面的路由添加部分,具体我没操作过,只要把vpn网关换成你电信和移动的网关的接口应该就可以了  详情 回复 发表于 2014-9-19 15:03
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
ptsa 发表于 2014-9-19 14:55
单独 路由表有了, 找到了.,.. 还没找到怎么弄哈

静态路由表添加可以参考chnroutes,autoddvirtual**等项目里面的路由添加部分,具体我没操作过,只要把virtual**网关换成你电信和移动的网关的接口应该就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 18:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表