suse防火墙 iptables不存在
来源:互联网 发布:fiddler拦截修改数据 编辑:程序博客网 时间:2024/05/22 09:43
最近在玩suse虚拟机,今天需要在虚机上开放一个端口,奈何没有iptables文件,然后就在网上看各种帖子,博客,,有说手动创建那个文件然后执行
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT
再重启 iptables
service iptables restart
我只想说,系统报
service: no such service iptables
信息,还有其他的好多种方法都是同样抛出没有iptables服务;
还有一种说法是修改 sysconfig下SuSEfirewall2文件,在文件中找到FW_SERVICES_EXT_TCP,在其后面加上服务名或者是服务对应的端口,在我这边试了虚机都重启了还是没用,不知道别人的行不行,最后找到一个大神经的解决办法
# chkconfig --list | grep -i fire
SuSEfirewall2_init 0:off 1:off 2:off 3:off 4:off 5:off 6:off B:on
SuSEfirewall2_setup 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# chkconfig SuSEfirewall2_setup off #这里让系统在启动时默认不加载防火墙规则
# iptables -t filter -I input_ext 14 -p tcp --dport 22 -j ACCEPT #增加一条sshd的访问规则
# iptables-save > /root/iptables.save
# vi /etc/init.d/boot.local
iptables-restore /root/iptables.save #增加一条命令, 让系统的启动的时候自动恢复之前保存的防火墙规则....这样就OK
so easy~~!就这么搞定了,谢谢那哥们儿
摘自:http://blog.chinaunix.net/uid-25266990-id-353609.html
- suse防火墙 iptables不存在
- iptables 防火墙
- 防火墙(iptables)
- iptables 防火墙
- iptables 防火墙
- iptables防火墙
- Iptables防火墙
- iptables防火墙
- iptables 防火墙
- iptables 防火墙
- 防火墙---iptables
- iptables 防火墙
- iptables防火墙
- iptables防火墙
- iptables防火墙
- iptables防火墙
- iptables防火墙
- iptables防火墙
- java(一)编程工具的下载与环境变量的配置
- Ubuntu 安装Flask
- UIMenuController
- hdu5601 BestCoder Round #67 (div.2)
- android 之开源控件roundedimageview
- suse防火墙 iptables不存在
- 使用node.js的第三方模块Mongoose访问mongodb(六)
- NSAttributedString
- Ubuntu安装php--mongo扩展
- 添加字体
- 欢迎使用CSDN-markdown编辑器
- create function GetMax(@x int,@y int) returns int
- android开源数据绑定框架( android-databinding )的插件
- youmi