Wireguard: Difference between revisions
Added Wireguard VPN page |
corrected typos |
||
Line 1: | Line 1: | ||
= | =Overview= | ||
Wireguard is modern, low- | Wireguard is modern, low-latency VPN, available in upstream Alpine repo. | ||
It's easy to self-host, that's why it is popular choice for hackers. | It's easy to self-host, that's why it is popular choice for hackers. | ||
Line 14: | Line 14: | ||
modinfo: module '/lib/modules/${uname -r}/wireguard' not found | modinfo: module '/lib/modules/${uname -r}/wireguard' not found | ||
</pre> | </pre> | ||
You need to open issue or merge request mentioning device maintainer kindly asking for compiling kernel with | You need to open issue or merge request mentioning device maintainer kindly asking for compiling kernel with Wireguard driver. | ||
==NetworkManger integration== | ==NetworkManger integration== | ||
In mobian [https://blogs.gnome.org/thaller/2019/03/15/wireguard-in-networkmanager/ there is easy way] to manage | In mobian [https://blogs.gnome.org/thaller/2019/03/15/wireguard-in-networkmanager/ there is easy way] to manage Wireguard with automatically filled pre and post hooks. | ||
<pre> | <pre> | ||
nmcli connection import type | nmcli connection import type Wireguard file /path/to/wg.conf | ||
</pre> | </pre> | ||
However, because of (probably) some lack in packaging, pre and post hooks interfaces are not set properly. So you are connected to your rely but DNS doesn't work. | However, because of (probably) some lack in packaging, pre and post hooks interfaces are not set properly. So you are connected to your rely but DNS doesn't work. |
Revision as of 23:15, 28 March 2022
Overview
Wireguard is modern, low-latency VPN, available in upstream Alpine repo. It's easy to self-host, that's why it is popular choice for hackers.
Common Issues
Driver
Your kernel needs to be compiled with its driver. Check it by running below command in terminal
modinfo wireguard
If it prints module details like filename, author, you are good to go. If it prints something like:
modinfo: module '/lib/modules/${uname -r}/wireguard' not found
You need to open issue or merge request mentioning device maintainer kindly asking for compiling kernel with Wireguard driver.
NetworkManger integration
In mobian there is easy way to manage Wireguard with automatically filled pre and post hooks.
nmcli connection import type Wireguard file /path/to/wg.conf
However, because of (probably) some lack in packaging, pre and post hooks interfaces are not set properly. So you are connected to your rely but DNS doesn't work.
Needs debugging |
Temporary Solutions
If you really need it, you can do something like copy your wg0.conf file to /etc/wireguard/ chmod and chown it properly then write shell script that asks you if you want to connect or disconnect and then do sudo wg-quick up wg0 or sudo wg-quick down wg0, as unlike NetworkManager, wg sets hooks and interface properly each time.