当前位置:网站首页>Iptables prevent nmap scanning and binlog
Iptables prevent nmap scanning and binlog
2022-07-27 00:08:00 【Stay up late and sleepy】
nmap The role of
- Host detection
- Port scanning
- Version checking
- System detection
- Support the writing of detection script
Nmap In practice, the applications are as follows :
- Audit the security of a device or firewall by detecting it
- Detect the open port of the target host
- Audit network security by identifying new servers
- Detect hosts on the network
stay Iptables Configuring these commands on can effectively prevent nmap scanning
[[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

We use kali Tool execution nmap Function scan , Check whether effective defense is achieved


By judgment , This method successfully blocked nmap Scan
binlog
binlog The record of MySQL The database performs all the changes , But not including SELECT and SHOW This kind of operation , Because this kind of operation does not modify the data itself . then , If the operation itself does not cause the database to change , Then the operation will also write Binary system journal
redlog:redo log Weighing and making log files , Used to record changes in transaction operations , It records the value of the data after modification , Whether the transaction is committed or not is recorded . Failed on instance and media (media failure) when ,redo log Documents can come in handy , Such as database power down ,InnoDB The storage engine will use redo log Back to the time before the power down , To ensure the integrity of the data .
difference :
First of all :redo log Is in InnoDB The storage engine layer generates , and binlog yes MySQL From the top of the database
second : The two kinds of log records have different content forms .MySQL Of binlog It's a logical log , Its record is corresponding to SQL sentence . and innodb Redo logs at the storage engine level are physical logs .
Third : The two kinds of logs and records are written to disk at different time points , The binary log is written only once after the transaction commit is completed . and innodb The redo log of storage engine is continuously written in the process of transaction , The log is not written in the order in which the transaction is committed .
Fourth :binlog It's not recycling , After full write or restart , Will create a new binlog file ,redo log It's recycling .
The fifth :binlog Can be used as recovery data , Master and slave copy build ,redo log It is used for data recovery after abnormal downtime or media failure .
边栏推荐
- 04 traditional synchronized lock
- At 12:00 on July 17, 2022, the departure of love life on June 28 was basically completed, and it needs to rebound
- 第1章 需求分析与ssm环境准备
- Pytorch learning record (II): tensor
- 10_ Name Case - Calculation attribute
- 力扣152题:乘积最大子数组
- MySQL数据库复杂操作:数据库约束,查询/连接表操作
- Simple SQL optimization
- 【C语言】数组
- Embedded system migration [8] - device tree and root file system migration
猜你喜欢

Add an article ----- scanf usage

第1章 开发第一个restful应用

07 design of ponding monitoring system based on 51 single chip microcomputer

NFT display guide: how to display your NFT collection

Push to origin/master was rejected error resolution

【C语言】经典的递归问题

Analysis of encoding and decoding of encode() and decode(), common encoding and why encode and decode are needed

Practice of intelligent code reconstruction of Zhongyuan bank
![[C language] classic recursion problem](/img/97/a88626e1a42f3f425396592a77100d.png)
[C language] classic recursion problem

动态sql
随机推荐
MVC three-tier architecture
证券公司哪家佣金最低?网上开户安全吗
In simple terms, cchart's daily lesson - Lesson 59 of happy high school 4 comes to the same end by different ways, and the C code style of the colorful interface library
大疆智图、CC生产了多份数据,如何合并为一份在图新地球进行加载
Share a regular expression
文件上传到OSS文件服务器
2. Realize the map of navigation bar and battle page
Tencent cloud lightweight application server purchase method steps!
[C language] classic recursion problem
13_ conditional rendering
Use Arthas to locate online problems
Embedded system migration [8] - device tree and root file system migration
第二部分—C语言提高篇_8. 文件操作
华测RTK采集的GPX数据如何带属性转出kml、shp进行后续的管理和分析
Practice of intelligent code reconstruction of Zhongyuan bank
Identity server4 authorization successful page Jump encountered an error: exception: correlation failed Solution of unknown location
Design of electronic scale based on 51 single chip microcomputer
Hcip day 2_ HCIA review comprehensive experiment
告别宽表,用 DQL 成就新一代 BI
ES6新特性