当前位置:网站首页>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
边栏推荐
- Flask request application context source code analysis
- MongoDB安装流程心得:
- 编程规范——LiteOS
- Web Design (Beginners) [easy to understand]
- verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十二章)
- Unit 7 ORM table relationships and operations
- Raj delivery notes - separation 第08 speak, speaking, reading and writing
- verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十一章)
- 鼠标右键菜单栏太长如何减少
- 8576 Basic operations of sequential linear tables
猜你喜欢
C语言日记 2 标识符
宝塔搭建DM企业建站系统源码实测
Unit 14 Viewsets and Routing
C语言日记 4 变量
猜数字游戏,猜错10次关机(srand、rand、time)随机数生成三板斧(详细讲解!不懂问我!)
Unit 10 Continuous Tuning
[ROS] Introduction to common tools in ROS (to be continued)
8580 Merge linked list
[ROS] (02) Create & compile ROS package Package
Chapter6 visualization (don't want to see the version)
随机推荐
The 2nd China Rust Developers Conference (RustChinaConf 2021~2022) Online Conference Officially Opens Registration
Creating seven NiuYun Flask project complete and let cloud
[ROS](02)创建&编译ROS软件包Package
Flask framework in-depth
Flask contexts, blueprints and Flask-RESTful
初识c语言指针
主存储器(一)
[ROS] (04) Detailed explanation of package.xml
Unit 6 meet ORM
(ROS) (03) CMakeLists. TXT, rounding
Verilog Learning Series
浏览器报错数字代表的大概意思
数据的表示方法和转换(二进制、八进制、十进制、十六进制)
A little thought about password encryption
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第七章)
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十二章)
C语言初级—水仙花数
VS Code无法安装插件之Unable to install because, the extension '' compatible with current version
chapter6可视化(不想看版)
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id ‘c