Eagle233-Blog

[Server] 京东云服务器反代


Categories Server
Tags

133 Words   |   1 Minutes

Clash 内核端口

  • 混合端口 20660
  • Socks 端口 49815
  • Http 端口 14324

/Users/eagle233/.ssh/config in macOS

Host Eagle233-JDCloud
    HostName eagle233.top
    User eagle233
    IdentityFile ~/.ssh/id_rsa.pem
    IdentitiesOnly yes
    RemoteForward 7890 127.0.0.1:20660

/home/eagle233/.bashrc in SSH

# SSH Proxy
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7890"
echo "Terminal proxy enabled via SSH Tunnel (127.0.0.1:7890)"

/etc/apt/apt.conf.d/99proxy in SSH

Acquire::http::Proxy "http://127.0.0.1:7890/";
Acquire::https::Proxy "http://127.0.0.1:7890/";
# 排除京东云内网源,直接连接
Acquire::http::Proxy::mirrors.jdcloudcs.com "DIRECT";

Page views: Loading...  ·  Visitors: Loading...
Except where otherwise noted, original content on this site is dedicated to the public domain under CC0 1.0.
Powered by Hexo & Theme mdsuper
沪ICP备2026040813号
Search