<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>leonseason (leonseason)</title>
    <link>https://pixman.io/leonseason</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>分享 VPS TCP 调优 </title>
      <description>&lt;pre class="highlight plaintext"&gt;&lt;code&gt;实例用的是凤凰城G口VPS，安装iperf3并运行 iperf3 -s -D
#编辑/etc/sysctl.conf
nano /etc/sysctl.conf
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#TCP调优
net.ipv4.tcp_rmem=4096 16384 9000000
net.ipv4.tcp_wmem=4096 87380 9000000
#关闭IPV6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
#开启BBR
net.ipv4.tcp_congestion_control=bbr
net.core.default_qdisc=fq

&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#执行即时生效
sysctl -p
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;客户端执行iperf3 -c www.vpsip.com -R
当使用
net.ipv4.tcp_rmem=4096 16384 7000000
net.ipv4.tcp_wmem=4096 87380 7000000
iperf3 380Mbps Retr 0丢包
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;当使用
net.ipv4.tcp_rmem=4096 16384 13000000
net.ipv4.tcp_wmem=4096 87380 13000000
iperf3 680Mbps Retr 800+丢包
&lt;/code&gt;&lt;/pre&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;当使用
net.ipv4.tcp_rmem=4096 16384 10000000
net.ipv4.tcp_wmem=4096 87380 10000000
iperf3 580Mbps Retr 0丢包
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;TCP 调优可优化单线程速率，稳定 Retr 数据包重发概率&lt;/p&gt;

&lt;p&gt;在华为新加坡/甲骨文某些线路有奇效&lt;/p&gt;

&lt;p&gt;我看很少帖子分享这方面信息。可能不是最优解 大家可以一起讨论&lt;/p&gt;</description>
      <author>leonseason</author>
      <pubDate>Wed, 04 Dec 2024 11:09:07 +0800</pubDate>
      <link>https://pixman.io/topics/204</link>
      <guid>https://pixman.io/topics/204</guid>
    </item>
    <item>
      <title>Caddy https 反代 o11 推流</title>
      <description>&lt;p&gt;o11 https 推流晚高峰体验好，还可以防止 fofa 爬虫&lt;/p&gt;

&lt;p&gt;#o11 范例 docker run -itd --name=o11 --restart=always -p 8080:1234 wechatofficial/o11:latest&lt;/p&gt;

&lt;p&gt;Caddy 一键安装&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh &amp;amp;&amp;amp; chmod +x caddy_install.sh &amp;amp;&amp;amp; bash caddy_install.sh
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Caddyfile 配置文件  /usr/local/caddy/Caddyfile&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;www你的域名.com:8443 {
#有证书可去掉注释tls /home/cert/fullchain.cer /home/cert/key.key
    reverse_proxy 127.0.0.1:8080
}
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>leonseason</author>
      <pubDate>Sat, 16 Nov 2024 13:34:51 +0800</pubDate>
      <link>https://pixman.io/topics/193</link>
      <guid>https://pixman.io/topics/193</guid>
    </item>
  </channel>
</rss>
