udptunnel icon indicating copy to clipboard operation
udptunnel copied to clipboard

'Device or resource busy' error

Open luckypoem opened this issue 7 years ago • 2 comments

root@RegalMusty-VM:~/udptunnel-by-astroza# ls LICENSE README.md include server.c tun.c Makefile client.c scripts socket.c util.c root@RegalMusty-VM:~/udptunnel-by-astroza# make gcc -Wall -I./include -c socket.c gcc -Wall -I./include -c tun.c gcc -Wall -I./include -c util.c gcc -Wall -I./include -c client.c gcc -Wall -I./include -c server.c gcc socket.o tun.o util.o client.o -o client gcc socket.o tun.o util.o server.o -o server root@RegalMusty-VM:~/udptunnel-by-astroza# ls LICENSE client include server.c socket.o util.c Makefile client.c scripts server.o tun.c util.o README.md client.o server socket.c tun.o root@RegalMusty-VM:~/udptunnel-by-astroza# ./server 53 my-password perror: Device or resource busy root@RegalMusty-VM:~/udptunnel-by-astroza#

how to fix it?

luckypoem avatar Jan 22 '18 16:01 luckypoem

There's already a process listening on port 53 probably. Use ss -l | grep 53 to see if this is the case.

Filius-Patris avatar Mar 11 '21 09:03 Filius-Patris

Or you may have already a tun0 interface (it was my case). You can check with "ifconfig". If you see a tun0 interface, then you need to change every "tun0" into "tun1" or "tun2" in this repo (C code + shell scripts)

peacand avatar Dec 23 '21 13:12 peacand