Quick installer and fwknopd management
The fastest way to install PortGuard Server is the official installer. It installs packages built by GitHub Actions from the public source repository, so the build pipeline and source code are both open for review.
1. Install
curl -fsSL https://portguard.net/install.sh | sudo bash
The generated SPA_SERVER uses the server's public IPv4 address when one can
be detected. If public detection is unavailable, the installer falls back to
the local IPv4 address. The hostname remains the default profile section name.
Use --server only when you need to override the detected address with a DNS
name or another IP address.
Customize the generated client profile during installation:
curl -fsSL https://portguard.net/install.sh | sudo bash -s -- \
--server vpn.example.com \
--access tcp/22,tcp/80 \
--knock-port 62201 \
--user portguard \
--timeout 60
The installer creates:
/etc/fwknop/fwknopd.conf/etc/fwknop/access.conf
2. Upgrade
Upgrade or reinstall the latest matching release package without changing the existing keys:
curl -fsSL https://portguard.net/install.sh | sudo bash -s -- --upgrade
3. Verify the service
sudo fwknopd --exit-parse-config \
-c /etc/fwknop/fwknopd.conf \
-a /etc/fwknop/access.conf
sudo systemctl status fwknopd
If systemd is not active, start it manually:
sudo fwknopd -c /etc/fwknop/fwknopd.conf -a /etc/fwknop/access.conf
4. Import into PortGuard Client
Show the generated client payload and QR output:
sudo portguard-fwknopd -Q