Showing posts from December, 2019

Setting up Wireguard on a home linux server

Wireguard is a peer-to-peer VPN solution with manual IP assignment and pre created keys, so it works well if you want to dial home to your home network, but is not really suited for something large scale that requires dynamic allocation and user management. Step 1 - set up the server on Ubuntu Enable IP forwarding To have access the outside network through your server once you dial home. Run first sysctl -w net.ipv4.ip_forward=1 Then edit /etc/sysctl.conf and uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1 Install Wireguard for Ubuntu sudo add-apt-repository ppa:wireguard/wireguard apt install wireguard Generate private and public keys # generate private key wg genkey > example.key # generate public key wg pubkey < example.key > Take note of the content of, you will need it for the client. Enable the Wireguard network interface sudo sys