当前位置:网站首页>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 .
边栏推荐
- Method of setting QQ to blank ID
- Method of realizing program startup and self startup through registry
- Azure synapse analytics Performance Optimization Guide (3) -- optimize performance using materialized views (Part 2)
- Hcip day 2_ HCIA review comprehensive experiment
- Part II - C language improvement_ 10. Function pointer and callback function
- 百度网址收录
- 力扣155题,最小栈
- The attorney general and the director of the national security service of Ukraine were dismissed
- 4-4 对象生命周期
- Pytorch learning record (II): tensor
猜你喜欢

The attorney general and the director of the national security service of Ukraine were dismissed

告别宽表,用 DQL 成就新一代 BI

Recent answers - column

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

Method of realizing program startup and self startup through registry
![[2016] [paper notes] differential frequency tunable THz technology——](/img/7e/71126950250997fc436a4ee730aee7.png)
[2016] [paper notes] differential frequency tunable THz technology——

MVC三层架构

Thousands of tiles' tilt model browsing speeds up, saying goodbye to the embarrassment of jumping out one by one

第3章 跨域问题

Azure synapse analytics Performance Optimization Guide (3) -- optimize performance using materialized views (Part 2)
随机推荐
3 esp8266 nodemcu network server
Complex SQL_ 01
力扣152题:乘积最大子数组
Dajiang Zhitu and CC have produced multiple copies of data. How to combine them into one and load them in the new earth map
Dynamic memory management
Part II - C language improvement_ 10. Function pointer and callback function
DHCP, VLAN, NAT, large comprehensive experiment
关于可穿戴式NFT你应该知道的一切!
【C语言】经典的递归问题
Practice of intelligent code reconstruction of Zhongyuan bank
07 design of ponding monitoring system based on 51 single chip microcomputer
Meeting OA project seating function and submission function
Part II - C language improvement_ 9. Linked list
04-传统的Synchronized锁
C语言数组
At 12:00 on July 17, 2022, the departure of love life on June 28 was basically completed, and it needs to rebound
When aw9523b chip is used to drive 16 channel led, the LED is wrongly lit
Tencent cloud lightweight application server purchase method steps!
Apple TV HD with the first generation Siri remote is listed as obsolete
Relationship between Unicode and UTF-8