当前位置:网站首页>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.重启服务即可
边栏推荐
- easyui datagrid 获取多条选中的数据进行操作
- Ansible installation and use
- Protobuf之proto基础语法
- FreeRTOS personal notes - Software Timer
- In depth analysis of the source code, why is the string class immutable? (hit me before you understand)
- 09 expr command
- 现货黄金操作指南与建议(上)
- Matlab pitch period estimation post-processing
- The principle of normal equation method and its difference from gradient descent method
- Search Yiwu shopping (PAI Li Tao) API by image
猜你喜欢

梦里的一碗面

JS 延迟执行window.onload

JDBC summary

FreeRTOS personal notes - Events

Matlab draw short-term energy diagram

现货黄金操作指南与建议(上)

What to do if the browser home page is tampered with, and how to recover if the home page is tampered with

Can I view the history in the "stealth" mode of the secure browser?

Also on Data Governance
![[mysql]substr usage - query the value of specific digits of a field in the table](/img/d5/68658ff15f204dc97abfe7c9e6b354.png)
[mysql]substr usage - query the value of specific digits of a field in the table
随机推荐
Isilon's onefs common operation commands (I)
06 CP command
matlab 画短时能量图
09 expr command
Matlab pitch period estimation post-processing
Go----Go 语言中的标识符和关键字
Altium Designer 22 修改选中元件的层属性
正规方程法(Normal Equation)原理以及与梯度下降法的区别
JS verify complex password
Props with type Object/Array must...
Altium designer 22 modify the layer properties of the selected component
仅需一个依赖给Swagger换上新皮肤,既简单又炫酷
Operating guidelines and suggestions for spot gold (Part 1)
Altium Designer 22 中文字符乱码
伦敦银外汇走势理解与实操
梦里的一碗面
Flash source code startup phase
Get network time by unity
Pytorch squeeze() unsqueeze() 用法
easyui的combobox默认选中第一个选项