分类 随手笔记 下的文章

编译参数增加 --with-http_v3_module

在nginx.conf启用reuseport

listen 80 default_server reuseport;
listen 443 ssl default_server reuseport;

在vhost中增加

listen 443 quic;
add_header Alt-Svc 'h3=":443"; ma=86400';

目前在用版本信息
nginx version: freenginx/1.27.4
built by gcc 12.2.0 (Debian 12.2.0-14)
built with OpenSSL 3.0.15 3 Sep 2024

防火墙放通UDP 443
HTTP3检测 https://http3check.net/
个人使用方案,仅作记录。

移动宽带,带IPTV,更换了HN8346X6公版界面光猫。

WAN配置
上网(路由,IPv4/IPv6,完全锥形NAT,VLAN ID 41,不绑定端口),
IPTV(桥接,PPPoE,VLAN ID为48,组播VLAN 900,绑定端口LAN2)。

安全配置-设备访问精确控制配置,添加SSH访问。

应用-组播配置,使能。

# 将服务加入开机自启动
systemctl enable Service_Name

# 禁止服务开机自启动
systemctl disable Service_Name

# 查看服务是否开机自启动
systemctl is-enabled Service_Name

# 查看所有开机自启动服务
systemctl list-unit-files --type service | grep 'enabled'

systemctl enable sshd          # 服务名
systemctl enable sshd.service  # 服务对应的unit文件

systemctl --force enable Service_Name