Closed JeevansSP closed 1 year ago
tun2socks needs a tun
interface in order to pass the traffic , i don't know if it's possible to create a tun
on each instance and start tun2socks and pass the traffic.
this is configuration for running tun2socks in Linux :
sudo ip tuntap add mode tun dev tun0
sudo ip addr add 192.162.10.1 dev tun0
sudo ip link set dev tun0 up
sudo ip route add default via 192.162.10.1 metric 1
sudo ip route add `PROXY_IP` via `DefaultGatewayIP` metric 1
./tun2socks-linux-amd64 -device tun://tun0 -tcp-auto-tuning -proxy socks5://127.0.0.1:1080
Also take a look at wiki.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
So im planning to host a bot, and scale it up , only issue is i need to make sure each instance of the bot seems like its coming from a different proxy(i have enough proxy ips for this) i was gonna use redsocks, but i heard this is better so i want to use this, only issue is idk how to, i want to pass all the outgoing traffic from the bot instance through the socks5 ip i specify (user:pass:proxy_ip:port), my plan is run x number of pods and in each pod have one instance of tun2socks and one instance of the bot , ( i have the docker image of the bot),
can someone suggest how can i go about this?