Score:0

Wireguard on Ubuntu/Digital Ocean - ping server wg0 address

br flag

I have set up wireguard on ubuntu 20.04.3 on a Digital Ocean droplet. I have added a client on an android phone. As regards traffic through and out to the internet, all looks well, it was a clean installation. Visiting ifconfig.co on my phone shows my DO address.

My question(s) are this. I would like to be able to ping the server ip address in the wg0 network? Further I would like to be able to access Digital Ocean local private address on eth1. Neither seems to be available.

Server Configuration: 10.8.0.1 would be server, and 10.8.0.2 is android. I can't ping 10.8.0.1 from android. Digital Ocean provides a private address on eth1, and i am unable to ping it. For the record, my next step is to install pihole and i do not want listening on public eth0, but rather provide access only to the wireguard client.

Is there a setting that i'm missing? I thought it was working properly, but then it stopped.

Address = 10.8.0.1/32
SaveConfig = true
PostUp = ufw route allow in on wg0 out on eth0
PostUp = iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
PostUp = ip6tables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
PreDown = ufw route delete allow in on wg0 out on eth0
PreDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
PreDown = ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 51820
PrivateKey = redacted

[Peer]
PublicKey = redacted
PresharedKey = redacted
AllowedIPs = 10.8.0.2/32

ANDROID setting: client setting is straight forward

Address = 10.7.0.2/24
PrivateKey = redacted
allowedips = 0.0.0.0/0, ::/0```

Paul G avatar
br flag
I noticed the issues. Needed to fiddle around properly with the allowedips on the client/peers side. I understand how it works now. thanks
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.