-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udp2raw screen on server side keeps terminating! #532
Comments
You can use the docker image: jearton1024/udp2raw |
ty for your comment, i used the container with this command on server side: |
@Iman-Sh My best pracetice #531 First start the server-sideCaution: you should use 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-sideuse 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 |
well, this is a linux question instead of a udp2raw question. I suggest to google and solve the problem by yourself. But... As a friendly reminder: If you want a simpler solution than docker, you can use either: nohup
tmux
when ever you want to recall the terminal, you can use |
the problem is not the ssh session because i've used the command inside a screen, i've used tmux before as a replacement for screen but tunnel on server side keeps terminating no matter which one i'm using. |
From you description, I cannot tell whether it's your screen quit unexpectly or your udp2raw quit unexpectly. if you want to debugif your screen is still alive, only udp2raw quits. You can recover the screen session and see logs if it's the case 1. udp2raw quit itself bc of some error 2. udp2raw crash. if you want to keep udp2raw alivecheck https://github.com/wangyu-/udp2raw/wiki/keep-udp2raw-alive |
Hi every one, i'm using udp2raw to tunnel both of my servers using screen command and it works amazing but the tunnel in server side keeps terminating a lot and i have to run the command again to make to tunnel work, so is there a way to automatically restart the server side tunnel when udp2raw screen gets terminated?
and how can i figure out what is causing the termination? is there any log?
screen ./udp2raw_amd64 -s -l0.0.0.0:4096 -r127.0.0.1:7777 -k "pass" --raw-mode icmp --log-level 5 -a
screen ./udp2raw_amd64 -c -l0.0.0.0:3333 -r"serverIp":4096 -k "pass" --raw-mode icmp --log-level 5 -a
please let me know if you need more info.
The text was updated successfully, but these errors were encountered: