iptables: No config file. [WARNING]!
来源:互联网 发布:死侍蜘蛛侠 知乎 编辑:程序博客网 时间:2024/04/18 05:06
欢迎访问我的个人博客网站:http://www.yanmin99.com/
iptables开启警告 iptables: No config file. [WARNING]!
1、查看是/etc/sysconfig/iptables否存在
[root@iZ2ze3nze2sw4quaa8xor9Z sysconfig]# cd /etc/sysconfig/ && lsatd clock grub iptables-config modules network-scripts ntpdate sandbox sysstat udevauditd console i18n irqbalance netconsole nginx raid-check saslauthd sysstat.ioconfauthconfig crond init kernel network nginx-debug readonly-root selinux system-config-firewallcbq firstboot ip6tables-config keyboard networking ntpd rsyslog sshd system-config-firewall.old
出现上面错误,应该就是iptables不存在,如果不存在就生成iptables文件
2、随便写一条iptables命令配置个防火墙规则,生成iptables文件
。如:iptables -P OUTPUT ACCEPTiptables -P OUTPUT ACCEPT
3、service iptables save保存
[root@iZ2ze3nze2sw4quaa8xor9Z sysconfig]# service iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ][root@iZ2ze3nze2sw4quaa8xor9Z sysconfig]# lsatd console init kernel networking ntpdate saslauthd system-config-firewallauditd crond ip6tables-config keyboard network-scripts raid-check selinux system-config-firewall.oldauthconfig firstboot iptables modules nginx readonly-root sshd udevcbq grub iptables-config netconsole nginx-debug rsyslog sysstatclock i18n irqbalance network ntpd sandbox sysstat.ioconf
4、启动防火墙
service iptables start //启动service iptables restart//重启service iptables stop //停止service iptables status //查看状态
阅读全文
0 0
- iptables: No config file. [WARNING]!
- iptables: No config file. 解决
- iptables: No config file. [警告]
- iptables: No config file解决方法
- CentOS iptables: No config file. 和恢复默认规则方法
- mysql启动warning: World-writable config file
- warning: no newline at end of file
- warning: no newline at end of file
- Warning: no newline at end of file
- warning: no newline at end of file
- warning: no newline at end of file
- warning: no newline at end of file?
- warning: no newline at end of file
- Warning: No shape table file present: shapetable
- warning:no newline at end of file
- Linux: gcc warning warning: no newline at end of file
- Warning: World-writable config file '/etc/my.cnf' is ignored
- Warning: World-writable config file '/etc/my.cnf' is ignored
- python 公有属性和私有属性
- Codeforces Round #428 (Div. 2) D
- hdu 4944 FSF’s game 数学(公因子)+递推公式
- test ATL OCX by vs2015
- 面试运维
- iptables: No config file. [WARNING]!
- nodejs-socket网络编程
- 关于在Aptana Studio中编写js效果在浏览器中的刷新问题,光标变黑色矩形问题
- 利用Frida从TeamViewer内存中提取密码
- python 访问属性和属性装饰器
- python运算符
- Leetcode206. Reverse Linked List总结
- Java使用poi包读取Excel文档
- POJ