当前位置:网站首页>iptables防止nmap扫描以及binlog
iptables防止nmap扫描以及binlog
2022-07-23 23:27:00 【困惑的Z同学】
iptables防止nmap扫描
nmap的应用:
(1)探测一组主机是否在线
(2)扫描主机端口,嗅探所提供的网络服务
(3)推断主机所用的操作系统
配置命令如下:
#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增量备份的实现步骤:
binlog:
1.开启二进制日志
log_bin
server_id=50
#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.重启服务即可
边栏推荐
- BGP选路,MPLS
- [unity3d daily bug] unity3d solves "the type or namespace name" XXX "cannot be found (are you missing the using directive or assembly reference?)" Etc
- 史上最全的2022年版Android面试题
- Tensorflow one layer neural network training handwritten digit recognition
- JS convert numbers to uppercase
- [redis] redis installation and client redis cli use (batch operation)
- js把数字转大写
- 1、 Simplification of digital logic
- [in depth study of 4g/5g/6g topic -40]: urllc-11 - in depth interpretation of 3GPP urllc related protocols, specifications and technical principles -5-5g QoS principle and Architecture: slicing, PDU s
- Upgrade unity visual studio 2019 to 2022 (throw away pirated red slag)
猜你喜欢

cannot meet the needs of the people? How can programmers take private jobs to effectively increase their income?

Tap series article 9 | application development accelerator
![Is the height of binary tree [log2n]+1 equal to log2 (n+1)](/img/64/381376190218d5b2cdfd8b1197e8f6.png)
Is the height of binary tree [log2n]+1 equal to log2 (n+1)

Chinese NFT? NFR was born

疑似未系安全带 林志颖伤势相对稳定

Finding all paths between two points in a directed graph

The I2C interface mode offline burning operation method of h7-tool has been released (2022-07-16)

二,数字逻辑功能单元

Tap series article 6 | application model of tap

Structured Streaming 编程模型(Input Table、Result Table、Output Mode...)
随机推荐
Analysis of mobile semantics and perfect forwarding
USB转CAN设备在核酸提取仪 高性能USB接口CAN卡
ArraysList 与顺序表 ——模拟实现
AutoCAD advanced operation
Interface test
Lin Zhiying's injury is relatively stable
System memory introduction and memory management
How are you preparing for the Android golden nine silver ten interview? The latest Android Interview Questions Summary helps you prepare for the war
STM32F4查看系统各部分频率
Resolved (selenium operation Firefox Firefox browser error) attributeerror: 'webdriver' object has no attribute 'execute_ cdp_ cmd’
strncat() strncmp()
Extract any page number in PDF file with itextpdf
Wechat applet implements a global event bus by itself
Finding all paths between two points in a directed graph
The role of physical layer, link layer, network layer, transport layer and application layer of tcp/ip model of internet protocol stack
1000 okaleido tiger launched binance NFT, triggering a rush to buy
史上最全的2022年版Android面试题
Baidu editor uploads pictures and sets custom directories
TAP 系列文章6 | TAP的应用模型
Quickly learn to use file permissions