Hello New World

  • 将apt源更换为清华大学源(国内源)
  • 使用IPv6代理访问Github
  • 在VNC上进行复制粘贴
  • socat转发快速参考
  • 国内机安装 socat
  • 国内机测试转发
  • 启动服务
  • 需要注意什么?
  • 相关内容
  • 首页
  • VPS测评
  • VPS优惠
  • 实用教程
  • 项目推荐
  • 随笔记录
  • 杂七杂八
  • Telegram频道
  • 常用工具
    • Smokeping
    • WHOIS查询
    • 网盘搜索
  • 文章归档
  • 榜上有名
  • 友情链接

Cloudflare DigitalVirt Docker GCP Google IDC.WIKI IPV6 IPV6 only Linux Oracle Tototel v.ps Virmach wawo 免费VPS 台湾VPS 喵云 微基主机 新加坡VPS 日本VPS 欧洲VPS 流媒体解锁 甲骨文 美国VPS 香港VPS

WAP.AC CN LXC 食用指南

  • Hello World
  • 2024-05-07
  • 0
将apt源更换为清华大学源(国内源)

这款产品屏蔽了中国方向出和国际方向入,所以正常使用自带的debian镜像源是没问题的。只要你能忍受他的速度
如果你不能忍受,可以使用清华大学源(在白名单)
以Debian11为例,一键命令

echo "# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
" >/etc/apt/sources.list

其他Debian版本去清华大学镜像站找 https://mirrors.tuna.tsinghua.edu.cn/help/debian/
当然Ubuntu版本也有 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

使用IPv6代理访问Github
cat >> /etc/hosts << EOF
# https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
EOF
在VNC上进行复制粘贴

在控制台找到这个: Xterm.js Console 使用他就可以进行复制粘贴了。

现在可以升级和安装软件了

socat转发快速参考

香港端 sing-box 入站设置参考

  • 考虑到备案检测等不稳定隐私,不建议进行 TLS 转发
  • 不建议在国内存储审计日志
  • 不建议在国内对公网开放面板 HTTP 访问
{
  "inbounds": [
        {
            "type": "shadowsocks",
            "tag": "inbound-shadowsocks",
            "listen": "::",
            "listen_port": 3775,
            "sniff": true,
            "sniff_override_destination": true,
            "method": "2022-blake3-aes-256-gcm",
            "password": "使用 ./sing-box generate rand --base64 32 生成",
             # 强烈建议开启 Multiplex 和 Padding 并使用 sing-box 客户端
            "multiplex": {
                # 强烈建议开启 Multiplex 和 Padding 并使用 sing-box 客户端
                "enabled": true,
                "padding": true
            }
        }
  ]
}
国内机安装 socat
apt update && apt install -y socat
国内机测试转发
/usr/bin/socat TCP6-LISTEN:3775,fork,reuseaddr TCP6:[你的香港IPv6地址]:3775

systemd 服务参考配置文件
编辑命令: nano /etc/systemd/system/socat.service

[Unit]
Description=Internet Freedom

[Service]
DynamicUser=true
ProtectSystem=true
ProtectHome=true
ExecStart=/usr/bin/socat TCP6-LISTEN:3775,fork,reuseaddr TCP6:[你的香港IPv6地址]:3775
Restart=always

[Install]
WantedBy=multi-user.target
启动服务
systemctl enable socat.service
systemctl start socat.service
systemctl status socat.service

输出 "Active: active (running)" 表明 socat 已正常运行

需要注意什么?

只有IPv6,使用起来可能会很多麻烦。共享带宽,实际带宽质量可能并不能达到期望值

相关内容
  1. 甲骨文云服务器Oracle Cloud 分配并启用 IPv6 地址教程
  2. 哪吒面板 V1 绑定 Github oauth2 登录
  3. Watchtower – 自动更新 Docker 镜像与容器
  4. MacOS下绝佳的Linux虚拟工具 – Lima
  5. 2025 年甲骨文 Oracle Cloud Shell AMD/ARM 救砖教程(netboot 方法)
© 2025 Hello New World
Theme by Wing
  • {{ item.name }}
  • {{ item.name }}