Wireguard connects but does not work
Hello
i have a problem with wireguard(client) on arch linux
i have installed three packages to use wireguard :wireguard-dkms, wireguard-tools, networkmanager-wireguard-git
i also use systemd-resolved for my dns
i can connect to a wireguard server but internet connection without any error apperently disconnects after connecting to a wireguard server and internet connection comes back if i disconnect
i don't think the problem is because the dns server because i can't ping IPs too
i tried connecting to them using "wg-quick" command and Gnome's networkmanager gui
but i got indentical results
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- f44cmb
4 comments
i had problems with wireguard as well, what i ended up doing is
some commands to keep in mind
take a look at wireguard-in-networkmanager for help with NetworkManager and wireguard, very nice post/guide for setting up wireguard and also editing interfaces using NetworkManager.
I connect with just wg-quick and it works fine, using NM, but with No NM config or git file, using the first two packages you listed, and the key files from my vpn provider. Works fine on Arch and Fedora 31. Pls update with your solution when found. Good luck!
If you want all your traffic go through the server, in the wg client config you should have in the peer section (server):
In the server the wg config needs some iptables rules in the interface section and ip forwarding enabled at os level.
sysctl
I just installed it this morning and I am amazed! Easy, fast (oh my) and integrates nicely in my net config. All my traffic on all my devices enrypted. Always. Really a lovely piece of software!
SaveConfig = trueIs nice, if you add a peer, it directly gets written to the config file!