当前位置:网站首页>iptables 流量统计
iptables 流量统计
2022-08-11 05:33:00 【macob】
统计5902端口上的出网流量(这里统计的是用户下载流量):
iptables -A OUTPUT -p tcp --sport 5902
-A OUTPUT 表示在OUTPUT上增加一条规则
-D OUTPUT 表示在OUTPUT上删除一条规则
-p tcp 表示指定tcp协议
–sport 5902 表示出网的端口号为5902
统计5902端口上的进网流量(这里统计的是用户上传流量):
iptables -A INPUT -p tcp --dport 5902
添加完成之后就可以通过下面命令查看流量信息
iptables -vnL
如过需要Bytes做单位,则增加一个-x参数:
iptables -n -v -L -t filter -x
边栏推荐
- arcgis填坑_3
- 项目笔记——随机2
- SECURITY DAY03(一键部署zabbix)
- AUTOMATION DAY07 (Ansible Vault, ordinary users use ansible)
- ETCD cluster fault emergency recovery - to recover from the snapshot
- HPC平台搭建
- mysql 中登录报错:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)ERROR
- China Mobile Communications Group Co., Ltd.: Business Power of Attorney
- lvm multi-disk mount, combined use
- ansible批量安装zabbix-agent
猜你喜欢
Slurm基本使用
View the library ldd that the executable depends on
slurm cluster construction
VMware workstation 16 installation and configuration
slurm集群搭建
TCP 三次握手、四次断开
arcgis填坑_1
ETCD cluster fault emergency recovery - to recover from the snapshot
本地yum源搭建
(3) Software testing theory (understanding the knowledge of software defects)
随机推荐
CLUSTER DAY01 (Introduction to cluster and LVS, LVS-NAT cluster, LVS-DR cluster)
mysql 中登录报错:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)ERROR
项目笔记——随记
解决win10安装portal v13/v15要求反复重启问题。
AUTOMATION DAY07( Ansible Vault 、 普通用户使用ansible)
windows10安全中心显示“修正未完成”
ansible batch install zabbix-agent
Threatless Technology-TVD Daily Vulnerability Intelligence-2022-7-18
SECURITY DAY05(Kali系统 、 扫描与抓包 、 SSH基本防护、服务安全 )
vnc remote desktop installation (available for personal testing on 2021-10-20)
TCP 三次握手、四次断开
Project Notes - Take Notes
ETCD集群故障应急恢复-本地数据可用
Local yum source build
Es常用操作和经典case整理
vnc远程桌面安装(2021-10-20日亲测可用)
pytorch下tensorboard可视化深坑
(1) Software testing theory (0 basic understanding of basic knowledge)
查看可执行文件依赖的库ldd
无胁科技-TVD每日漏洞情报-2022-7-21