网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  Centos7关闭firewall防火墙,启用iptables防火墙

Centos7关闭firewall防火墙,启用iptables防火墙

分类: IT文章 • 2025-01-27 10:51:20

从Centos7开始默认使用firewall防火墙了

换成iptables防火墙,操作步骤如下:

关闭firewalld防火墙,关闭开机自启

 
1
2
service
service

安装iptables防火墙,设置开机自启

 
1
2
tools
service

然后编辑iptables防火墙规则就好了

 
1
iptables

来个示例:

 
1
2
3
4
5
6
7
8
9
10
11
filter
]
]
]
ACCEPT
ACCEPT
ACCEPT
ACCEPT
prohibited
prohibited
COMMIT

相关推荐

  • CentOS7使用firewalld打开关闭防火墙与端口
  • centos7防火墙启动关闭
  • Centos7关闭firewall防火墙,启用iptables防火墙
  • CentOS7 firewall防火墙配置笔记
  • CentOS7系统之间设置共享文件夹 (1)安装NFS (2)启用NFS (3)配置两台服务器的防火墙,执行命令: (4)设置共享目录 (5)挂载共享文件夹 (6)测试共享文件夹是否可用
  • centOS7 永久关闭防火墙
  • centos7关闭防火墙
  • CentOS7下Firewall防火墙配置用法详解
  • centos7防火墙 firewall
  • CentOS6/7系统中防火墙默认是阻止3306端口的 Centos 6 Centos 7启用了新命令firewall-cmd
  • [转]常常忘记却又常用的sql
  • Django基础005-Django开发的整体过程
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号