Run TraffMonetizer with static proxies
TraffMonetizer pays for the traffic your devices carry, in USDT, and has no limit on devices per account. It has no proxy setting, so each static IP gets a small pair of Docker containers: a tun2socks container that sends all traffic through the proxy, and a TraffMonetizer container that uses its network.
| Works with | Static residential and datacenter IPs |
| Proxy type | SOCKS5 (our proxies support it on port 1337, including UDP) |
| Runs on | Docker on Linux: a VPS, a dedicated server or a home machine |
| Per IP | One tun2socks container and one traffmonetizer/cli_v2 container |
1. Sign up and copy your token
Create an account at traffmonetizer.io. Your token is shown in the dashboard. Keep it private: anyone with it can add devices to your account.
2. What you need
- Docker on Linux. tun2socks needs the
/dev/net/tundevice and theNET_ADMINcapability. Most VPS providers support both. The TraffMonetizer Windows app has no proxy setting, so it can't use your static IPs. - Your proxy list. In your dashboard, open Static proxies, open the order, click Download .txt and save it as
proxies.txt. Each line isIP:port:username:password.
3. Run one IP
Start the tunnel for the first proxy. Put your proxy's IP, username and password in the PROXY URL:
docker run -d --name tun1 --restart unless-stopped \ --cap-add NET_ADMIN --device /dev/net/tun \ --sysctl net.ipv6.conf.all.disable_ipv6=1 --sysctl net.ipv6.conf.default.disable_ipv6=1 \ --dns 1.1.1.1 --dns 8.8.8.8 \ -e PROXY=socks5://username:[email protected]:1337 \ xjasonlyu/tun2socks:v2.7.0
Then start TraffMonetizer on that container's network. Put in your token:
docker run -d --name tm1 --restart unless-stopped --network container:tun1 \ -e HOME=/var/lib/tm -v tm1:/var/lib/tm \ traffmonetizer/cli_v2:latest --token YOUR_TOKEN --device-name proxy1 start accept
--network container:tun1sends all of TraffMonetizer's traffic, DNS included, through the proxy.-v tm1:/var/lib/tmkeeps the device's identity. Recreatetm1with the same volume and it stays the same device.- IPv6 is turned off in the tunnel so nothing leaves outside the proxy.
- On ARM (Raspberry Pi, ARM VPS), use
traffmonetizer/cli_v2:arm64v8ortraffmonetizer/cli_v2:arm32v7instead oflatest.
4. Check the exit IP
This should print the static IP, not your server's IP:
docker run --rm --network container:tun1 curlimages/curl -s https://ifconfig.me
Then check TraffMonetizer itself with docker logs -f tm1. Within a few minutes the device shows in your TraffMonetizer dashboard as proxy1.
5. Run every IP in your list
Save this as start-tm.sh next to proxies.txt, put in your token, and run sh start-tm.sh. It starts one pair for each line, named tun1/tm1, tun2/tm2 and so on:
TOKEN=YOUR_TOKEN
n=0
while IFS=: read -r ip port user pass; do
[ -z "$ip" ] && continue
n=$((n+1))
pass=$(printf '%s' "$pass" | tr -d '\r')
docker run -d --name "tun$n" --restart unless-stopped \
--cap-add NET_ADMIN --device /dev/net/tun \
--sysctl net.ipv6.conf.all.disable_ipv6=1 --sysctl net.ipv6.conf.default.disable_ipv6=1 \
--dns 1.1.1.1 --dns 8.8.8.8 \
-e PROXY="socks5://$user:$pass@$ip:$port" \
xjasonlyu/tun2socks:v2.7.0
docker run -d --name "tm$n" --restart unless-stopped --network "container:tun$n" \
-e HOME=/var/lib/tm -v "tm$n:/var/lib/tm" \
traffmonetizer/cli_v2:latest --token "$TOKEN" --device-name "proxy$n" start accept
done < proxies.txt
Run it once. Running it again fails on the names that already exist, which is harmless.
Changing an IP
After a swap, only the IP changes: your username and password stay the same. Recreate that IP's tunnel with the new address, then restart its TraffMonetizer container so it reconnects:
docker rm -f tun1 docker run -d --name tun1 ... # the same command as before, with the new IP docker rm -f tm1 docker run -d --name tm1 ... # the same command as before
If TraffMonetizer rejects an IP, swap it during your order's swap window and choose TraffMonetizer as the app that rejected it.
Updates
TraffMonetizer recommends keeping the agent updated. To update by hand, pull the new image and recreate each tm container with the same command and volume:
docker pull traffmonetizer/cli_v2:latest docker rm -f tm1 docker run -d --name tm1 ... # the same command as before
Remove a pair
docker rm -f tm1 tun1 && docker volume rm tm1
Then remove the device from your TraffMonetizer dashboard. Want more places to use your IPs? See Where to use static proxies, or set up URnetwork on the same IPs.
TraffMonetizer is a trademark of its owner. IdlePay isn't affiliated with it. Check TraffMonetizer's terms before you use proxies with it.