摘要: 1. 报错信息 An error occurred while installing the following packages: - linux-headers-5.18.0-kali5-arm64 Install these packages manually and start the Pa 阅读全文
posted @ 2023-02-21 12:01 爱吃蚊子爱子钰 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1. 查询规则编号 iptables --line -nvL INPUT 2. 删除指定规则 # 下面的命令可以查看到编号 iptables --line -nvL INPUT # 指定编号,删除规则 iptables -D INPUT 1 3. 设置精准IP/Port策略 # 禁止某个端口的对外 阅读全文
posted @ 2023-02-21 11:55 爱吃蚊子爱子钰 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. lsattr/chattr lsattr可以查看文件的属性,隐藏属性; chattr可以修改文件属性;比如有些系统不允许修改DNS的配置,是因为文件属性设置了只读,可以通过chattr命令修改属性 * chattr -i /etc/resolv.conf "删除文件只读权限" * chattr 阅读全文
posted @ 2023-02-21 11:27 爱吃蚊子爱子钰 阅读(36) 评论(0) 推荐(0) 编辑