dockerproxy
DockerProxy forwards TCP/UDP traffic, allowing users to redirect to remote IPs or domains seamlessly
1.6K
Docker Proxy is a lightweight Docker container designed to facilitate network traffic forwarding for both TCP and UDP protocols. This versatile tool allows users to specify either a remote IP address or a domain name, enabling seamless redirection of traffic to different ports.
To build the Docker image, run the following command:
git clone https://github.com/bariskisir/DockerProxy
cd DockerProxy
docker build -t dockerproxy .
You can run the container specifying the required environment variables:
docker run -d --name docker-proxy \
--cap-add=NET_ADMIN \
-p desired_local_port:desired_local_port/udp \
-e REMOTE_IP="your.remote.ip" \ # IP or DOMAIN must be set
-e REMOTE_DOMAIN="your.domain.com" \ # IP or DOMAIN must be set
-e REMOTE_PORT="desired_remote_port" \ # Must be set
-e LOCAL_PORT="desired_local_port" \ # Must be set
-e PROTOCOL="udp" \ # Change to "tcp" for TCP forwarding
--restart unless-stopped \
bariskisir/dockerproxy
docker run -d --name docker-proxy \
--cap-add=NET_ADMIN \
-p 1000:1000/udp \
-e REMOTE_IP=1.1.1.1 \
-e REMOTE_PORT=2000 \
-e LOCAL_PORT=1000 \
-e PROTOCOL="udp" \
--restart unless-stopped \
bariskisir/dockerproxy
This project is licensed under the MIT License.
Content type
Image
Digest
sha256:7e1476652…
Size
8 MB
Last updated
almost 2 years ago
docker pull bariskisir/dockerproxy