Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connected but no internet access #26

Open
firepmi opened this issue Aug 22, 2019 · 7 comments
Open

connected but no internet access #26

firepmi opened this issue Aug 22, 2019 · 7 comments

Comments

@firepmi
Copy link

firepmi commented Aug 22, 2019

I installed wireguard on digitalocean ubuntu according to the guideline.
the client is connected, but no internet access.
what did I do wrong?

@ccebrecos
Copy link

Same here. Installed server on ArchLinux; I can access to the server but no to internet, seems it's not forwarding the packets...

@RubenNL
Copy link

RubenNL commented Sep 14, 2019

I just solved my problem(other way of installing, but may solve it for you) by enabling ipv4 forwarding on the server.

Currently I am unable to search it myself, but Google "enable ipv4 forwarding Linux". I think that may solve your issue

Repository owner deleted a comment Sep 20, 2019
@ccebrecos
Copy link

Hi !
ipv4 forwarding was already enabled on the server and iptables properly configured.
Don't think the problem was there..

@IssueFindings
Copy link

Hello, I have the same issue. I already check the ipv4 forwarding on my server (net.ipv4.ip_forward = 1). Neevertheless my server can't access to Internet. I think is linked with Wireguard configuration but I don't see what is wrong. Could you help me ? Have a nice day.

My file configuration (/etc/wireguard/wg0.conf) is :
[Interface] Address = 10.9.0.1/24 #The local ip given by Internet box is 192.168.X.X ListenPort = 51820 DNS = local IP of my server (192.168.Y.Y) PrivateKey = server_privatekey PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth1 -j MASQUERADE [Peer] #Peer-1 PublicKey = peer1_publickey AllowedIPs = 10.9.0.2/32 #PersistentkeepAlive = 60

@IssueFindings
Copy link

Issue solved, I put 1.1.1.1 as IP for DNS option in the file below. How I can check that everything go through WireGuard ?
Have a nice day.

@ccebrecos
Copy link

Hi there!
In my case the issue was a rule on ip rule; fixed just removing that rule:
PostUp = ... ; ip rule delete table <ListenPort>

@AshleyDumaine
Copy link

AshleyDumaine commented Dec 5, 2019

I'm also running into this issue. Wireguard was working for me earlier this year and nothing changed with the configuration for the server or client, but it now I have no internet access even though it's showing the client is connecting to the server. I did notice some errors are showing up on the wg interface:

$ ifconfig wg0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1420
        inet 10.0.0.1  netmask 255.255.255.0  destination 10.0.0.1
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 219  bytes 34236 (33.4 KiB)
        RX errors 21  dropped 0  overruns 0  frame 21
        TX packets 328  bytes 104396 (101.9 KiB)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0
wg show
interface: wg0
<snip>
  latest handshake: 41 seconds ago
  transfer: 33.43 KiB received, 101.95 KiB sent

Haven't figured out a fix yet unfortunately.

EDIT: After upgrade everything (sudo apt-get update && sudo apt-get upgrade) and restarting the pi, the wg server, and the client connection, I was able to access the internet again, but only for a minute or so. Here's the version for my packages in case this is of use to anyone else:

$ apt-cache policy wireguard*
wireguard-dkms:
  Installed: 0.0.20191127-2
  Candidate: 0.0.20191127-2
  Version table:
 *** 0.0.20191127-2 150
        150 http://deb.debian.org/debian unstable/main armhf Packages
        100 /var/lib/dpkg/status
wireguard-modules:
  Installed: (none)
  Candidate: (none)
  Version table:
wireguard-tools:
  Installed: 0.0.20191127-2
  Candidate: 0.0.20191127-2
  Version table:
 *** 0.0.20191127-2 150
        150 http://deb.debian.org/debian unstable/main armhf Packages
        100 /var/lib/dpkg/status
wireguard:
  Installed: 0.0.20191127-2
  Candidate: 0.0.20191127-2
  Version table:
 *** 0.0.20191127-2 150
        150 http://deb.debian.org/debian unstable/main armhf Packages
        100 /var/lib/dpkg/status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants