Debian11 VPS ipv4/ipv6连接优化


    1、重置为debian11
    重置好执行以下步骤:文章源自技术奇点-https://www.xerer.com/archives/33352.html

    apt update
    apt full-upgrade -y
    

    2、优化系统参数文章源自技术奇点-https://www.xerer.com/archives/33352.html

    nano /etc/sysctl.conf
    

    删光,按下面的写入文章源自技术奇点-https://www.xerer.com/archives/33352.html

    net.ipv4.neigh.default.base_reachable_time_ms = 600000
    net.ipv4.neigh.default.mcast_solicit = 20
    net.ipv4.neigh.default.retrans_time_ms = 250
    net.ipv4.conf.all.rp_filter=0
    net.ipv4.conf.eth0.rp_filter=0
    

    这里要先ifconfig看下你自己网卡的名称,不一定是eth0,按实际修改。文章源自技术奇点-https://www.xerer.com/archives/33352.html

    net.core.default_qdisc=fq
    net.ipv4.tcp_congestion_control=bbr
    net.ipv4.tcp_fastopen=3
    

    写入存盘后,运行 sysctl -p生效文章源自技术奇点-https://www.xerer.com/archives/33352.html

    3、安装mack-a大佬的八合一脚本,推荐任意组合安装选4;文章源自技术奇点-https://www.xerer.com/archives/33352.html

    正常情况这里就结束了,需要warp避免跳验证的接着往下看文章源自技术奇点-https://www.xerer.com/archives/33352.html

    4、安装warp,运行文章源自技术奇点-https://www.xerer.com/archives/33352.html

    bash <(curl -fsSL git.io/warp.sh) menu
    

    选4,安装ipv6;文章源自技术奇点-https://www.xerer.com/archives/33352.html

    Debian11 VPS  ipv4/ipv6连接优化文章源自技术奇点-https://www.xerer.com/archives/33352.html

    5、修改outbound文章源自技术奇点-https://www.xerer.com/archives/33352.html

    第4步完成以后
    nano /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json文章源自技术奇点-https://www.xerer.com/archives/33352.html

    把此文件内所有ipv4和ipv6互调,写入存盘;文章源自技术奇点-https://www.xerer.com/archives/33352.html

     文章源自技术奇点-https://www.xerer.com/archives/33352.html

    6、重启VPS,重启后谷歌搜索myip地址是否为ipv6,及看下是否已经不跳验证,油管测速;文章源自技术奇点-https://www.xerer.com/archives/33352.html

    文章源自技术奇点-https://www.xerer.com/archives/33352.html
    weinxin
    微信公众号
    扫码关注公众号获取资源下载及吃瓜爆料

    发表评论

    匿名网友