Sign inSign up

jearton1024/udp2raw

By jearton1024

Updated 7 months ago

udp2raw

Image
Networking
2

1.9K

jearton1024/udp2raw repository overview

Share My Best Practice

https://github.com/wangyu-/udp2raw/issues/531

First start the server-side

Caution: you should use host network on the server-side

use docker compose

services:
  udp2raw_server:
    image: jearton1024/udp2raw:latest
    container_name: udp2raw_server
    restart: unless-stopped
    network_mode: host
    cap_add:
      - NET_ADMIN
    environment:
      - LISTEN_PORT= 4096
    command: >
      -s
      -l0.0.0.0:4096
      -r127.0.0.1:32884
      -k "<password>"
      --raw-mode faketcp
      --fix-gro
      -a

or user docker cli

docker run -d \
  --name udp2raw_server \
  --restart unless-stopped \
  --network host \
  --cap-add NET_ADMIN \
  -e LISTEN_PORT=4096 \
  jearton1024/udp2raw:latest \
  -s \
  -l0.0.0.0:4096 \
  -r127.0.0.1:32884 \
  -k "<password>" \
  --raw-mode faketcp \
  --fix-gro \
  -a

Note that 32884 is the wireguard peer listen port.

Then start the client-side

use docker compose

services:
  udp2raw_client:
    image: jearton1024/udp2raw:latest
    container_name: udp2raw_client
    restart: unless-stopped
    ports: 
      - 51820:51820
    cap_add:
      - NET_ADMIN
    environment:
      - LISTEN_PORT=51820
    command: >
      -c
      -l0.0.0.0:51820
      -r<remote ip>:4096
      -k "<password>"
      --raw-mode faketcp
      -a

or user docker cli

docker run -d \
  --name udp2raw_client \
  --restart unless-stopped \
  -p 51820:51820 \
  --cap-add NET_ADMIN \
  -e LISTEN_PORT=51820 \
  jearton1024/udp2raw:latest \
  -c \
  -l0.0.0.0:51820 \
  -r<remote host>:4096 \
  -k "<password>" \
  --raw-mode faketcp \
  --fix-gro \
  -a

Tag summary

Content type

Image

Digest

sha256:27d9fefc8

Size

16.2 MB

Last updated

over 2 years ago

docker pull jearton1024/udp2raw