You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/02/23 07:38:02 UTC

[GitHub] [incubator-apisix] shunsheng-github opened a new issue #1152: request help: fail to mqtt-proxy request

shunsheng-github opened a new issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152
 
 
   ### Issue description
   按照示例设置路由,已设置TCP 9100端口:
   
   curl http://xx.xx.xx.xx:9180/apisix/admin/stream_routes/102 -X PUT -d '
   {
       "remote_addr": "127.0.0.1",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "xx.xx.xx.xx",
                   "port": 9100
               }
           }
       }
   }'
   
   mqtt测试工具访问:tcp://xx.xx.xx.xx:9100,连接不上,查看日志:
   2020/02/23 14:33:05 [error] 30513#30513: *4327463 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value)
   stack traceback:
   coroutine 0:
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts'
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match'
   	/usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase'
   	preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.151, server: 0.0.0.0:9100
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.0
   * OS:redhat7.6
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590903371
 
 
   原始mqtt服务器连接:
   ![image](https://user-images.githubusercontent.com/61373502/75256877-1d7a3480-581f-11ea-900e-b9092af765ef.png)
   apisix服务器路由配置:
   curl http://10.97.1.84:9180/apisix/admin/stream_routes/103 -X PUT -d '
   {
       "remote_addr": "127.0.0.1",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   ![image](https://user-images.githubusercontent.com/61373502/75257045-5b775880-581f-11ea-97d2-9f28253c8c2b.png)
   这里是tcp://IP:9100是连接不成功,并且日志错误还是这个错误:
   2020/02/25 22:30:58 [error] 30514#30514: *15072954 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value)
   stack traceback:
   coroutine 0:
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts'
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match'
   	/usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase'
   	preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.136, server: 0.0.0.0:9100
   从配置来看应该是tcp://IP:9100,事实上通过9100端口是连接不上apisix服务器。上面的测试用例没看到应用端是怎么连接apisix服务器的,不太理解这个stream route调用方式。
   换了另一台服务器后:做同样的动作,tcp://10.97.1.83:9100,同样连接不上,日志如下:
   192.168.221.167 - - [26/Feb/2020:08:42:23 +0800] - "\x10#\x00\x04MQTT\x04\x02\x00<\x00\x17paho1582677649626000002" 400 154 0.006 "-" "-" - - -
   192.168.221.167 - - [26/Feb/2020:08:42:23 +0800] - "\x10%\x00\x06MQIsdp\x03\x02\x00<\x00\x17paho1582677649626000002" 400 154 0.007 "-" "-" - - -

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] JohannT9527 commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
JohannT9527 commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-594411307
 
 
   你好,这个问题解决了吗?我遇到了跟你一模一样的问题。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590903371
 
 
   原始mqtt服务器连接:
   ![image](https://user-images.githubusercontent.com/61373502/75256877-1d7a3480-581f-11ea-900e-b9092af765ef.png)
   apisix服务器路由配置:
   curl http://10.97.1.84:9180/apisix/admin/stream_routes/103 -X PUT -d '
   {
       "remote_addr": "127.0.0.1",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   ![image](https://user-images.githubusercontent.com/61373502/75257045-5b775880-581f-11ea-97d2-9f28253c8c2b.png)
   这里是tcp://IP:9100是连接不成功,并且日志错误还是这个错误:
   2020/02/25 22:30:58 [error] 30514#30514: *15072954 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value)
   stack traceback:
   coroutine 0:
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts'
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match'
   	/usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase'
   	preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.136, server: 0.0.0.0:9100
   从配置来看应该是tcp://IP:9100,事实上通过9100端口是连接不上apisix服务器。上面的测试用例没看到应用端是怎么连接apisix服务器的,不太理解这个stream route调用方式。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github removed a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github removed a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590186454
 
 
   抓到文件了,分析一下吧。
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590036852
 
 
   Can you provide the original TCP request packet? We can get it through tcpdump.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590135005
 
 
   @shunsheng-github `tcpdump  port 50051 -w b.pcap`
   
   I need to confirm the raw TCP data.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590187272
 
 
   抓包文件了
   [b.zip](https://github.com/apache/incubator-apisix/files/4243358/b.zip)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590186454
 
 
   抓到文件了,分析一下吧。
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-594459921
 
 
   https://github.com/apache/incubator-apisix/blob/master/lua/apisix/stream/router/ip_port.lua#L43
   
   I think the latest APISIX has resolved this bug. please use the latest version and make a try.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590903371
 
 
   原始mqtt服务器连接:
   ![image](https://user-images.githubusercontent.com/61373502/75256877-1d7a3480-581f-11ea-900e-b9092af765ef.png)
   apisix服务器路由配置:
   
   ```
   curl http://10.97.1.84:9180/apisix/admin/stream_routes/103 -X PUT -d '
   {
       "remote_addr": "127.0.0.1",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   ```
   
   ![image](https://user-images.githubusercontent.com/61373502/75257045-5b775880-581f-11ea-97d2-9f28253c8c2b.png)
   这里是tcp://IP:9100是连接不成功,并且日志错误还是这个错误:
   2020/02/25 22:30:58 [error] 30514#30514: *15072954 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value)
   stack traceback:
   coroutine 0:
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts'
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match'
   	/usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase'
   	preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.136, server: 0.0.0.0:9100
   从配置来看应该是tcp://IP:9100,事实上通过9100端口是连接不上apisix服务器。上面的测试用例没看到应用端是怎么连接apisix服务器的,不太理解这个stream route调用方式。
   换了另一台服务器后:做同样的动作,tcp://10.97.1.83:9100,同样连接不上,日志如下:
   192.168.221.167 - - [26/Feb/2020:08:42:23 +0800] - "\x10#\x00\x04MQTT\x04\x02\x00<\x00\x17paho1582677649626000002" 400 154 0.006 "-" "-" - - -
   192.168.221.167 - - [26/Feb/2020:08:42:23 +0800] - "\x10%\x00\x06MQIsdp\x03\x02\x00<\x00\x17paho1582677649626000002" 400 154 0.007 "-" "-" - - -

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590186454
 
 
   抓到文件了,分析一下吧。
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-591246134
 
 
   @shunsheng-github 
   
   ``` shell
   $ curl http://10.97.1.84:9180/apisix/admin/stream_routes/103 -X PUT -d '
   {
       "remote_addr": "127.0.0.1",                    # this maybe wrong
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   ```
   
   The `remote_addr` means the IP address of request client.
   I found that you are sending the request from your Windows local computer.
   So the `remote_addr` should be the IP address of your local machine. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-591268560
 
 
   curl http://10.97.1.38:9180/apisix/admin/stream_routes/105 -X PUT -d '
   {
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   配置以上,日志显示:
   2020/02/26 14:33:57 [warn] 2610#2610: *24510069 stream [lua] mqtt-proxy.lua:116: phase_fun(): plugin rewrite phase, conf: {"protocol_level":4,"upstream":{"ip":"192.168.209.243","port":1883},"protocol_name":"MQTT"} while prereading client data, client: 192.168.221.149, server: 0.0.0.0:9100
   配置客户端地址:
   curl http://10.97.1.38:9180/apisix/admin/stream_routes/105 -X PUT -d '
   {
       "remote_addr": "192.168.221.149",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "ip": "192.168.209.243",
                   "port": 1883
               }
           }
       }
   }'
   日志报错:
   2020/02/26 14:36:36 [error] 2608#2608: *24526987 lua entry thread aborted: runtime error: /usr/local/apisix/lua/apisix/stream/router/ip_port.lua:31: attempt to index local 'route' (a boolean value)
   stack traceback:
   coroutine 0:
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua: in function 'match_opts'
   	/usr/local/apisix/lua/apisix/stream/router/ip_port.lua:60: in function 'match'
   	/usr/local/apisix/lua/apisix.lua:521: in function 'stream_preread_phase'
   	preread_by_lua(nginx.conf:51):2: in main chunk while prereading client data, client: 192.168.221.149, server: 0.0.0.0:9100
   以上均连接不成功。还有对于mqtt来说,任何一个终端都会连接mqtt服务器,那么"remote_addr"这个参数作用是什么?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590278476
 
 
   I used your raw TCP data, it works fine. Here is the test case.
   
   I think Apache APISIX can support your MQTT data, and it has forward your data to upstream. please confirm your upstream status is fine.
   
   ```
   === TEST 1: set route(id: 1)
   --- config
       location /t {
           content_by_lua_block {
               local t = require("lib.test_admin").test
               local code, body = t('/apisix/admin/stream_routes/1',
                   ngx.HTTP_PUT,
                   [[{
                       "remote_addr": "127.0.0.1",
                       "plugins": {
                           "mqtt-proxy": {
                               "protocol_name": "MQTT",
                               "protocol_level": 4,
                               "upstream": {
                                   "ip": "127.0.0.1",
                                   "port": 1995
                               }
                           }
                       }
                   }]]
                   )
   
               if code >= 300 then
                   ngx.status = code
               end
               ngx.say(body)
           }
       }
   --- request
   GET /t
   --- response_body
   passed
   --- no_error_log
   [error]
   
   
   
   === TEST 2: hit route
   --- stream_enable
   --- stream_request eval
   "\x10\x18\x00\x04\x4d\x51\x54\x54\x04\x06\x00\x3c\x00\x05\x31\x31\x31\x31\x31\x00\x03\x6c\x77\x74\x00\x00"
   --- stream_response
   hello world
   --- no_error_log
   [error]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github edited a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590187272
 
 
   抓包文件:
   [b.zip](https://github.com/apache/incubator-apisix/files/4243358/b.zip)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590055510
 
 
   [root@slnewmestodidi ~]# tcpdump -iany tcp port 9100
   tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
   listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
   18:37:46.905664 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [S], seq 2199870113, win 64240, options [mss 1380,nop,wscale 8,nop,nop,sackOK], length 0
   18:37:46.905689 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [S.], seq 1504317879, ack 2199870114, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
   18:37:46.910910 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [.], ack 1, win 1024, length 0
   18:37:46.911071 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [F.], seq 1, ack 1, win 229, length 0
   18:37:46.912288 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [P.], seq 1:27, ack 1, win 1024, length 26
   18:37:46.912304 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317880, win 0, length 0
   18:37:46.917910 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [.], ack 2, win 1024, length 0
   18:37:46.917923 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317881, win 0, length 0
   18:37:46.918576 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [F.], seq 27, ack 2, win 1024, length 0
   18:37:46.918583 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317881, win 0, length 0
   18:37:46.919911 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [S], seq 4042769846, win 64240, options [mss 1380,nop,wscale 8,nop,nop,sackOK], length 0
   18:37:46.919932 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [S.], seq 3910564694, ack 4042769847, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
   18:37:46.931580 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [.], ack 1, win 1024, length 0
   18:37:46.931610 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [P.], seq 1:29, ack 1, win 1024, length 28
   18:37:46.931619 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [.], ack 29, win 229, length 0
   18:37:46.931706 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [R.], seq 1, ack 29, win 229, length 0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-591288009
 
 
   > 以上均连接不成功。还有对于mqtt来说,任何一个终端都会连接mqtt服务器,那么"remote_addr"这个参数作用是什么
   
   因为 mqtt-proxy 是四层负载均衡插件,对于路由的匹配只能使用客户端、服务端的 IP 地址 和 Port 端口。这里的 remote_addr 代表的就是客户端来源 IP 。
   
   Because `mqtt-proxy` is a Layer 4 load balancing plug-in, we can only use the client, server IP address and port for route matching.
   
   The `remote_addr` means the client source IP.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis closed issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
membphis closed issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-apisix] shunsheng-github removed a comment on issue #1152: request help: fail to mqtt-proxy request

Posted by GitBox <gi...@apache.org>.
shunsheng-github removed a comment on issue #1152: request help: fail to mqtt-proxy  request
URL: https://github.com/apache/incubator-apisix/issues/1152#issuecomment-590055510
 
 
   [root@slnewmestodidi ~]# tcpdump -iany tcp port 9100
   tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
   listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
   18:37:46.905664 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [S], seq 2199870113, win 64240, options [mss 1380,nop,wscale 8,nop,nop,sackOK], length 0
   18:37:46.905689 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [S.], seq 1504317879, ack 2199870114, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
   18:37:46.910910 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [.], ack 1, win 1024, length 0
   18:37:46.911071 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [F.], seq 1, ack 1, win 229, length 0
   18:37:46.912288 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [P.], seq 1:27, ack 1, win 1024, length 26
   18:37:46.912304 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317880, win 0, length 0
   18:37:46.917910 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [.], ack 2, win 1024, length 0
   18:37:46.917923 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317881, win 0, length 0
   18:37:46.918576 IP 192.168.221.180.62468 > slnewmestodidi.jetdirect: Flags [F.], seq 27, ack 2, win 1024, length 0
   18:37:46.918583 IP slnewmestodidi.jetdirect > 192.168.221.180.62468: Flags [R], seq 1504317881, win 0, length 0
   18:37:46.919911 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [S], seq 4042769846, win 64240, options [mss 1380,nop,wscale 8,nop,nop,sackOK], length 0
   18:37:46.919932 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [S.], seq 3910564694, ack 4042769847, win 29200, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
   18:37:46.931580 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [.], ack 1, win 1024, length 0
   18:37:46.931610 IP 192.168.221.180.62469 > slnewmestodidi.jetdirect: Flags [P.], seq 1:29, ack 1, win 1024, length 28
   18:37:46.931619 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [.], ack 29, win 229, length 0
   18:37:46.931706 IP slnewmestodidi.jetdirect > 192.168.221.180.62469: Flags [R.], seq 1, ack 29, win 229, length 0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services