Security Protocol v2.0 Ready

PortGuard: Keep Your Services Invisible to Scanners

PortGuard combines a modified fwknop-based server with a cross-platform client that supports the fwknop SPA protocol. Ports stay closed by default and open temporarily only after a valid AES/GPG-signed packet is verified.

Quick Server Install

Installs the latest open-source package built by GitHub Actions from the PortGuard server repository.

Guide
curl -fsSL https://portguard.net/install.sh | sudo bash
Live Client Preview
Built for fwknop-compatible workflows

Traditional Exposure Mode (Risk)

  • ✕Ports remain open all day and are continuously probed by global scanners.
  • ✕Exposed services face brute-force attempts and exploit attacks directly.
  • ✕Firewall allowlists become complex to maintain and lack dynamic flexibility.

PortGuard Mode (Solution)

  • ✓Default Deny: Ports are completely invisible before authorization (stealth).
  • ✓SPA Auth: Only specially formatted encrypted single packets can trigger access.
  • ✓Dynamic Access: Temporarily allow only the source IP, then close automatically.

Core Features

Core Security Features

Strong defaults for teams that want SSH, admin panels, and private services to disappear until authorization is intentional.

Efficient SPA Communication

Send fwknop-compatible single-packet authorization without TCP handshake overhead, with strong stealth.

AES/GPG + HMAC

Integrated SHA256 integrity checks ensure commands are authentic and untampered.

Full Port Stealth

Default DROP behavior makes services appear unreachable to scanners.

Replay Attack Resistance

Time-window validation plus integrity checks quickly invalidates old packets.

PortGuard Eğitimi

A cleaner fwknop-compatible client for every device.

PortGuard Client supports the fwknop SPA protocol. Profiles, one-tap SPA, QR import, encrypted export, and activation stay compatible with fwknopd and PortGuard Server workflows.

One-tap SPA Send authorized knocks without command-line friction.
Encrypted profiles Keep local configs protected at rest.
QR import Move profiles between devices quickly.

How It Works

Security Workflow

PortGuard runs at the firewall edge of protected servers. It continuously inspects network traffic for authorization packets without exposing service handshakes externally.

1
Generate Authorization Packet

The client uses keys and a timestamp to generate an encrypted single packet.

2
Handshake-less Delivery

The packet is sent via UDP and similar methods, making handshake-based probing ineffective.

3
Dynamic Open

After validation, the server temporarily allows the source IP and then automatically removes the rule.

PORT_GUARD_DAEMON DURUM: DİNLİYOR
[INFO] eth0 üzerinde SPA paketleri dinleniyor...
[CMD] 124.6.x.x adresinden paket algılandı
[AUTH] HMAC SHA256 doğrulandı. Zaman damgası geçerli.
[AUTH] Yük AES-256-CBC ile çözülüyor...
[FIREWALL] 124.6.x.x için 22 numaralı port 30 sn açılıyor.
_

Use Cases

SSH Remote Operations

Protect port 22 and make it visible only briefly after an admin sends SPA.

Multi-Cloud Security

Unified access control across AWS/Azure and more to reduce exposure.

IoT Device Management

Protect IoT control interfaces and avoid direct public exposure.

ACL Automation

Combine scripts and rule cycles to automate temporary authorization.

Downloads and Installation

Supports multi-platform clients and server-side packages

Windows Client

portguard-client-2.2.1-x64-setup.exe

macOS Client

portguard-client-2.2.2-18-macos.dmg

Apple App Store

iPhone & iPad

Go to Store

Android App

fwknopc_2_6_11.apk

Download APK

Linux Server

Debian, Ubuntu, Rocky, CentOS, OpenWrt

Server Packages
Security Tip: Please verify MD5/SHA256 fingerprints after downloading.

Server Packages

Install PortGuard Server on Debian, Ubuntu, Rocky, CentOS, and OpenWrt

Use the quick installer for supported Linux servers, or download the latest package generated from the open-source GitHub Actions release pipeline.

Quick Install

One command server setup

curl -fsSL https://portguard.net/install.sh | sudo bash

The script detects the operating system, selects the matching package from the GitHub release manifest, verifies SHA256, installs dependencies, and leaves fwknopd ready for configuration export to PortGuard Client.

Open Source Release

Packages synced from GitHub

These packages are built automatically by GitHub Actions from the public PortGuard server source code.

Latest Release
System Version Architecture Package İndirmek
Loading packages from GitHub release...

SSS ve kullanım senaryoları

Son güncelleme:

What is the relationship between PortGuard and fwknop?

