Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want the host to use the warp network of wgcf-docker #5

Open
deixl opened this issue Feb 15, 2023 · 1 comment
Open

I want the host to use the warp network of wgcf-docker #5

deixl opened this issue Feb 15, 2023 · 1 comment

Comments

@deixl
Copy link

deixl commented Feb 15, 2023

Hello, I am a novice. I want the host to use the warp network of wgcf-docker, such as curl -x socks5://127.0.0.1:1080 https://www.cloudflare.com/cdn-cgi/trace, How should I do it, please give me an example, thanks

After I successfully run the following command, I don't know how to allow the host to use socks5 to access the network of wgcf-docker
docker run --rm -it
--name wgcf
--sysctl net.ipv6.conf.all.disable_ipv6=0
--privileged --cap-add net_admin
-v /lib/modules:/lib/modules
-v $(pwd)/wgcf:/wgcf
neilpang/wgcf-docker
I tried adding a -p 1080:1080, but I still can't use the wgcf-docker network
docker run --rm -it
--name wgcf
--sysctl net.ipv6.conf.all.disable_ipv6=0
--privileged --cap-add net_admin
-v /lib/modules:/lib/modules
-v $(pwd)/wgcf:/wgcf
-p 1080:1080
neilpang/wgcf-docker

@deixl deixl closed this as completed Feb 17, 2023
@deixl deixl reopened this Feb 18, 2023
@lautumn1990
Copy link

try this wgcf-socks-docker project and run with docker compose

# use root
git clone https://github.com/lautumn1990/wgcf-socks-docker
cd wgcf-socks-docker

docker-compose up -d

# check and test
curl --proxy socks5h://127.0.0.1:1080 https://www.cloudflare.com/cdn-cgi/trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants