Replies: 1 comment
-
|
I am trying to do the same thing. Were you able to resolve this? If so, can you share how? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey - merry Christmas!
I'm trying to set up a systemwide proxy on Linux to reroute all traffic to a SOCKS5 proxy (with authentication) as an alternative to using
proxychains-ng. I've tried two approaches to no avail, and was wondering if you could provide some guidance:I tried following your Docker Compose example (https://github.com/xjasonlyu/tun2socks/wiki/Use-docker-compose). Using the exact same docker compose file with default settings and setting
PROXY=socks5://<username>:<password>@<proxy_ip>:12324(where I've omitted the username, password, and proxy IP), the output says[STACK] tun://tun0 <-> socks5://<proxy_ip>:12324. However, traffic doesn't seem to go through properly. For example, if I try and runapk install curl, I get the error message:A second approach I tried was just spinning up an Ubuntu container (via
sudo docker run -ti --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun ubuntu:latest) and following the commands in this example (https://github.com/xjasonlyu/tun2socks/wiki/Examples). I tried running the following commands in the Docker container (which essentially follow the Linux example in the wiki):Upon running something like
apt-get update, which requires connecting to a server, I get the following tun2socks error:Do you have any guidance on how to go about just redirecting all traffic through a SOCKS5 proxy (that I can confirm by curl'ing some site that prints the public IPv4 address, which should match the proxy IP, for example)? I'm pretty new to networking, so I apologize if this is a simple thing.
Beta Was this translation helpful? Give feedback.
All reactions