端口又必须开放怎么才能防住
端口又必须开放怎么才能防住
ip白名单或者可以参考一下xkcptun这个项目(我也只是听说、没用过)
密钥登录管理 · 密码登录开关 · Fail2Ban防护 · SSH 端口修改
https://github.com/BeacherZ/key.sh https://www.nodeseek.com/jump?to=https%3A%2F%2Fgithub.com%2FBeacherZ%2Fkey.sh
每天公网正常无数脚本在扫。毫不在意
禁ping,上F2B,改用户名 禁root
不需要直连的直接走cf tunnel,不需要对外开放端口 https://www.nodeseek.com/static/image/sticker/xhj/003.png
仅密钥登录 扫就扫呗
组网关闭公网端口,ssh禁止密码登录,走私网密钥登录。
防火墙白名单
让ai给你写一份nftables的防扫描探测、限制速率的规则。如
tcp flags & (fin|psh|urg) == (fin|psh|urg) drop
tcp flags & (syn|fin) == (syn|fin) drop
tcp flags syn ct state new
meter syn_limit_v4 { ip saddr timeout 1m limit rate over 120/second burst 200
add @blocklist_v4 { ip saddr } drop
密钥+高位