v2ray icon indicating copy to clipboard operation
v2ray copied to clipboard

安装完成后ipv4 tcp端口没有监听,客户端无法连接

Open q14859 opened this issue 1 year ago • 4 comments

相关信息如下:

[root@instance-20230807-2056 ~]# netstat -anp |grep ':54063' tcp6 0 0 :::54063 :::* LISTEN 221347/v2ray

[root@instance-20230807-2056 ~]# v2ray status

V2Ray 5.7.0: running

[root@instance-20230807-2056 ~]# v2ray info -------------- VMess-TCP-54063.json ------------- 协议 (protocol) = vmess 地址 (address) = *** 端口 (port) = 54063 用户ID (id) = *** 传输协议 (network) = tcp 伪装类型 (type) = none ------------- 链接 (URL) ------------- vmess://****= ------------- END ------------- 关注(tg): https://t.me/tg2333 文档(doc): https://233boy.com/v2ray/v2ray-script/ 推广(ads): 机场推荐(V2Ray services): https://getjms.com/

[root@instance-20230807-2056 ~]# systemctl status firewalld ● firewalld.service Loaded: masked (Reason: Unit firewalld.service is masked.) Active: inactive (dead) [root@instance-20230807-2056 ~]# service iptables status Redirecting to /bin/systemctl status iptables.service Unit iptables.service could not be found. [root@instance-20230807-2056 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 8.8 (Ootpa)

tcpdump能够看到包进来,但v2ray不回应:

[root@instance-20230807-2056 ~]# tcpdump -nnnnne |grep 54063 dropped privs to tcpdump tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ens3, link-type EN10MB (Ethernet), capture size 262144 bytes 09:43:20.434701 00:00:17:f3:71:f7 > 02:00:17:01:9b:80, ethertype IPv4 (0x0800), length 66: 158.180.72.59.4256 > 10.0.0.66.54063: Flags [S], seq 3159213795, win 64240, options [mss 1361,nop,wscale 8,nop,nop,sackOK], length 0 09:43:21.449373 00:00:17:f3:71:f7 > 02:00:17:01:9b:80, ethertype IPv4 (0x0800), length 66: 158.180.72.59.4256 > 10.0.0.66.54063: Flags [S], seq 3159213795, win 64240, options [mss 1361,nop,wscale 8,nop,nop,sackOK], length 0 09:43:23.464112 00:00:17:f3:71:f7 > 02:00:17:01:9b:80, ethertype IPv4 (0x0800), length 66: 158.180.72.59.4256 > 10.0.0.66.54063: Flags [S], seq 3159213795, win 64240, options [mss 1361,nop,wscale 8,nop,nop,sackOK], length 0 09:43:27.464828 00:00:17:f3:71:f7 > 02:00:17:01:9b:80, ethertype IPv4 (0x0800), length 66: 158.180.72.59.4256 > 10.0.0.66.54063: Flags [S], seq 3159213795, win 64240, options [mss 1361,nop,wscale 8,nop,nop,sackOK], length 0 09:43:35.474394 00:00:17:f3:71:f7 > 02:00:17:01:9b:80, ethertype IPv4 (0x0800), length 66: 158.180.72.59.4256 > 10.0.0.66.54063: Flags [S], seq 3159213795, win 64240, options [mss 1361,nop,wscale 8,nop,nop,sackOK], length 0

^C138 packets captured 139 packets received by filter 0 packets dropped by kernel

q14859 avatar Aug 16 '23 10:08 q14859

配置默认是监听 0.0.0.0 的,不太清楚你这个怎么回事 @q14859

233boy avatar Aug 16 '23 14:08 233boy

配置默认是监听 0.0.0.0 的,不太清楚你这个怎么回事 @q14859

请问一下 亚马逊云 0.0.0,0监听只有ipv6没ipv4这个好奇怪知道啥原因么

vanehu avatar Aug 24 '23 04:08 vanehu

配置默认是监听 0.0.0.0 的,不太清楚你这个怎么回事 @q14859

请问一下 亚马逊云 0.0.0,0监听只有ipv6没ipv4这个好奇怪知道啥原因么

看来跟我问题类似。我是oracle云

q14859 avatar Aug 24 '23 07:08 q14859

老铁解决了嘛,我也遇到类似问题,能收到包,但是客户端v2ray连接不上,客户端控制台一直在各种乱ping

LijiaHou avatar Oct 23 '23 14:10 LijiaHou