v2ray-core
v2ray-core copied to clipboard
通过V2Ray的数据包,无法正常科学上网
你正在使用哪个版本的 V2Ray?
Client V2Ray 5.13.0
Server V2Ray 5.13.0 Server V2Ray 5.13.0
你的使用场景是什么?
路由器(软路由)+ V2Ray
你看到的异常现象是什么?
下面2个日志格式,分别有什么差异? TCP & UDP的区别,还是其他。
如下图,红色框日志有TCP开头的标识,绿色框日志没有TCP开头的标识。
本人配置了nftable,转发流量到v2ray,貌似走nftable的时候,就会出现绿色框的日志。
绿色框,走软路由的分流,Packet没办法正常科学上网, 红色框,走SwitchyOmega,Packet可以正常科学上网
请问,两者的差异是什么?
你期待看到的正常表现是怎样的?
走nftable,转发流量到v2ray的数据包可以正常上网。 印象中,V4版本的客户端没有这个问题。具体没测试
请附上你的配置
nft list ruleset
flush ruleset
include "/etc/nftables/ipv4-whitelist.nft"
include "/etc/nftables/ipv4-private.nft"
define WAN-NAME = "eth0"
define WG-NAME = "wg0"
define ROUTER-IP = 10.112.0.122
define WG-SUBNET = 10.116.0.0/24
define WG-WORKING-PORT = xxxxx
define DIRECT-IPV4 = {
$whitelist_ipv4,
$private_ipv4,
}
table ip to-v2ray {
chain pre-filter {
type filter hook prerouting priority -5; policy accept;
# bypass UDP 数据
udp dport { 123 } return
# bypass 指定ip
ip daddr $DIRECT-IPV4 return comment "ipv4-direct"
# bypass v2ray tproxy logic
meta mark 0xff return
meta mark { 0x02, 0x03 } return comment "wg-req"
# udp sport $WG-WORKING-PORT return comment "wg-req"
meta l4proto { tcp, udp } meta mark set 0x01 tproxy to 127.0.0.1:12345 accept comment "handle-by-v2ray"
}
}
table ip default {
chain out-route { type route hook output priority 0; policy accept; }
chain in-nat { type nat hook input priority 100; policy accept; }
chain out-nat { type nat hook output priority -100; policy accept; }
}
服务端配置:
略
客户端配置:
略
请附上出错时软件输出的错误日志
略
服务器端错误日志:
略
客户端错误日志:
请附上访问日志
略
其它相关的配置文件(如 Nginx)和相关日志
如果 V2Ray 无法启动,请附上 --test
命令的输出
如果 V2Ray 服务运行异常,请附上 journal 日志
我的电视也是
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days
我的电视也是
有找到解决方案吗?