Introduction

This tutorial covers How to Configure WireGuard VPN on SLES 16 on SLES 16. SLES 16 (SUSE Linux Enterprise Server 16) is SUSE’s enterprise-grade Linux distribution. It uses the zypper package manager, AppArmor for mandatory access control, and systemctl for service management.

Step 1 — Install WireGuard

zypper install -y wireguard-tools

Step 2 — Generate Keys

wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey

Step 3 — Create Configuration

cat > /etc/wireguard/wg0.conf << EOF
[Interface]
PrivateKey = 
Address = 10.0.0.1/24
ListenPort = 51820
EOF

Step 4 — Start WireGuard

systemctl enable --now wg-quick@wg0

AppArmor Considerations

Note: SLES 16 uses AppArmor for mandatory access control. Check AppArmor status with aa-status and enforce profiles with aa-enforce /etc/apparmor.d/<profile>.

Conclusion

You have successfully completed: How to Configure WireGuard VPN on SLES 16. For more SLES 16 tutorials, see our full SLES 16 series.