运行时
netstat -pnat
我看到一些我想杀死的活动连接:
=> 图像 Terminal running netstat -pnat
|原型 |接收-Q |发送-Q |本地地址 |国外地址 |状态 | PID/程序名称|
| tcp6 | 0 | 0 |:::5000 | :::* |听 | 5029/节点/root/mar |tcp6 |0 | 0 |xx.xx.xx.xx:5000 | 80.82.77.240:64344 |已建立 |5029/node /root/mar | |tcp6 | 0 | 0 |xx.xx.xx.xx:5000 | 104.152.52.36:50667 |已建立 5029/node /root/mar | tcp6 | 0 | 0 |xx.xx.xx.xx:5000 | 104.152.52.39:51372 |已建立 |5029/node /root/mar tcp6 | 0 | 0 xx.xx.xx.xx:5000 | 104.152.52.31:59004 |已建立 |5029/node /root/mar
这些命令没有帮助:
iptables -A OUTPUT -p tcp --dport 5000 -j DROP
iptables -A output -p tcp --destination-port 5000 -j DROP
iptables -A INPUT -s 1.15.148.215/24 -j DROP