iptables -A OUTPUT -p tcp --sport 12345 iptables -A INPUT -p tcp --dport 12345
加入统计上传给用户的流量 和 收到用户的流量,然后就可以通过命令查看统计的流量
iptables -vnL
端口流量统计
原文:https://www.cnblogs.com/zhenfei/p/13080660.html