WireGuard Server
Remote VPN access is provided by a dedicated WireGuard server running on hades.skynet.lan.
The server was deployed using the excellent angristan/wireguard-install installation script, which automates the installation, firewall configuration, IP forwarding, systemd service creation, and client management.
Project:
Installation
The installer was downloaded and executed on the server.
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh
sudo ./wireguard-install.sh
The installation wizard automatically configured:
- WireGuard packages
- Server key pair
- VPN interface
- IP forwarding
- Firewall/NAT rules
- Systemd service
- Initial client configuration
Server Configuration
Server information:
| Setting | Value |
|---|---|
| Hostname | hades.skynet.lan |
| VPN Software | WireGuard |
| Interface | wg0 |
| VPN Port | 51820/UDP (or your configured port) |
| VPN Network | <VPN_SUBNET> (leave default) |
| Public Hostname | <vpn.mydomain.tld> |
Generated Files
The installer creates the standard WireGuard configuration files.
Server configuration:
Client configurations are generated automatically.
Example:
Each client receives:
- Unique key pair
- VPN IP address
- Server endpoint
- DNS configuration
Hint
Use your PiHole as DNS.
Client Management
The installer can be executed again at any time.
Available actions include:
- Add a new client
- Revoke an existing client
- List configured clients
- Remove the WireGuard server
No manual editing of wg0.conf is normally required.
Adding a New Device
To provision a new device:
- Run the installation script again.
- Select Add a new client.
- Enter a descriptive client name.
- A new client configuration file is generated.
- Import the configuration into the WireGuard application on the device.
Supported clients include:
- Windows
- macOS
- Linux
- iPhone / iPad
- Android (Pending try)
WireGuard Service
Service status:
Start:
Stop:
Enable at boot:
Configuration Backup
The following files should be included in system backups:
These contain the server configuration and generated client profiles.
Notes
- WireGuard is only exposed through a single UDP port.
- Clients authenticate using public/private key pairs.
- Access to the internal
skynet.lan& internal zones is only available after successful authentication. - Client configurations can be regenerated or revoked at any time by rerunning the installer.