当前位置:网站首页>Iptables prevent nmap scanning and binlog
Iptables prevent nmap scanning and binlog
2022-07-23 23:34:00 【Confused classmate Z】
iptables prevent nmap scanning
nmap Application :
(1) Detect whether a group of hosts are online
(2) Scan host port , The network services provided by sniffer
(3) Infer the operating system used by the host
The configuration command is as follows :
#iptables -F
#iptables -A INPUT -p tcp --tcp-flags ALL FIN,URG,PSH -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,SYN --dport 80 -j Drop
binlog Implementation steps of incremental backup :
binlog:
1. Turn on binary log
log_bin
server_id=50
#max_binlog_size= The number # The default is 1G, Super 1G Just create a new binlog journal
2. restart MySQL service
systemctl restart mysqld
3. Check whether logging is enabled
1) Access to database ,show master status; # View the native binlog Log files
position —> Offset —> Record the number of the command
2) see /var/lib/mysql You can see binlog Log file and log index file
Configuration command :
1. Manually generate a new log file # Every binlog The offset of the log is from 154 Start
-flush logs or mysql -uroot -p123456 -e ‘flush logs’
-systemctl restart mysqld
-mysqldump
2. Clean up the log
1. Delete all logs before the specified log file purge master logs to “binlog file name ”
2. Delete all reset master;
3. Custom storage name
1. Configure in profile ,
bin_log=/mylog/rzc
2. Just restart the service
边栏推荐
- YOLOv4: Optimal Speed and Accuracy of Object Detection
- Classification model - logistic regression, Fisher linear discriminant (SPSS)
- 第五章、实现Web适配器
- ciscn_ 2019_ n_ one
- Is the height of binary tree [log2n]+1 equal to log2 (n+1)
- Three network modes of VMware virtual machine
- DGS的错误处理
- Use of pairwise
- SecureCRT garbled
- The basic syntax of go language (variables, constants, basic data types, for, switch, case, array, slice, make, new, map)
猜你喜欢

bjdctf_ 2020_ babystack

Stm32mp1 M4 bare metal cubeide Development Guide Chapter 6 stm32cube firmware package
![[leetcode ladder] the penultimate node in the 022 linked list](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode ladder] the penultimate node in the 022 linked list

Light up the LED light of little bear patting learning
![[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)](/img/61/5547822b782043672b626f6b86d304.png)
[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)

jarvisoj_ level0

strncat() strncmp()

Chinese NFT? NFR was born

Lin Zhiying's injury is relatively stable

How does the easynvr platform turn off anonymous login?
随机推荐
[ CTF ]天格战队WriteUp-首届数字空间安全攻防大赛(初赛)
Entropy weight method to optimize TOPSIS (matlab)
Finding all paths between two points in a directed graph
Arrayslist and sequence table -- Simulation Implementation
DGS之文件上传
Detailed explanation of pseudo instructions in assembly language (with examples)
麒麟OS和龙芯环境编译安装GreatSQL
AutoCAD advanced operation
二,数字逻辑功能单元
2、 Digital logic functional unit
[OGeek2019]babyrop
The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)
The basic syntax of go language (variables, constants, basic data types, for, switch, case, array, slice, make, new, map)
Flask框架中如何进行数据库的迁移
Mobile, telecom and Unicom: fancy solution of 5g to B
cannot meet the needs of the people? How can programmers take private jobs to effectively increase their income?
Light up the LED light of little bear patting learning
Wechat applet implements a global event bus by itself
Go language multiple return values and return error types
[数组]NC95 数组中的最长连续子序列-较难