当前位置:网站首页>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
边栏推荐
- ES6 other syntax and extended syntax summary
- Resolved (selenium operation Firefox Firefox browser error) attributeerror: 'webdriver' object has no attribute 'execute_ cdp_ cmd’
- BGP basic experiment
- Strncat () strncmp ()
- bjdctf_ 2020_ babystack
- STM32F4查看系统各部分频率
- cannot meet the needs of the people? How can programmers take private jobs to effectively increase their income?
- Classification model - logistic regression, Fisher linear discriminant (SPSS)
- Redis集群搭建(Cluster 集群模式,分片集群)
- BGP routing, MPLS
猜你喜欢

Three network modes of VMware virtual machine

Stm32mp1 M4 bare metal cubeide Development Guide Chapter 6 stm32cube firmware package

SQL语句实战学习

bjdctf_ 2020_ babystack

What is the difference between go run, go build and go install

anchor free yolov1

No wonder the application effect of ERP in domestic enterprises is generally not ideal

Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?

Redis pipeline technology / partition

TOPSIS method (matlab)
随机推荐
正则表达式及绕过案例
BGP basic experiment
STM32F4查看系统各部分频率
ciscn_2019_n_1
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
DGS之N+1选择问题
[Fifth space 2019 finals]pwn5
Esp8266 nodemcu - get real-time weather from Suning API
ciscn_2019_c_1
How to migrate databases in the flask framework
Learning MySQL is enough
Structured Streaming 编程模型(Input Table、Result Table、Output Mode...)
SQL语句实战学习
Detailed explanation of pseudo instructions in assembly language (with examples)
The most complete 2022 Android interview questions in history
Resolved (selenium operation Firefox Firefox browser error) attributeerror: 'webdriver' object has no attribute 'execute_ cdp_ cmd’
Open source embedded sig in the openeuler community. Let's talk about its multi OS hybrid deployment framework
头插法创建链表并输出所有元素
Introduction to mysqlbinlog command (remote pull binlog)
Lin Zhiying's injury is relatively stable