如何修改linux iptables

2025-05-09 22:21:04

1、相关指令:启动指令:service iptable start重启指令:service iptable restart关闭指令:service iptable stop

2、配置文件地址:/etc/sysconfig/iptables

3、查看配置:cat/etc/sysconfig/iptables

如何修改linux iptables

4、修改配置:vi/etc/sysconfig/iptables可以添加或者删除,也可以修改上面划线的部分。编辑完之后,保存退出。

5、使修改生效:修改好后service iptable restart 重启服务

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