hello, i have installed docker and docker-compose on kali linux machine latest version…
all worked good so i proceed to install wireguard , so i basically installed all like was told in this tutorial : https://www.youtube.com/watch?v=bVKNSf1p1d0
and my config yaml file :
version: “2.1”
services:
wireguard:
image: ghcr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1900 - that was changed on my users id
- PGID=1000
- TZ=America/Los_Angeles
- SERVERURL=172.17.0.1 #optional -here i put ip like this : sudo docker -it wireguard ifconfig - the output was serverurl
- SERVERPORT=51820 #optional
- PEERS=3 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
- ALLOWEDIPS=0.0.0.0/0 #optional
volumes:
- /opt/wireguard-server/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: always
so i just then did this : docker-compose up -d
and then installed wireguard client on kali linux copied the peer1.conf to my home directory then moved to /etc/wireguard/wg0.conf
when i wanna to connect to wireguard server with this command : wg-quick up wg0.conf i get this
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.13.13.2 dev wg0
[#] ip link set mtu 65456 up dev wg0
RTNETLINK answers: Address already in use
[#] ip link delete dev wg0
i even try to connect from my android device but there was no internet connection at all…
what i did wrong? thank you