当前位置:网站首页>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边栏推荐
- [ROS](05)ROS通信 —— 节点,Nodes & Master
- verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十二章)
- Tornado framework routing system introduction and (IOloop.current().start()) start source code analysis
- 加减法运算及其溢出处理
- MarkDown syntax summary
- 云GPU(恒源云)训练的具体操作流程
- Unit 4 Routing Layer
- 8576 Basic operations of sequential linear tables
- paddleocr window10 first experience
- C语言日记 7 输入/输出格式控制
猜你喜欢
随机推荐
STM32(F407)—— 堆栈
8583 顺序栈的基本操作
getUserProfile接口不显示用户性别和地区
Flask request application context source code analysis
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十三章)
C语言——断言assert的使用
C语言一级指针(补)
Unit 7 ORM table relationships and operations
Creating seven NiuYun Flask project complete and let cloud
ThinkPHP5.0内置分页函数Paginate无法获取POST页数问题的解决办法
(ROS) (03) CMakeLists. TXT, rounding
static关键字3种作用,简单粗暴对比,好理解
C语言日记 5、7setprecision()问题
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十一章)
8580 合并链表
原码、补码、反码
原码、反码、补码和移码
Flask-SQLAlchemy
The specific operation process of cloud GPU (Hengyuan cloud) training
The IDEA of packaged jar package




![[ROS] (02) Create & compile ROS package Package](/img/c2/5931d5cbade509c6ca34d66a274756.png)




