当前位置:网站首页>binlog与iptables防nmap扫描
binlog与iptables防nmap扫描
2022-08-02 14:04:00 【H2223】
MySQL 保证数据不会丢的能力主要体现在两方面:
- 能够恢复到任何时间点的状态;
- 能够保证MySQL在任何时间段突然奔溃,重启后之前提交的记录都不会丢失
binlog
1能力可以通过重跑binlog日志来实现
binlog二进制日志,它记录了数据库上的所有改变(记录sql语句),并以二进制的形式保存在磁盘中;
它可以用来查看数据库的变更历史、数据库增量备份和恢复、Mysql的复制(主从数据库的复制)。
redolog
redolog是物理日志,记录的是在某个数据页上做了什么修改
对于第二点的能力,通过redolog来实现,即在 InnoDB 存储引擎中,每执行一条sql语句,就重做日志缓存,在事务提交后,才会刷盘,将日志写入系统缓存,并且每隔一秒就会将日志写入系统缓存,并主动刷盘。
这样在事务提交之前的日志丢了也没什么损失
iptables防止nmap扫描
在服务器上配置iptables可以阻止nmap扫描
[[email protected] goaccess-1.5.4]# iptables -t filter -I INPUT -p tcp --tcp-flags ALL FIN,URG,PSH -j REJECT
[[email protected] goaccess-1.5.4]# iptables -t filter -I INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j REJECT
[[email protected] goaccess-1.5.4]# iptables -t filter -I INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j REJECT
[[email protected] goaccess-1.5.4]# iptables -t filter -I INPUT -p tcp --tcp-flags ALL SYN -j REJECT
[[email protected] goaccess-1.5.4]# iptables -t filter -R INPUT 1 -s 192.168.80.138 -p tcp --dport 1: --tcp-flags ALL ACK -j REJECT
在kali上验证成果
nmap -sS 192.168.62.129边栏推荐
猜你喜欢

【c】大学生在校学习c语言常见代码

The specific operation process of cloud GPU (Hengyuan cloud) training

Unit 10 Continuous Tuning

Briefly write about the use and experience of PPOCRLabel

C语言一维数组练习——将m个元素移动到数组尾部

C语言日记 2 标识符
![[ROS] The software package of the industrial computer does not compile](/img/a8/a1347568170821e8f186091b93e52a.png)
[ROS] The software package of the industrial computer does not compile

chapter7

C语言日记 4 变量

ABP,kendo后台接口,新增,查询
随机推荐
猜数字游戏,猜错10次关机(srand、rand、time)随机数生成三板斧(详细讲解!不懂问我!)
Unit 4 Routing Layer
主存储器(二)
MarkDown syntax summary
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第七章)
深度学习框架pytorch快速开发与实战chapter3
Camera Hal(Hal3)层修改Preview流
drf source code analysis and global catch exception
利用c语言实现对键盘输入的一串字符的各类字符的计数
[ROS] Introduction to common tools in ROS (to be continued)
C语言日记 1“Hello world“
paddleocr window10 first experience
Hands-on OCR (1)
云GPU(恒源云)训练的具体操作流程
主存储器(一)
C语言初级—数组元素的增删改查
static关键字3种作用,简单粗暴对比,好理解
chapter7
C语言——断言assert的使用
加减法运算及其溢出处理