Wireguard Linux Client

Install


centos8

sudo dnf install epel-release elrepo-release -y sudo dnf install kmod-wireguard wireguard-tools

debian

sudo apt install wireguard
 
 

conf file

[Interface] PrivateKey = gON3VW0p/gxxZc1dxmJ9qp7ZLuu43+SGOJ6gJ7MoGWs= Address = 192.168.200.2/24 DNS = 1.1.1.1, 8.8.8.8 [Peer] PublicKey = DOSg7m4+UyCEWl3qgT1xY2M/tWQYd7hyoE1EMk3hyzc= AllowedIPs = 0.0.0.0/0 Endpoint = home.seongland.com:51820
  • allowed ips 로 접속할 ip 제한가능
  • 모든 0000해두면 네트워크 인터페이스로 접속 못하는 이슈 생김
 
 

make and up

sudo ip link add dev wg0 type wireguard sudo nano /etc/wireguard/wg0.conf sudo ip link set up dev wg0 sudo wg-quick up /etc/wireguard/wg0.conf

system

sudo systemctl stop wg-quick@wg0 sudo systemctl start wg-quick@wg0 sudo systemctl enable wg-quick@wg0 curl ifconfig.me
 
 
💡
Do not your wg setconf, use wg-quick up conf.file
 
 
 
Quick Start - WireGuard
You'll first want to make sure you have a decent grasp of the conceptual overview, and then install WireGuard. After that, read onwards here.
Quick Start - WireGuard
trailofbits/algo
To connect to your AlgoVPN using WireGuard from Ubuntu, make sure your system is up-to-date then install WireGuard: # Update your system: sudo apt update && sudo apt upgrade # If the file /var/run/reboot-required exists then reboot: [ -e /var/run/reboot-required ] && sudo reboot # Install WireGuard: sudo apt install wireguard openresolv For installation on other Linux distributions, see the Installation page on the WireGuard site.
trailofbits/algo
How to Set Up WireGuard VPN Client on Ubuntu Desktop
You need a working WireGuard VPN server. Learn how to set that up here: How to Set Up WireGuard VPN Server on Ubuntu First we update our Ubuntu host machine then install WireGuard: $ sudo apt update $ sudo apt install wireguard Info You may see over the web that you should install WireGuard with ppa, like: $ sudo add-apt-repository ppa:wireguard/wireguard This is an outdated method and as we seen in https://launchpad.net/%7Ewireguard: This formerly was responsible for producing a PPA for WireGuard on Ubuntu.
How to Set Up WireGuard VPN Client on Ubuntu Desktop
 
 
 

Recommendations