Chinaunix

标题: iptables 重加载问题 [打印本页]

作者: ipigzhu    时间: 2015-12-07 22:30
标题: iptables 重加载问题
[root@rs1 ~]# /etc/init.d/iptables restarfdas
用法:iptables {start|stop|restart|condrestart|status|panic|save}


怎么没有reload了呢?????


iptables启动脚本里面怎么这么写

    reload)
        # unimplemented
        RETVAL=3


这是什么意思??
作者: chenyx    时间: 2015-12-08 09:45
可能是被舍弃了吧.你的系统是什么版本的?
至于那个retval,是脚本的返回值,就是你在服务启动/停止的时候,终端行显示的那个success等信息
作者: yyu0378    时间: 2015-12-08 10:12
iptables是只要执行操作就直接生效了,不需要reload,要是想要从文件加载配置使用iptables-restore < /etc/xxx




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2