Debian11 服务器禁用IPv6
发表于|VPS
|总字数:46|阅读时长:1分钟
1、编辑/etc/sysctl.conf文件
1 | sudo nano /etc/sysctl.conf |
在文件末尾添加:
1 | net.ipv6.conf.all.disable_ipv6 = 1 |
保存文件后执行:
1 | sudo sysctl -p |
或
1 | sysctl -p |
文章作者: lcsoul
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 畅想生活!
相关推荐
2025-08-26
VPS常用命令及脚本
自动同步校正系统时间12apt install systemd-timesyncdtimedatectl set-ntp true 设置时区为北京时间1timedatectl set-timezone Asia/Shanghai BBR调参脚本1wget http://sh.xdmb.xyz/tcp.sh && bash tcp.sh 一个精简的 Linux TCP/IP & BBR 参数智能优化脚本1bash <(curl -sL https://raw.githubusercontent.com/yahuisme/network-optimization/main/script.sh) 详情访问: https://github.com/yahuisme/network-optimization 科技lion脚本工具箱1bash <(curl -sL kejilion.sh) 双栈服务器 如果V6有问题 可以使用V4访问 1bash <(curl -sL --ipv4 kejilion.sh) 详情访问h...
2025-08-16
Debian使用ntp同步时间
123apt-get updateapt-get install ntpdatentpdate ntp1.aliyun.com
2020-11-03
玩客云Armbian之安装OMV
1、修改时区 1ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo “Asia/Shanghai” > /etc/timezone 2、修改源 1vim /etc/apt/sources.list 1deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main non-free contrib deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main non-free contrib deb-src ht...
2020-11-12
zerotier搭建moon
安装1curl -s https://install.zerotier.com sudo bash 进入zerotier目录123cd /var/lib/zerotier-onezerotier-idtool initmoon identity.public >>moon.json 操作后会生产moon.json文件、修改moon.json(记住配置中的id) “stableEndpoints”: [] 修改这个配置服务器没有IPv6修改成: “stableEndpoints”: [ “1.2.3.4/9993” ]有IPv6:”stableEndpoints”: [ “1.2.3.4/9993”,”2001:abcd:abcd::1/9993” ]上面的IP请换成服务器的公网IP 完成上面步骤后生成验签1zerotier-idtool genmoon moon.json 会生成类似000000xxxxxxxxxx.moon的文件 在ZeroTier 目录中建立子文件夹 moons.d 并将上面生成的000000xxxxxxxxx...
2025-12-25
Debian11升级Debian12
先更新系统包到最新 123apt updateapt full-upgradeapt --purge autoremove 重启系统 1reboot 更新 sources.list 1cp -v /etc/apt/sources.list /opt/sources.list-bakup-debian11 更新debian12包数据 1apt update 升级Debian12 1apt full-upgrade 按需选择然后重启 1reboot 重启后验证 1lsb_release -a 1cat /etc/os-release 确认升级无误后删除旧包 1apt --purge autoremove
2020-11-01
[转载]迅雷下载宝定制固件(Luci+NFS+PT+Aria2+FTP+Ngrok+远程挂载NAS或硬盘)
迅雷下载宝官方固件因追求稳定而不开放ssh和telnet。为了进一步挖潜下载宝性能,在保留官方百分之百功能的基础上,定制了下载宝固件,仅供广大高清爱好者学习研究,若有违官方政策,请自觉删除!为了稳定起见,本固件只基于官方手机APP正式推送的版本进行定制,例如191、192版。【2017年10月12日复活版】鉴于下载宝官方开始更新固件,且各位网友极力更新定制固件,本人决定继续更新维护下载宝的定制固件版本,供大伙研究使用。因本人下载宝已出,在此要特别感谢@tonymoses朋友提供远程调试环境,并极其耐心地协助做好测试工作!复活版之后的持续更新版本原则上只是更新官方基础固件,定制功能不再做扩展,当然有些必要的更新视情况会做的。171012复活版1、基于官方338固件进行扩展和定制。2、功能与170508终极版相同。3、因有人反映Transmission的web界面有bug,故更新到最新的WEB Control: 1.1 Beta(20170606)。注:再次强调从318版开始,luci访问已恢复默认80端口。【2017年5月8日终极版】鉴于下载宝官方论坛自2017年2月9日之后再无任...
公告
2025-12-31 Wordpress迁移到Hexo
