当前位置:网站首页>On the third day of security, iptables prevents nmap scanning and binlog
On the third day of security, iptables prevents nmap scanning and binlog
2022-07-19 04:30:00 【xiaooxiangg】
Turn on binlog Log function




Create a table to back up the table

Backup data No report error

Insert a set of data

Modify two sets of data

Delete database

Back up the last binlog Log files

Then perform a refresh log index operation , Start a new binlog Log files . Logically speaking mysql-bin.000004 This file will not be written later , Because it is convenient for us to analyze the causes and find out ops node , In the future, all database operations will be written to the next log file . 
Recover database


mysqlbinlog mysqlbin.000004 Analyze which sentence went wrong 
Delete drop databaes xiaoyu This command


Restore to the original data of the deleted database

Recover according to location
First restore to the table before data change

View the location when changing

Change to zhangsan The location of


To complete the task
stay Iptables Configuring these commands on can effectively prevent nmap scanning
[[email protected] ]# iptables -t filter -I INPUT -p tcp --tcp-flags ALL FIN,URG,PSH -j REJECT
[[email protected] ]# iptables -t filter -I INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j REJECT
[[email protected] ]# iptables -t filter -I INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j REJECT
[[email protected] ]# iptables -t filter -I INPUT -p tcp --tcp-flags ALL SYN -j REJECT
[[email protected] ]# iptables -t filter -R INPUT 1 -s 192.168.80.138 -p tcp --dport 1: --tcp-flags ALL ACK -j REJECT 

边栏推荐
- Wechat e-book reading applet graduation project (8) graduation project thesis template
- 基于stm32f103的智能风扇系统
- About the problem of database, the concept of uniqueness and non repetition
- Machine learning 09: unsupervised learning
- V4L2学习资料收集
- Android kotlin自定义自动换行LinearLayout
- How to open the applet for people near wechat (the way to open the applet near wechat)
- Xcode11 add a boot page (the launch images source option is missing after the upgrade)
- Deconstruction of typescript array / object / string / function parameters
- Eas (energy aware scheduling) green energy-saving scheduler
猜你喜欢

leetcode7-dfs+动态规划+双指针

51 single chip microcomputer to find out the input mode

Distributed notes (02) - redis of distributed cache (brief description of uses, features, high availability solutions redis cluster, tweetproxy, CODIS)

C# 字符串(string)常用方法

Sg90 actuator experiment based on STM32, including code (HAL Library)
![[seventh issue of notebook series] download and use of openvino pre training model](/img/74/d5958137ddabadef1724afda5656e1.png)
[seventh issue of notebook series] download and use of openvino pre training model

笔记本电脑插入耳机仍然外放(亲测有效)

06 Maui, WPF uses MVVM toolkit framework to build MVVM program

Mature threads should know how to refuse

深度学习中的标量、向量、矩阵和张量的区别
随机推荐
Wechat e-book reading of small program graduation project (4) opening report
C # explain out output parameters in detail
64. 最小路径和:给定一个包含非负整数的 m x n 网格 grid ,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。 说明:每次只能向下或者向右移动一步。
Wechat e-book reading applet graduation design of applet completion works (2) applet function
OSPF basic optimization
Week 2022/7/16
Introduction au cadre Maui 05 compréhension du modèle de données mvvm
ffmpeg中AVFrame\AVPacket与自己的数据交互
[wechat applet] super easy to understand conditional rendering and list rendering
[Huang ah code] Introduction to MySQL - 5. Database tips: a single column group by will, and multiple columns?
MySQL中判断和向下取整的使用场景和用法
What does the project set price mean?
若依框架包名修改器
B+ tree stored procedures, triggers, substring and substr, and truncate and delete
Technical writing guide for programmers to leave work early
In the era of super video, what is the solution to the data flood?
Avplayer adds playback progress monitoring
OSPF comprehensive experiment
minimum spanning tree
Software testing - use cases