<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, May 14, 2025 at 11:23 PM 吴山 <<a href="mailto:shan.wu@zstack.io">shan.wu@zstack.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span><span><br></span></span></div><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span><span>After executing the nc command twice, executing the nc command again timed out, and the netstat command showed that the server did not close the socket connection:</span></span></div><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span><br></span></div><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span><span>[root@172-26-51-207 ~]# systemctl status usbredir-4100-003-002.service </span></span><div style="clear:both">● usbredir-4100-003-002.service - /sbin/usbredirserver -p 4100 003-002</div><div style="clear:both">   Loaded: loaded (/run/systemd/transient/usbredir-4100-003-002.service; transi></div><div style="clear:both">Transient: yes</div><div style="clear:both">   Active: active (running) since Tue 2025-05-13 14:13:41 CST; 12min ago</div><div style="clear:both"> Main PID: 3864277 (usbredirserver)</div><div style="clear:both">    Tasks: 2 (limit: 101063)</div><div style="clear:both">   Memory: 608.0K</div><div style="clear:both">   CGroup: /system.slice/usbredir-4100-003-002.service</div><div style="clear:both">           └─3864277 /sbin/usbredirserver -p 4100 003-002</div><div style="clear:both">5月 13 14:13:41 172-26-51-207 systemd[1]: Started /sbin/usbredirserver -p 4100 ></div><div><span>5月 13 14:13:45 172-26-51-207 usbredirserver[3864277]: usbredirparser: Peer ver></span></div><div><span><br></span></div></div><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span><span>[root@172-26-51-207 ~]# rpm -qa | grep usb</span></span><div style="clear:both">qemu-kvm-hw-usbredir-6.2.0-232.g09252161d1.el8.x86_64</div><div style="clear:both">usbredir-0.12.0-2.el8.x86_64</div><div style="clear:both">libusbx-1.0.23-4.el8.x86_64</div><div style="clear:both">usbutils-010-3.el8.x86_64</div><div style="clear:both">usbredir-server-0.12.0-2.el8.x86_64</div><div style="clear:both">libgusb-0.3.0-1.el8.x86_64</div><div style="clear:both">[root@172-26-51-207 ~]# nc -zv 172.26.51.207 4100</div><div style="clear:both">Ncat: Version 7.70 ( <a href="https://nmap.org/ncat" target="_blank">https://nmap.org/ncat</a> )</div><div style="clear:both">Ncat: Connected to <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>.</div><div style="clear:both">Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.</div><div style="clear:both">[root@172-26-51-207 ~]# netstat -nap | grep 4100</div><div style="clear:both">tcp        0      0 <a href="http://172.26.51.207:47988" target="_blank">172.26.51.207:47988</a>     <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      FIN_WAIT2   -                   </div><div style="clear:both">tcp6       1      0 :::4100                 :::*                    LISTEN      3864277/usbredirser </div><div style="clear:both">tcp6       1      0 <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      <a href="http://172.26.51.207:47988" target="_blank">172.26.51.207:47988</a>     CLOSE_WAIT  -                   </div><div style="clear:both">tcp6       0      0 <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      <a href="http://172.26.51.230:58576" target="_blank">172.26.51.230:58576</a>     ESTABLISHED 3864277/usbredirser </div><div style="clear:both">[root@172-26-51-207 ~]# nc -zv 172.26.51.207 4100</div><div style="clear:both">Ncat: Version 7.70 ( <a href="https://nmap.org/ncat" target="_blank">https://nmap.org/ncat</a> )</div><div style="clear:both">Ncat: Connected to <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>.</div><div style="clear:both">Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.</div><div style="clear:both">[root@172-26-51-207 ~]# netstat -nap | grep 4100</div><div style="clear:both">tcp        0      0 <a href="http://172.26.51.207:47988" target="_blank">172.26.51.207:47988</a>     <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      FIN_WAIT2   -                   </div><div style="clear:both">tcp        0      0 <a href="http://172.26.51.207:33384" target="_blank">172.26.51.207:33384</a>     <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      FIN_WAIT2   -                   </div><div style="clear:both">tcp6       2      0 :::4100                 :::*                    LISTEN      3864277/usbredirser </div><div style="clear:both">tcp6       1      0 <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      <a href="http://172.26.51.207:33384" target="_blank">172.26.51.207:33384</a>     CLOSE_WAIT  -                   </div><div style="clear:both">tcp6       1      0 <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      <a href="http://172.26.51.207:47988" target="_blank">172.26.51.207:47988</a>     CLOSE_WAIT  -                   </div><div style="clear:both">tcp6       0      0 <a href="http://172.26.51.207:4100" target="_blank">172.26.51.207:4100</a>      <a href="http://172.26.51.230:58576" target="_blank">172.26.51.230:58576</a>     ESTABLISHED 3864277/usbredirser </div><div style="clear:both">[root@172-26-51-207 ~]# nc -zv 172.26.51.207 4100</div><div style="clear:both">Ncat: Version 7.70 ( <a href="https://nmap.org/ncat" target="_blank">https://nmap.org/ncat</a> )</div><div><span>Ncat: Connection timed out.</span></div><span><br></span></div></div></div></blockquote><div>It looks like you are testing from the same host but you already have a connection from a remote host.</div><div>This should not happen if you don't already have external connections.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><div style="clear:both;font-family:Tahoma,Arial,STHeitiSC-Light,SimSun"><span></span></div></div></div>
<p style="text-align:left;text-indent:0px;margin-left:0px;margin-top:0px;margin-bottom:0px"><span style="color:rgb(165,165,165);font-family:"microsoft yahei","microsoft yahei","microsoft yahei","microsoft yahei"">此信件包含保密信息,请收件人予以保密,未经许可,请勿向第三人披露,谢谢。</span><br></p><div style="text-align:left;text-indent:0px;margin-left:0px;margin-top:0px;margin-bottom:0px;line-height:1.5em"><span style="color:rgb(165,165,165);background-color:rgb(255,255,255);font-family:"times new roman";font-size:14px">This letter contains confidential information which is requested to be kept confidential by the recipient and shall not be disclosed to any third party without permission. Thank you.</span></div><div style="clear:both"><br></div></blockquote><div><br></div><div>Do you realize that if this is true you are violating corporate policies, right?</div><div><br></div><div>Frediano <br></div></div></div>