Wireguard VPN, no Internet access

heynnema

I'm trying out Wireguard VPN, and although I believe that I've finally got it to connect, I have no Internet access, and can't ping various sites on the Internet.

I took a Wireguard .conf file provided by my VPN vendor, renamed it, and copied it to /etc/wireguard/wg0.conf.

[Interface]
PrivateKey = redacted
ListenPort = 51820
Address = redacted/32
DNS = 10.100.0.1

[Peer]
PublicKey = redacted
PresharedKey = redacted
AllowedIPs = 0.0.0.0/0
Endpoint = redacted:51820
PersistentKeepalive = 25

If I do sudo wg-quick up wg0 it appears to connect, but I have no Internet access.

$ sudo wg-quick up wg0

[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add redacted/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a tun.wg0 -m 0 -x
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n

$ sudo wg show

interface: wg0
  public key: redacted
  private key: (hidden)
  listening port: 51820
  fwmark: 0xca6c

peer: redacted
  preshared key: (hidden)
  endpoint: redacted:51820
  allowed ips: 0.0.0.0/0
  transfer: 0 B received, 2.89 KiB sent
  persistent keepalive: every 25 seconds

I've tried disabling the firewall with no luck. I've tried sysctl -w net.ipv4.ip_forward=1 with no luck.

Any ideas why no Internet?

heynnema

I obtained a new wireguard .conf file from my VPN vendor, using a different (correct) peer hostname, and my initial testing indicates that it's working now.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

WireGuard: Connected to peer but no internet access

VPN client cannot access network behind VPN server(wireguard)

Ip route : access ip on different interface trough Wireguard VPN

Access internet when connected to VPN

No internet access when VPN connected

Cannot setup WireGuard VPN

Cannot setup WireGuard VPN

Wireguard VPN Outbound and Inbound

Wireguard VPN Client GUI

WireGuard VPN and Uncomplicated Firewall

Client (Ubuntu 20.04) cannot resolve internet pages while connected to the VPN WireGuard Server

With two houses and two internet connections, I want to use site A's internet from site B via a VPN, preferably wireguard

Access the internet directly while connected to VPN

pptpd VPN: No internet access after connecting

Access to internet with a company's VPN connection

Allow internet access only through vpn server

Is my internet connection encrypted with wireguard?

firewalld: forward traffic as a wireguard VPN gateway

How to use multiple vpn clients with wireguard on windows?

Samba is not listening on specified wireguard / vpn interface

How to configure a VPN server to be able to access the internal network such as the Internet?

Guide to set up a VPN on Ubuntu 17.10 with Private Internet Access?

Wireguard on debian - no access to server subnet

On connecting to the VPN first internet fails, then I can't access the resource on VPN

Wireguard no internet after enablling Kill Switch

Route all internet traffic through Wireguard peer

VPN connection breaks internet

2 Internet connections with VPN

Disconnecting Netextender VPN: No internet