multi-v2ray icon indicating copy to clipboard operation
multi-v2ray copied to clipboard

通过iptables的流量统计似乎并不能正常工作

Open optimusleobear opened this issue 4 years ago • 8 comments

如题,v2ray和xray的流量统计(iptables)一直都是0。 用安装命令source <(curl -sL https://multi.netlify.app/v2ray.sh) --zh重新安装后v2ray恢复正常,但是xray的依旧没能正常统计流量。

v2ray_util版本:3.10.5.3 xray版本:1.4.5 v2ray版本:4.42.2

optimusleobear avatar Oct 12 '21 03:10 optimusleobear

什么系统

Jrohy avatar Oct 12 '21 04:10 Jrohy

Ubuntu 20.04.3 LTS

optimusleobear avatar Oct 12 '21 04:10 optimusleobear

用vultr的机器测试没问题,要不新建端口试试

Jrohy avatar Oct 12 '21 05:10 Jrohy

在xray下新建一个端口之后,xray的流量统计(iptables)恢复了正常工作。 把新建的端口删除后,现在xray的流量统计也是正常工作的。 虽然不知道是什么原因……谢谢大神√

optimusleobear avatar Oct 12 '21 07:10 optimusleobear

我试图重现了一下问题。 在xray和v2ray的流量统计(iptables)都正常工作的情况下,重启了虚拟机实例后流量统计就会全部归0并且不能继续正常工作。此时新建一个端口后流量统计就会恢复正常。 希望这个信息能够有所帮助。

optimusleobear avatar Oct 13 '21 08:10 optimusleobear

确实存在此问题

Jrohy avatar Oct 13 '21 09:10 Jrohy

重启后iptables规则都会丢,iptables-save保存出来还原规则就行,我看看怎么优化

Jrohy avatar Oct 13 '21 09:10 Jrohy

3.10.6版本已增加iptables规则保存和开机后自动导入的功能了,更新下

Jrohy avatar Oct 15 '21 02:10 Jrohy