pirate / wireguard-docs

📖 Unofficial WireGuard Documentation: Setup, Usage, Configuration, and full example setups for VPNs supporting both servers & roaming clients.
https://docs.sweeting.me/s/wireguard
MIT License
4.46k stars 309 forks source link

client connected but no internet access #19

Closed firepmi closed 4 years ago

firepmi commented 4 years ago

I installed wireguard vpn on digitalocean ubuntu according to the guidline. the client is connected but no internet access. what have I missed?

root@ubuntu-s-4vcpu-8gb-nyc3-01:~# wg
interface: wg0
  public key: PkovxEhAlms2tWK9BwaU12yCi3HWKgT9u71TG7ffqEE=
  private key: (hidden)
  listening port: 51820

peer: k9pwr2WmNBdCUxAAIXeO0zvEqYhUnblKgn7I2e96IHo=
  endpoint: 59.45.63.242:63431
  allowed ips: 10.200.200.2/32
  latest handshake: 1 minute, 9 seconds ago
  transfer: 755.33 KiB received, 38.79 KiB sent
pirate commented 4 years ago

Which example did you follow and what is the end goal you're trying to reach? Do you want all traffic to go over wireguard, or only traffic directed to peers?

Looks like your peer is only accepting traffic for 10.200.200.2/32. If you want all internet traffic to go you need to change that peer's AllowedIPs=0.0.0.0/0.

pirate commented 4 years ago

Closing due to inactivity, but if you comment back with more details I can continue helping.