How can i use iptables on centos 7 or fedora?
2024-09-04 12:51:40
http://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7 # sudo service iptables start
Redirecting to /bin/systemctl start iptables.service
Failed to issue
method
call: Unit iptables.service failed to load: No such file or directory.
With RHEL 7 / CentOS 7, firewalld was introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments.
It is possible to go back to a more classic iptables setup. First, stop and mask the firewalld service:
systemctl stop firewalld
systemctl mask firewalld
Then, install the iptables-services package:
yum install iptables-services
Enable the service at boot-time:
systemctl enable iptables
Managing the service
systemctl [stop|start|restart] iptables
Saving your firewall rules can be done as follows:
service iptables save
or
/usr/libexec/iptables/iptables.init save
最新文章
- common-pool2 学习:thrift连接池的另一种实现
- virut详细分析
- 提高Axure设计效率的10条建议
- Windows环境下Android Studio v1.0安装教程
- Python之路【第三篇补充】:Python基础(三)
- mysql绿色版安装问题解决(ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061))
- wikioi 3132 高精度乘法(FFT)
- Java中流-----个人总结心得
- 浅谈ASP.NET框架
- php开发之系统函数
- CenterOS7.5中搭建wordpress
- jQuery之制作简单的轮播图效果
- Android log 方法
- HihoCoder - 1078 【区间修改】
- 腾讯云ubuntu搭建jdk
- RPM卸载
- Selenium-xapth定位
- CodeBlocks 3 使用设置
- [Leetcode] word ladder 单词阶梯
- ios 中尝试多次请求