I am using Ubuntu 20.04
with x86_64 Linux 5.8.0-55-generic
kernel. I use linuxserver/wireguard docker image as Wireguard server.
This is my docker-compose.yml
of wireguard docker:
---
version: "2.1"
services:
wireguard:
image: ghcr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=0
- PGID=0
- TZ=Europe/London
- SERVERURL=<my-server-address>
- SERVERPORT=51820
- PEERS="ios,laptop,pc"
- PEERDNS=8.8.8.8,8.8.4.4,2001:4860:4860:8888,2001:4860:4860:8844
- INTERNAL_SUBNET=10.13.13.0 #optional
- ALLOWEDIPS=0.0.0.0/0
volumes:
- /opt/wireguard-server/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0
restart: always
This is a config file I use:
[Interface]
Address = 10.13.13.3
PrivateKey = <private-key>
ListenPort = 51820
DNS = 8.8.8.8,8.8.4.4,2001:4860:4860:8888,2001:4860:4860:8844
[Peer]
PublicKey = <public-key>
Endpoint = <my-server-address>:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
The config file works well but I can not reach some websites, like Kaggle, and I don't know why :( when I execute ping www.kaggle.com
I get:
PING www.kaggle.com (35.244.233.98) 56(84) bytes of data.
64 bytes from 98.233.244.35.bc.googleusercontent.com (35.244.233.98): icmp_seq=1 ttl=116 time=112 ms
64 bytes from 98.233.244.35.bc.googleusercontent.com (35.244.233.98): icmp_seq=2 ttl=116 time=111 ms
64 bytes from 98.233.244.35.bc.googleusercontent.com (35.244.233.98): icmp_seq=3 ttl=116 time=111 ms
^C
--- www.kaggle.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 111.054/111.255/111.503/0.186 ms