PortGuard is built around the fwknop SPA protocol. PortGuard Client is a cross-platform client that sends fwknop-compatible SPA packets, while PortGuard Server is a modified server based on the upstream fwknop project. Compared with traditional sequence-based port knocking, this single encrypted packet model is faster, stealthier, and resistant to replay attacks.

Belirli bir IP'nin her hizmet bağlantı noktasına erişmesine izin vermek için bir profil oluşturup tek bir vuruş kullanabilir miyim?

Evet. Sunucu erişimi kıtasını OPEN_PORTS ANY ile yapılandırın ve ACCESS ANY ile bir istemci profili kullanın. Profil bir kez oluşturulup içe aktarılabilir, ardından yeniden kullanılabilir. Her geçerli vuruş, ALLOW_IP tarafından seçilen IP'nin, FW_TIMEOUT'nin süresi dolana kadar tüm TCP ve UDP hizmet bağlantı noktalarına erişmesine olanak tanıyan geçici bir kaynak IP kuralı oluşturur. Süre dolduktan sonra yeni bir vuruş gönderin. Bu yüksek ayrıcalıklı bir moddur: kısa bir zaman aşımı kullanın, profili ve anahtarları koruyun ve yukarı akış bulut güvenlik duvarlarının, yönlendirici kurallarının ve hizmet kimlik doğrulamasının hala geçerli olduğunu unutmayın.

fwknop, tnock ile karşılaştırıldığında nasıldır?

Her ikisi de ağ portlarını gizlemeyi amaçlar; ancak fwknop daha gelişmiş bir SPA çözümüdür. tnock ve benzeri sıra tabanlı daemon'lar, birden fazla kapalı portta belirli bağlantı deneme desenini algılar; bu daha yavaş ve replay'e açıktır. fwknop bunu kriptografik olarak imzalanmış ve zaman damgalı tek bir payload ile çözer. Avantajları: çok daha yüksek güvenlik, replay direnci ve modern firewall'larla sorunsuz entegrasyon.

Web sitemi veya özel servisimi sadece belirli kişilere nasıl açabilirim?

By default, PortGuard Server, modified from fwknop, configures your server's firewall to block all inbound traffic to your service port. The service appears completely offline to the public. When an authorized user needs access, they use PortGuard Client with their unique cryptographic key to send a fwknop-compatible Single Packet Authorization (SPA) packet. Once verified, the server dynamically whitelists their current IP address for a brief period.

Genel ağa açık bir NAS'ta veri sızıntısı olmadan güvenlik ve gizlilik nasıl sağlanır?

NAS'ı doğrudan internete açmak, sürekli botnet ve tarama denemeleri nedeniyle oldukça risklidir. Genellikle iki güvenli çözüm vardır:

  • Plan 1: Cloudflare Zero Trust (Tunnels) NAS trafiğini, giriş portu açmadan Cloudflare ağı üzerinden geçirir. Artıları: kurulumu çok kolaydır, public IP gerektirmez, ek WAF katmanı sağlar. Eksileri: trafik üçüncü taraf sunucudan geçtiği için Cloudflare gizlilik politikasına bağımlısınız; ücretsiz katman yönlendirmesi hızları sınırlayabilir, büyük medya akışı için ideal olmayabilir.
  • Plan 2: Kendi public IP'niz + fwknop Port Knocking Router'da bir port açarsınız ancak fwknop (SPA) ile korursunuz. Port, genel internette görünmez kalır ve yalnızca geçerli kriptografik imzalı erişim paketi gönderildiğinde açılır. Artıları: üçüncü tarafa gitmediği için yüksek veri gizliliği ve doğrudan bağlantı ile maksimum donanım hızı (video için ideal). Eksileri: gerçek public IP ve biraz daha teknik ilk kurulum gerekir.

Port açıldıktan sonra fwknop PortGuard bağlantı hızımı düşürür mü?

No. The fwknop-compatible PortGuard Server only handles the initial authorization packet. Once the firewall rule is dynamically created and your IP is authorized, your connection via SSH, WireGuard, or directly to your NAS operates directly between your client and the server at full line speed.

Trusted by DevOps and Security Experts Worldwide

"After deploying PortGuard on our bastion hosts, SSH scan noise in logs dropped significantly."
- Kıdemli SysAdmin, TechGroup
"SPA's one-way, handshake-less design is highly practical, balancing stealth and operability."
- Güvenlik araştırmacısı, @CyberNode
"iptables integration was smooth, and we've rolled it out at scale in production."
- Lead DevOps, Fintech Corp

Official Contact

Need help with PortGuard?

For purchase recovery, activation issues, deployment questions, or security reports, contact the official PortGuard support mailbox.

[email protected]