将本机上,所有对外连接的ip地址和端口,记录下来并写入log文件。
如何写这个规则?
如何写这个iptables规则
-
- 帖子: 104
- 注册时间: 2016-07-08 17:43
- 系统: debian8
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 如何写这个iptables规则
代码: 全选
netstat -al >>a.log
-
- 帖子: 104
- 注册时间: 2016-07-08 17:43
- 系统: debian8
Re: 如何写这个iptables规则
可否用iptables来完成?
- astolia
- 论坛版主
- 帖子: 6434
- 注册时间: 2008-09-18 13:11
Re: 如何写这个iptables规则
iptables -I OUTPUT -j LOG