Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 751 Bytes

readme.md

File metadata and controls

34 lines (24 loc) · 751 Bytes

cncnet-docker-tunnel

A repo that contains a dockerfile to create a cncnet tunnel server in docker

1

Clone the dockerfile from this repo to your server. You will need to edit your server name here too

2

Build the docker container from the docker file as below (feel free to update my-tunnel-server to a different name for ease of identifying in docker commands)

docker build -t my-tunnel-server .

3

Run your new container with the below:

docker run -d --name my-tunnel-server \
    -p 50000:50000/tcp \
    -p 50000:50000/udp \
    -p 50001:50001/tcp \
    -p 50001:50001/udp \
    -p 8054:8054/udp \
    -p 3478:3478/udp \
    --cap-add=NET_RAW --cap-add=NET_ADMIN \
    --restart unless-stopped \
    my-tunnel-server