Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:vpn:wireguard [2022/12/20 15:22] mblinux:vpn:wireguard [2022/12/20 15:51] (current) – [Wireguard as VPN Server on RockyLinux] mb
Line 29: Line 29:
 With SaveConfig=true the configuration can be overwritten by WireGuard, e.g. when adding new peers.\\ With SaveConfig=true the configuration can be overwritten by WireGuard, e.g. when adding new peers.\\
 The next two lines describe the firewall rules when starting or shutting down the service. And seriously i need to clean my keyboard, the keys f and cc are working occasionally which drives me insane. \\ The next two lines describe the firewall rules when starting or shutting down the service. And seriously i need to clean my keyboard, the keys f and cc are working occasionally which drives me insane. \\
-Next we describe the listening port of the VPN server, +Next we describe the listening port of the VPN server, if it is changed, the firewall port has to be changed as well. \\ 
 +Last in this section the private key of the server is added, simply copy it from the private.key file in /etc/wireguard \\ 
 +To start the interface use: 
 +<code bash>sudo wg-quick up ng0 </code> 
 +The output after it should be: 
 +{{ :linux:vpn:wg-quick_up.png?direct&750 |}} 
 +When the WireGuard service is up and running, it can be checked with  
 +<code bash>sudo wg</code> 
 +This will show the following: 
 +{{ :linux:vpn:wg_show.png?direct&600 |}} 
 +With //sudo wg// we check all interfaces of wireguard, it is possible to create multiple interfaces for one instance. \\ 
 +Now our VPN server is up and running. To stop it use: 
 +<code bash>sudo wg-quick down wg0</code> 
 + 
 +====== WireGuard Web UI ====== 
 +Adding peers isn't easy and can be frustrating. There are some web UIs which can deliver a solution. \\ 
 +One of them is [[https://github.com/joseantmazonsb/linguard|linguard]] which is powered by python :) \\  
 ====== Wireguard as VPN Client on Linux ====== ====== Wireguard as VPN Client on Linux ======
 MacOs and Linux are similar configured as clients. \\ MacOs and Linux are similar configured as clients. \\