原文链接: https://sanzo.top/Default/jump-the-wall/
V2ray
服务端
# 一键安装脚本bash <(curl -s -L https://git.io/v2ray.sh)
客户端
Android,linux,macOS 安装包:https://github.com/v2fly/v2ray-core/releases
v2ray客户端配置文件:https://github.com/Sanzo00/files/blob/master/other/v2ray.json
linux端下载v2ray安装包之后,可以选择安装到本地或者直接运行可执行文件。
安装到本地
wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh# 自动选择安装包sudo bash install-release.sh# 指定安装包sudo bash install-release.sh --local ./v2ray-linux-64.zip# 将配置文件拷贝到 /usr/local/etc/v2ray/config.json
直接运行可执行文件
nohup ./v2ray run config.json > v2ray.log 2>&1 &
代理设置
终端代理
export ALL_PROXY="socks5://127.0.0.1:10800"export all_proxy="socks5://127.0.0.1:10800"export http_proxy="http://127.0.0.1:10801"export https_proxy="https://127.0.0.1:10801"
git代理
对http和https代理
# http and httpsgit config --global http.proxy http://127.0.0.1:10801git config --global https.proxy https://127.0.0.1:10801# socks5git config --global http.proxy socks5://127.0.0.1:10800git config --global https.proxy socks5://127.0.0.1:10800# unsetgit config --global --unset http.proxygit config --global --unset https.proxy
对ssh代理:
sudo apt install connect-proxyvim ~/.ssh/config# socks5Host github.comUser gitProxyCommand connect -S 127.0.0.1:10800 %h %p# http || httpsHost github.comUser gitProxyCommand connect -H 127.0.0.1:10801 %h %p
本文转自: https://sanzo.top/Default/jump-the-wall/
本站仅做收录,版权归原作者所有。