qq54903099 opened a new issue #5057:
URL: https://github.com/apache/apisix/issues/5057


   ### Issue description
   
   我使用mqtt-plugin测试连接不了。
   
   apisix已经监听9100端口.
   
   bash-5.1# netstat -atp |grep 9100
   tcp        0      0 0.0.0.0:9100            0.0.0.0:*               LISTEN   
   1/apisix -g daemon
   tcp        0      0 0.0.0.0:9100            0.0.0.0:*               LISTEN   
   1/apisix -g daemon
   tcp        0      0 0.0.0.0:9100            0.0.0.0:*               LISTEN   
   1/apisix -g daemon
   ...
   
   添加路由:
   ```java
   curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "remote_addr": "192.168.20.20",
       "plugins": {
           "mqtt-proxy": {
               "protocol_name": "MQTT",
               "protocol_level": 4,
               "upstream": {
                   "host": "192.168.20.20",
                   "port": 1883
               }
           }
       }
   }'
   ```
   测试连接失败
   
   
![image](https://user-images.githubusercontent.com/3895272/133200760-1c3cd155-76ef-4a53-ae7b-69d673e2a38d.png)
   
   apiisx配置:
   
   ```java
   apisix:
     node_listen: 9080              # APISIX listening port
     enable_ipv6: false
     enable_control: true
     stream_proxy:
       only: false
       tcp:
         - 9100
   ```
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): linux
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to