This is an old revision of the document!
WireGuard
WireGuard is a modern VPN tunnel solution…
Concepts
Installation
emerge -v net-vpn/wireguard-tools
Create local host private and public keys:
wg genkey > /etc/wireguard/privatekey wg pubkey < /etc/wireguard/privatekey > /etc/wireguard/publickey
Configuration
/etc/wireguard/wg0.conf:
- wg0.conf
[Interface] PrivateKey = << local private key >> Address = 10.100.0.1/24 ListenPort = << my port >> [Peer] PublicKey = << remote end public key >> Endpoint = << peer public IP >>:<< peer port >> AllowedIPs = 10.100.0.2/24 PersistentKeepAlive = 25
ln -s /etc/init.d/wg-quick /etc/init.d/wg-quick.wg0 rc-update add wg-quick.wg0 default