当前位置:网站首页>Iptables prevents nmap scanning and enables incremental backup of binlog
Iptables prevents nmap scanning and enables incremental backup of binlog
2022-07-26 22:16:00 【Small sail, will also set sail】
nmap Application :
- Host detection
- Port scanning
- Version checking
- System detection
- Support the writing of detection script
We can make Linux Yes nmap Scan no response , utilize iptables Tools to filter network information , So that the system cannot respond to the information requested by the scan
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 :
1. Turn on binary log
log_bin(log-bin It's fine too ) # log enable
server_id=50 #id Can only be 1-255
#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
边栏推荐
- What you need to know about mobile video compatibility
- View绘制流程1-View与Window的关系
- 1 - "pytorch deep learning practice" - linear model
- yolov1
- Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
- Go----Go 语言命名规范
- Go ---- variable usage in go language
- matlab 短时自相关实现
- ORM同时使用不同数据源和不同命名转换
- OPPO 自研大规模知识图谱及其在数智工程中的应用
猜你喜欢

SQL注入 Less26(过滤空格和注释符,使用不带空格的报错注入)

Altium Designer 22 中文字符乱码

OPPO 自研大规模知识图谱及其在数智工程中的应用

JDBC summary

Leetcode exercise - Sword finger offer II 005. maximum product of word length

Also on Data Governance

Instructions for use of light source controller dial switch

Just one dependency to give swagger a new skin, which is simple and cool

Cmake compiling obs-studio-27.2.0

Pytoch uses RNN model to build person name classifier
随机推荐
Pytorch torch. add() torch. add_ () usage
Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering
09.01 深度优先搜索
同花顺上面开户安全吗,开户怎么选券商
Overview of MPLS Basics
开发转测试:从零开始的6年自动化之路
Actual authority comes from information superiority
伦敦银外汇走势理解与实操
JDBC summary
C# 数据类型_摘自菜鸟教程
When deploying Flink on a single machine and creating the connection table of oracle19c RAC, the error ora-12505 is reported. Who can help
unity 获取网络时间
JWT implements login authentication + token automatic renewal scheme, which is the correct posture!
【地平线旭日X3派试用体验】+开箱帖
Props with type Object/Array must...
JS 延迟执行window.onload
Xshell7 personal free download, use
现货黄金操作指南与建议(上)
matlab 画短时能量图
Just one dependency to give swagger a new skin, which is simple and cool~