pproxy

Personal Proxy

GitHub Blog

Solutions I am using now

ByWave.io and okme.xyz is used on my MacBooks and linux servers, but ByWave.io is faster and more available than okme.xyz, yeah it’s also more expensive.

And PandaVPN is usually used on my mobile devices, such as Android or iPhone. Of course, it will be used on my MacBook if ByWave.io and okme.xyz do not work, because PandaVPN is always available.

Todo

Proxy Configuration

http://127.0.0.1:7890 is your local proxy address.

Tools

# CentOS 7
sudo yum install -y telnet

telnet ip port

Git Proxy

Proxy via http/https config

Config with follow commands:

git config --global http.proxy 'http://127.0.0.1:7890'
git config --global https.proxy 'http://127.0.0.1:7890'

Or write the Git config file directly, the Git config file is ~/.gitconfig and follow is the http/https proxy config:

[http]
        proxy = http://127.0.0.1:7890
[https]
        proxy = http://127.0.0.1:7890

Proxy via SSH config

Install nc command firstly:

# CentOS 7
sudo yum install -y nc

Write ssh config file:

vi ~/.ssh/config

Add follow content:

Host github
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_rsa
    ProxyCommand nc -v -x 127.0.0.1:7890 %h %p

Terminal Proxy

Put follow content into your bash profile, such as ~/.bashrc or ~/.zshrc if you are using Oh-My-Zsh, too.

# export http_proxy=http://127.0.0.1:1083 https_proxy=http://127.0.0.1:1083 all_proxy=socks5://127.0.0.1:1082

# Proxy with https://github.com/Dreamacro/clash
#
# About `no_proxy`: https://unix.stackexchange.com/questions/23452/set-a-network-range-in-the-no-proxy-environment-variable
addr="127.0.0.1:7890"
http="http://"
socks5="socks5://"
alias proxy='export https_proxy="${http}${addr}" \
http_proxy="${http}${addr}" \
ftp_proxy="${http}${addr}" \
rsync_proxy="${http}${addr}" \
all_proxy="${socks5}${addr}" \
no_proxy="127.0.0.1,localhost,192.168.8.152,192.168.8.154,192.168.8.155"'
alias unproxy='unset https_proxy http_proxy ftp_proxy rsync_proxy all_proxy no_proxy'

Then apply it and enable or disable the proxy in terminal:

# Apply changes
source ~/.zshrc # Or source ~/.bashrc

# Enable proxy
proxy

# Disable proxy
unproxy

VSCode Proxy

VSCode -> settings -> Proxy

Domains under GoDaddy

pproxy.net domain’s DNS has been set to AliDNS:

ns1.alidns.com
ns2.alidns.com

Notice

V2ray server

Must set inbounds.listen with 0.0.0.0 if you are using v2ray server inside a container.

Thanks