Giter Site home page Giter Site logo

Comments (5)

fscarmen avatar fscarmen commented on July 22, 2024

我这里是可以的哦

root@osaka2:~# curl ip.sb --proxy socks5://172.17.0.2:40000; echo ""
2a09:bac1:3b00:b8::1c7:29

root@osaka2:~# curl -4 ip.sb --proxy socks5://172.17.0.2:40000; echo ""
104.28.206.113

root@osaka2:~# curl -4 ifconfig.co --proxy socks5://172.17.0.2:40000; echo ""
104.28.206.113

root@osaka2:~# docker exec -it wgcf curl -4 ifconfig.co
104.28.206.113

from warp_unlock.

hugodotlau avatar hugodotlau commented on July 22, 2024

感谢回复 @fscarmen 我也不知道该如何排查和定位这个问题, 登录到容器里看到 status.log 是 no 不知道代表什么?

> docker exec -it wgcf /bin/bash

> 28746c653377:/unlock# ls -l
total 13268
-rwxr-xr-x    1 root     root      13578240 Jan 20 13:47 gost
-rwxr-xr-x    1 root     root            61 Mar 26 17:55 run.sh
-rw-r--r--    1 root     root             8 Mar 29 10:15 status.log

> 28746c653377:/unlock# cat status.log
No 😰

> 28746c653377:/unlock# ps -ef
PID   USER     TIME  COMMAND
    1 root      0:00 bash ./run.sh
   18 root      0:00 crond
   19 root      0:00 ./gost -L :40000
   24 root      0:00 bash /etc/wireguard/warp_unlock.sh
 1048 root      0:00 /bin/bash
 1518 root      0:00 sleep 5
 1519 root      0:00 ps -ef

我的操作系统相关信息:

> cat /etc/centos-release
CentOS Linux release 8.2.2004 (Core)

> docker version
Client: Docker Engine - Community
 Version:           19.03.15
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        99e3ed8919
 Built:             Sat Jan 30 03:16:44 2021
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.15
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       99e3ed8919
  Built:            Sat Jan 30 03:15:19 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.11
  GitCommit:        3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

from warp_unlock.

fscarmen avatar fscarmen commented on July 22, 2024

感谢回复 @fscarmen 我也不知道该如何排查和定位这个问题, 登录到容器里看到 status.log 是 no 不知道代表什么?

No 代理当前的 IP 没有解锁。你可以这样看看有没有换到 IP

docker exec -it wgcf bash  # 进入容器

ss -nltp  # 看看有没有暴露 40000 端口,以说明 gost 正在工作

while true; do curl -s4m5 ip.gs; echo ""; sleep 10; done  # 每10秒查一次当前的 IP ,以判断是否有更换到

from warp_unlock.

hugodotlau avatar hugodotlau commented on July 22, 2024

感谢回复 @fscarmen 我在上一个回复中贴过我的设备启动着 40000 端口

28746c653377:/unlock# ps -ef
PID   USER     TIME  COMMAND
    1 root      0:00 bash ./run.sh
   18 root      0:00 crond
   19 root      0:00 ./gost -L :40000

通过 ss 工具的测试如下:

28746c653377:/unlock# ss -nlpt
State   Recv-Q  Send-Q   Local Address:Port    Peer Address:Port  Process
LISTEN  0       128                  *:40000              *:*      users:(("gost",pid=19,fd=6))

28746c653377:/unlock# while true; do curl -s4m5 ip.gs; echo ""; sleep 10; done
43.x.x.x

我对 linux 还是有一点了解,大概了阅读了运行脚本 /etc/wireguard/warp_unlock.sh ,应该是通过 wireguard 建立一个 vpn,我手动运行了这个 vpn 的建立,发现报错。

28746c653377:/etc/wireguard# wg-quick up wgcf
[#] ip link add wgcf type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev wgcf
Cannot find device "wgcf"

我也确认 wireguard 已经在容器内被安装(installed 部分)

28746c653377:/etc/wireguard# apk list |grep wireguard |grep installed
wireguard-tools-1.0.20210914-r1 x86_64 {wireguard-tools} (GPL-2.0-only) [installed]
wireguard-tools-wg-quick-1.0.20210914-r1 x86_64 {wireguard-tools} (GPL-2.0-only) [installed]
wireguard-tools-wg-1.0.20210914-r1 x86_64 {wireguard-tools} (GPL-2.0-only) [installed]

from warp_unlock.

fscarmen avatar fscarmen commented on July 22, 2024

哦,我想起来了,有可能是你的宿主机都安装不了 wgcf ,导致容器也不行,你先在宿主机安装 wgcf 的脚本,看是否成功

你进 docker 看看 wgcf 是否有起来,看看有没有 wgcf 的网络接口

docker exec -it wgcf ip a

from warp_unlock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.