
USB port access control tool for Debian with whitelist management, automatic background scanning daemon, and CLI interface to block or allow USB devices.
Port-Guard is a USB port management and security tool designed for Debian. It allows you to control access to USB devices, maintain a custom whitelist, and run an automatic background scan to detect any unauthorized connection.
⚠️ Beta version : The software is functional, but unexpected behavior may still occur. Please report any bugs or anomalies via the issues on the Git repository.
License : GNU GPL v3 Author : k3rnix
portguard.service)./opt/port-guard/logs/daemon-scan.log.This section serves as a progress board for the various components of the project. It may be updated over Git versions.
.deb package :
sudo dpkg -i PortGuard_1.x.x.deb
After installation :
To cleanly uninstall Port-Guard, simply run the option :
sudo portguard -u
# or
sudo portguard --uninstall
Stops and disables the portguard.service.
Removes all application files in /opt/port-guard/.
Removes the binary /usr/local/bin/portguard.
Removes the desktop file and icon in /usr/share/.
Removes the system documentation in /usr/share/doc/port-guard/.
Backs up the WhiteList and logs in /tmp/
After execution, Port-Guard will be completely removed from the machine.
| Module | Status | Description |
|---|
| USB management (block/unblock) | ✔️ Completed | Main function operational |
| Whitelist management | ✔️ Completed | Add / remove / clear / parse usb-whitelist.conf |
| Automatic scan daemon | ✔️ Completed | Manual activation, logs included |
.deb packaging | ✔️ Completed | Clean installation + uninstaller |
| Module | Status | Description |
|---|
| CMake setup + project structure | ⬜ To do | Project base |
| ImGui integration | ⬜ To do | Window, buttons, USB table |
| Interaction with Shell scripts | ⬜ To do | System calls, status feedback |
| AppImage / binary release | ⬜ To do | Cross-platform packaging |