Install wireguard on centos

sudo yum install kernel-5.10.134-13.al8.x86_64
sudo yum install wireguard-tools
sudo reboot

wg genkey | sudo tee /etc/wireguard/server_private.key | wg pubkey | sudo tee /etc/wireguard/server_public.key
sudo cat /etc/wireguard/server_public.key
ip -o -4 route show to default | awk ‘{print $5}’
sudo vi /etc/wireguard/wg0.conf


sudo ls /etc/wireguard/
sudo wg-quick up wg0
sudo wg show

Leave a Comment

Your email address will not be published. Required fields are marked *