linux中如何查看iptables服务的防火墙策略

2025-04-18 14:55:37

1、首先打开linux操作系统,这里演示的系统为centos8

linux中如何查看iptables服务的防火墙策略

2、在左上角点击activity,在弹出的列表中选择ternimal

linux中如何查看iptables服务的防火墙策略

3、打开ternimal命令窗口,首先我们来看看iptables命令的用法

linux中如何查看iptables服务的防火墙策略

4、在命令窗口中输入:iptables -h

linux中如何查看iptables服务的防火墙策略

5、回车后即可看到iptables的用法及命令参数

linux中如何查看iptables服务的防火墙策略

6、输入命令:iptables -L

linux中如何查看iptables服务的防火墙策略

7、回车后就可以看到本系统中所有的防火墙策略了,包括input、output、forward、prerouting、postrouting的设置情况。

linux中如何查看iptables服务的防火墙策略
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