Warp与Tor共存
先搭建好Tor,方法点此。
申请 Warp 账户
- 下载 wgcf
- wget https://github.com/ViRb3/wgcf/releases/download/v2.2.15/wgcf\_2.2.15\_linux\_amd64 -O wgcf && chmod +x wgcf
- ./wgcf register
- ./wgcf generate 拷贝内容如下:
1 |
|
Warp与Tor自动切换
1 |
|
1 |
|
- mkdir -p ~/app/socks5 && cd ~/app/socks5 && nano docker-compose.yml
- mkdir ./config
- nano ./config/config.json
- sudo docker-compose up -d && sudo docker-compose logs
测试warp
- docker run –rm –net=sswitch alpine/curl http://myip.ipip.net
- docker run –rm –net=sswitch alpine/curl –socks5 socks5:5353 http://myip.ipip.net
- docker run –rm –net=sswitch alpine/curl –socks5 socks5:5353 https://api.ipify.org/?format=json
测试tor
- docker run –rm –net=sswitch alpine/curl –socks5-hostname “tor:9050” “https://check.torproject.org/api/ip“
- docker run –rm –net=sswitch alpine/curl –socks5-hostname “socks5:5353” “https://check.torproject.org/api/ip“
- docker run –rm –net=sswitch alpine/curl –socks5-hostname “tor:9050” “https://www.nytimesn7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd.onion“
- docker run –rm –net=sswitch alpine/curl –socks5-hostname “socks5:5353” “https://www.nytimesn7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd.onion“
Warp与Tor共存
https://b.limour.top/2151.html