Centos6.8防火墙设置

Stella981
• 阅读 466

# 查看防火墙状态

service iptables status

# 停止防火墙

service iptables stop

# 启动防火墙

service iptables start

# 重启防火墙

service iptables restart

# 永久关闭防火墙

chkconfig iptables off

# 永久关闭后重启

chkconfig iptables  on

2、查看防火墙状态,防火墙处于开启状态并且只开放了22端口

Centos6.8防火墙设置

点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Wesley13 Wesley13
2年前
IPTABLES简介
iptables防火墙工作原理简介:iptables防火墙工作在网络层,针对TCP/IP数据包实施过滤和限制,iptables防火墙基于内核编码实现,具有非常稳定的性能和高效率;   iptables属于“用户态”的防火墙管理体系。!(https://oscimg.oschina.net/oscnet/691dc3c1cdd75580e336
Stella981 Stella981
2年前
CentOS 7 安装 Oracle 12c 步骤
CentOS7安装Oracle12c步骤catoop2019092823:35:022170收藏4分类专栏:数据库版权本例操作系统版本:CentOS7.7、数据库版本:Oracle12c(12.2)安装步骤如下分解:1.关闭防火墙,禁止防火墙开机自启\关闭防火墙systemctlst
Stella981 Stella981
2年前
Linux修改SSH默认端口
本文以centos系统为例:1、关闭防火墙和selinux关闭防火墙centos7systemctlstopfirewalldcentos6serviceiptablesstop关闭selinuxvi/etc/selinux/config
Stella981 Stella981
2年前
LVS+KeepAlived+Nginx高可用实现方案
文章目录概念LVSKeepAlived为什么要使用准备软件安装KeepAlived安装源码安装yum安装服务启动、重启、关闭安装ipvsadmnginx安装防火墙(iptables)防火墙配置(方式一)防火墙配置(方式二)配置nginx服务器(这里很重要!很
Wesley13 Wesley13
2年前
ubuntu18防火墙操作
1查看防火墙状态sudoufwstatus2禁用防火墙sudoufwdisable3开启防火墙sudoufwenable4卸载iptablessudoaptgetre
Stella981 Stella981
2年前
Bypass ngx_lua_waf SQL注入防御(多姿势)
0x00前言ngx\_lua\_waf是一款基于ngx\_lua的web应用防火墙,使用简单,高性能、轻量级。默认防御规则在wafconf目录中,摘录几条核心的SQL注入防御规则:select.(from|limit)(?:(union(.?)select))(?:from\Winformation_schema\W)这边
Stella981 Stella981
2年前
CentOS7 离线搭建 CDH5.16.1
1.环境1.Centos7.62.JDK1.83.Scala2.11.84.服务器3台2.服务器搭建前环境准备1.所有节点关闭防火墙查看防火墙状态firewallcmdstate停止firewallsystemctlstopfirewalld.se
Stella981 Stella981
2年前
Centos7 firewall 基本操作
Centos7默认启用firewall替代原来的iptables。firewall与iptables一个明显的区别是:firewall属于动态防火墙,它拥有运行时配置和永久配置选项,它支持允许服务或者应用程序直接添加防火墙规则的接口,而iptables属于静态防火墙,任何操作都需要重启iptables服务。这里整理一些常用的f
Stella981 Stella981
2年前
Linux开启和关闭防火墙的方法
1.首先查看防火墙的状态  service iptablesstatus2\.永久关闭防火墙,重启后不会复原 永久性开启: chkconfigiptables on 永久性关闭: chkconfigiptables off3\.暂时关闭或开启防火墙,重启系统后,防火墙回复到以前的状态 暂时关闭: ser