OS command proxy based on phone

OS command proxy based on phone

Aoi Komiya Lv3

在配置arch的时候,由于代理问题拉不下aur,灵机一动想着走手机代理,故有此文。

使用场景: 移动端代理PC端流量实现,手机带电脑翻墙

移动端:安装EveryProxy

PC端(Linux):

命令行配置脚本即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vim ~/.bashrc

proxy(){
export http_proxy="http://ip:port"
export http_proxy="https://ip:port"
export sock5_proxy="http://ip:port"
echo "Proxy On!"
}

noproxy(){
export http_proxy="http://ip:port"
export http_proxy="https://ip:port"
export sock5_proxy="http://ip:port"
echo "Proxy Off!"
}

检查流量出口是否为海外VPS

1
curl cip.cc

其他活着的检测IP的网址(从cv的)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
curl ip.gs
curl -4 ip.gs
curl -6 ip.gs
curl ip.sb
curl -4 ip.sb
curl -6 ip.sb
curl cip.cc
curl -4 cip.cc
curl icanhazip.com
curl -4 icanhazip.com
curl -6 icanhazip.com
curl api.ipify.org
curl -4 api.ipify.org
curl bot.whatismyipaddress.com
curl -4 bot.whatismyipaddress.com
curl -6 bot.whatismyipaddress.com
curl ipinfo.io/ip
curl -4 ipinfo.io/ip
curl ipecho.net/plain
curl -4 ipecho.net/plain
curl ipinfo.io
curl -4 ipinfo.io
curl -4 myip.ipip.net
curl -4 ifconfig.me
curl -4 http://members.3322.org/dyndns/getip

curl ifconfig.me
curl icanhazip.com
curl curlmyip.com
curl ip.appspot.com
curl ipinfo.io/ip
curl ipecho.net/plain
curl www.trackip.net/i


#补充
curl ip.sb
curl ip.6655.com/ip.aspx
curl whatismyip.akamai.com
wget -qO - ifconfig.co
dig +short myip.opendns.com @resolver1.opendns.com
curl ident.me
curl v4.ident.me
curl v6.ident.me
curl inet-ip.info

#返回IP和地区
curl ip.6655.com/ip.aspx?area=1
curl 1111.ip138.com/ic.asp
curl ip.cn
curl cip.cc

  • Title: OS command proxy based on phone
  • Author: Aoi Komiya
  • Created at: 2024-07-19 10:22:00
  • Updated at: 2024-09-25 15:07:32
  • Link: https://blog.komiya.monster/2024/07/19/命令行代理配置小技巧/
  • License: This work is licensed under CC BY-NC-SA 4.0.