https://nat64.net/public-providers
https://nat64.xyz/
预先准备
centos:yum install ca-certificates wget -y && update-ca-trust force-enable debian/ubuntu:apt-get install ca-certificates wget -y && update-ca-certificates
不卸载内核版本 ——- tcp.sh停止维护,请使用tcpx.sh
wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
提示:设置BBR和网络优化已经分开,需要各走一遍。即20和32都需要运行一遍,不分先后。
锐速/bbr/bbrplus 对应的版本:
跟随github地址为 https://github.com/ylx2016/kernel/releases
bbrplus新版源 https://github.com/UJX6N
搬瓦工在线库存查询 https://bwg.ylx.me/
BBR
centos …
#!/bin/bash
# =================配置区域=================
# 证书源目录的基础路径 (脚本会自动追加 IPv4 地址)
# 最终寻找路径例如: /etc/ssl/ip/1.2.3.4/fullchain.pem
SOURCE_BASE_DIR="/etc/ssl/ip"
# 距离到期还剩多少天时进行替换 (默认 1 天)
EXPIRY_DAYS=1
# 日志文件路径
LOG_FILE="/var/log/panel_ssl_update.log"
# =================配置结束=================
# 颜色定义
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m'
# 日志函数
log() {
echo -e "$(date "+%Y-%m-%d %H:%M:%S") $1" …curl -fsSL https://get.docker.com | bash -s docker
在 Cloudflare Zero Trust 仪表板中,转到 Access -> Tunnels。
创建一个新隧道(例如,命名为secure-browser-tunnel)。
在“Configure”步骤中,您会看到一个“Install and run a connector”页面。
在右侧“Run as a Docker container”下,复制token。它看起来像这样:docker run cloudflare/cloudflared:latest tunnel –no-auto-update run –token
#!/bin/bash #================================================================================ # Certimate & Cloudflare Tunnel Management Script for Debian/Ubuntu # # Author: Gemini # Version: 2.0 (Final Fix - Re-added missing update_software function) # # This script provides a comprehensive toolkit to deploy, manage, update, # backup, and…
项目 https://github.com/ylx2016/ipset-fail2ban
apikey申请 https://www.abuseipdb.com/
带APIKEY的一键运行方案
curl -sSL https://github.com/ylx2016/ipset-fail2ban/raw/refs/heads/main/ipset-fail2ban.sh | bash -s "apikey" cn curl -sSL https://fastly.jsdelivr.net/gh/ylx2016/ipset-fail2ban@main/ipset-fail2ban.sh | bash -s "apikey"
不上报ipdb的一键方案
curl -sSL https://github.com/ylx2016/ipset-fail2ban/raw/refs/heads/main/ipset-fail2ban.sh | bash cn curl -sSL https://fastly.jsdelivr.net/gh/ylx2016/ipset-fail2ban@main/ipset-fail2ban.sh | bash
每小时自动执行
…
由浏览器插件Evernote Web Clipper触发404错误
引发waf封禁
相关为
/res/Soleil.woff2和/archives/%3Ca%20href= 404
加白过滤…
没事查看日志 看到有个ip被封禁但是ip很干净
拉出访问日志发现有多条访问
/icons/icon_zh_48.png
造成404 然后触发waf封禁
于是我搜索了下/icons/icon_zh_48.png 发现这是一个标签页的插件 wetab
这插件应该是会自动搜索设置主页上域名下的/icons/icon_zh_48.png
但是哪个网站会为了这插件去适配/icons/icon_zh_48.png,这图标路径和名字就很逆天
最后没办法在waf里面把这路径过滤了…
debian/ubuntu系列
#安装fail2ban apt update && apt install fail2ban rsyslog -y #配置 your-key改为你的abuseipdb apikey nano /etc/fail2ban/jail.local [DEFAULT] # 定义默认的 ban 和 unban 时间 bantime = 3600 # 1小时 findtime = 300 # 5分钟 maxretry = 2 ignoreip = 127.0.0.1/8 192.168.0.0/16 172.16.0.0/12…
更换源
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update
alpine lxc 开启ssh
apk add --no-cache openssh-server && cd /etc/ssh && ssh-keygen -A && rc-update add sshd boot && service sshd start时区
apk add alpine-conf && /sbin/setup-timezone -z Asia/Shanghai && apk…