当前位置:网站首页>iptables防止nmap扫描以及binlog实现增量备份
iptables防止nmap扫描以及binlog实现增量备份
2022-07-26 21:20:00 【小帆,也会启航】
nmap的应用:
- 主机探测
- 端口扫描
- 版本检测
- 系统检测
- 支持探测脚本的编写
我们可以通过设置让Linux对nmap扫描无回应,利用iptables工具来过滤网络信息,从而让系统无法回应扫描请求的信息
配置命令如下:
#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增量备份的实现步骤:
1.开启二进制日志
log_bin(log-bin也可以) #启用日志
server_id=50 #id只能是1-255
#max_binlog_size=数值 #默认是1G,超了1G就创建新的binlog日志
2.重启MySQL服务
systemctl restart mysqld
3.检查是否启用日志
1)进入数据库,show master status; #查看本机的binlog日志文件
position ---> 偏移量 ---> 记录命令的编号
2)查看/var/lib/mysql 可以看到binlog日志文件和日志的索引文件
配置命令:
1.手动生成新的日志文件 #每个binlog日志的偏移量从154开始
-flush logs 或 mysql -uroot -p123456 -e ‘flush logs’
-systemctl restart mysqld
-mysqldump
2.清理日志
1.删除指定日志文件前的所有日志 purge master logs to “binlog文件名”
2.删除所有 reset master;
3.自定义存储名称
1.在配置文件中配置,
bin_log=/mylog/rzc
2.重启服务即可
边栏推荐
- Database notes (from Lao She)
- 开发转测试:从零开始的6年自动化之路
- JDBC summary
- 45. Instance segmented labelme dataset to coco dataset and coco dataset to labelme dataset
- [audio and video] ijkplayer player parameter description document
- Summer vacation daily question week 7:7.18 - 7.24
- 08 Du command
- 45、实例分割的labelme数据集转coco数据集以及coco数据集转labelme数据集
- 七月集训(第26天) —— 并查集
- Isilon's onefs common operation commands (I)
猜你喜欢

My SQL is OK. Why is it still so slow? MySQL locking rules

A new technical director asked me to do an IP territorial function~

Try new functions | decrypt Doris complex data type array

Kalibr calibration realsensed435i -- multi camera calibration

进程的概念和分类

08 Du command

cmake编译obs-studio-27.2.0

Pytoch uses RNN model to build person name classifier
![[MySql]substr用法-查询表的某个字段的具体位数的值](/img/d5/68658ff15f204dc97abfe7c9e6b354.png)
[MySql]substr用法-查询表的某个字段的具体位数的值

Matlab pitch period estimation post-processing
随机推荐
Matlab draw short-term energy diagram
Keyword maintenance of dream weaving document doesn't work
What to do if the browser home page is tampered with, and how to recover if the home page is tampered with
开发转测试:从零开始的6年自动化之路
仅需一个依赖给Swagger换上新皮肤,既简单又炫酷~
OPPO 自研大规模知识图谱及其在数智工程中的应用
Shrimp Shope gets the product details API according to the ID
Li Kou daily question - day 43 -168. Name of Excel table column
Selenium automated test interview questions family bucket
Isilon 的OneFs常见操作命令(一)
JMeter自定义日志与日志分析
JDBC总结
同花顺上面开户安全吗,开户怎么选券商
Go----Go语言中的变量使用方法
Happens-Before原则深入解读
Logical vulnerability - arbitrary account registration
Search Yiwu shopping (PAI Li Tao) API by image
Basic operation of (C language) files
Unity对资源管理器操作 打开资源管理器选择文件并筛选文件
月薪5万的朋友告诉我,你只是在打杂