hi im using docker containers to connect to a user in a program and im using CLI key to connect
i connect the proxy and i saw the proxy connected i the container but when i connect to the program in the container with the CLI, when i open the program dashbord i see my real IP adress and not my proxy IP and i double and triple check too many times that all setup correctly
i just need an advice or a fix to this problem
at the end - i need to connect a container with proxy to my program spacificly with CLI key and in the the program in the dashboard tab i want to see that i connected with proxy IP insted my real IP.
mention: i check in the container app the proxy with this line code - curl ifconfig.me
and i got my proxy but with the CLI its not working
- i create image with dockerfile vary standart
- i create docker container with proxy setup host:port:username:password
3.i check my ip address and it was vary good i saw the proxy working
4.i run basic code to download and install the CLI in the container
5.i run code to log in to my user wit the CLI - i got into the dashboard and saw that my real IP address there connected and not my proxy IP
this is the docker file:
# Use Alpine as base image for smaller size
FROM alpine:latest
# Install required dependencies
RUN apk update && apk add --no-cache \
wget \
curl \
ca-certificates \
iproute2 \
proxychains-ng
# Configure proxychains
RUN echo "strict_chain" > /etc/proxychains/proxychains.conf && \
echo "proxy_dns" >> /etc/proxychains/proxychains.conf && \
echo "[ProxyList]" >> /etc/proxychains/proxychains.conf && \
echo "http I delete here the password and the username @45.39.212.132 8675" >> /etc/proxychains/proxychains.conf
# Download pawns-cli
RUN wget --no-check-certificate -O pawns-cli https://cdn.pawns.app/download/cli/latest/linux_x86_64/pawns-cli && \
chmod +x pawns-cli
# Create startup script with parameters
RUN echo '#!/bin/sh' > /start.sh && \
echo 'proxychains -f /etc/proxychains/proxychains.conf ./pawns-cli \' >> /start.sh && \
echo ' -accept-tos \' >> /start.sh && \
echo ' -email "$PAWNS_EMAIL" \' >> /start.sh && \
echo ' -password "$PAWNS_PASSWORD" \' >> /start.sh && \
echo ' -device-name "$DEVICE_NAME" \' >> /start.sh && \
echo ' -device-id "$DEVICE_ID"' >> /start.sh && \
chmod +x /start.sh
# Set working directory
WORKDIR /
# Command to run
ENTRYPOINT ["/start.sh"]
also i tried a lot of changes in the docker file, in the proxies or in the code that set up the container.
but same problem every time as i mention before