当前位置:网站首页>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
边栏推荐
- [RequireComponent(typeof(....))]
- 知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
- [mysql]substr usage - query the value of specific digits of a field in the table
- Also on Data Governance
- Go----Go语言中的变量使用方法
- 07 df 命令
- Concept and classification of processes
- View绘制流程1-View与Window的关系
- 正规方程法(Normal Equation)原理以及与梯度下降法的区别
- 想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
猜你喜欢

Pytoch uses RNN model to build person name classifier

JDBC operation and entry case of MySQL

09.01 深度优先搜索

Flink 在讯飞 AI 营销业务的实时数据分析实践

Pytorch--Visdom使用

Altium designer 22 modify the layer properties of the selected component

JMeter自定义日志与日志分析

Unity对资源管理器操作 打开资源管理器选择文件并筛选文件

Flink's real-time data analysis practice in iFLYTEK AI marketing business

Matlab draws short-term average amplitude spectrum
随机推荐
Join method in JS
Flink's real-time data analysis practice in iFLYTEK AI marketing business
mysql推荐书
Excel-vba quick start (X. prompt box, inputable pop-up box)
Schematic diagram of MOS tube
小白学习MySQL - Derived Table
06 CP command
VB.net Chart1的处理
Altium designer 22 modify the layer properties of the selected component
Software Testing Technology: cross platform mobile UI automated testing (Part 2)
matlab 短时自相关实现
Vb.net chart1 processing
ORM同时使用不同数据源和不同命名转换
正则表达式及绕过案例
调试stc8a8k64d4单片机485通信总结
Protobuf之proto基础语法
JDBC operation and entry case of MySQL
JDBC summary
unity 安装失败:operation not permitted, mkdir......
Go ---- variable usage in go language