Scripts for managing Greenbone Community Edition (formerly OpenVAS) on systemd-based Linux distributions.
These scripts are compatible with Greenbone Community Edition 22.4+, which uses a modern architecture with the following components:
- openvasd - The Notus Scanner daemon for local security checks
- ospd-openvas - OSP (Open Scanner Protocol) wrapper for the OpenVAS Scanner
- gvmd - Greenbone Vulnerability Manager daemon (central management service)
- gsad - Greenbone Security Assistant daemon (web interface)
- greenbone-feed-sync - Unified feed synchronization tool
Note: These scripts have been updated from the legacy OpenVAS 8/9 architecture. The old components (
openvassd,openvasmd,openvas-nvt-sync, etc.) are no longer used in modern GCE installations.
- Linux distribution with systemd (Debian, Ubuntu, Fedora, CentOS, Kali, etc.)
- Greenbone Community Edition 22.4 or later installed
- Root or sudo access for setup operations
-
Clone or download this repository:
git clone <repository-url> cd OpenVas-Management-Scripts
-
Make scripts executable:
chmod +x openvas-* gvm-check-setup -
(Optional) Add to PATH:
sudo cp openvas-* gvm-check-setup /usr/local/bin/
Run the setup script to configure your system:
sudo ./openvas-setupThis will:
- Create the
gvmuser and group - Configure Redis for OpenVAS
- Set up directory permissions
- Configure GPG for feed validation
- Set up PostgreSQL database
- Configure sudo for scanning
- Synchronize feeds (VTs, SCAP, CERT, GVMD data)
- Create an admin user
- Enable and start services
sudo ./openvas-startStarts all GCE services in the correct order:
- openvasd (Notus Scanner)
- ospd-openvas (OSP daemon)
- gvmd (Vulnerability Manager)
- gsad (Web interface)
sudo ./openvas-stopStops all services in reverse dependency order.
sudo ./openvas-feed-updateSynchronizes all feed data from the Greenbone Community Feed:
- VT data (Vulnerability Tests / NASL scripts)
- SCAP data (CPE/CVE information)
- CERT data (DFN-CERT and CERT-Bund advisories)
- GVMD data (Scan configs, port lists, report formats)
Note: Feed updates may take a while, especially the first time. The services will automatically load the new data.
sudo ./gvm-check-setupVerifies that your installation is complete and ready to use. Checks:
- Required binaries are installed
- Redis configuration
- PostgreSQL database
- Directory permissions
- GPG setup for feed validation
- Services are running
- Feed data is present
- Users are configured
After starting services, access the Greenbone Security Assistant at:
http://127.0.0.1:9392
Default credentials (created by openvas-setup):
- Username:
admin - Password: Generated during setup (displayed in output)
| Legacy Component | Modern Replacement | Purpose |
|---|---|---|
openvassd |
openvas + ospd-openvas |
Scanner daemon |
openvasmd |
gvmd |
Vulnerability manager |
openvasad |
removed | Administrator (functionality merged) |
gsad |
gsad |
Web interface (updated) |
openvas-nvt-sync |
greenbone-feed-sync |
Feed synchronization |
openvas-scapdata-sync |
greenbone-feed-sync |
SCAP data sync |
openvas-certdata-sync |
greenbone-feed-sync |
CERT data sync |
openvas-mkcert |
gvm-manage-certs |
Certificate management |
| SQLite database | PostgreSQL | Database backend |
Check service status:
systemctl status openvasd
systemctl status ospd-openvas
systemctl status gvmd
systemctl status gsadView logs:
tail -f /var/log/gvm/gvmd.log
tail -f /var/log/gvm/ospd-openvas.log
tail -f /var/log/gvm/gsad.logEnsure GPG is configured:
ls -la /etc/openvas/gnupg/Run feed sync manually with verbose output:
sudo greenbone-feed-sync --verboseVerify PostgreSQL is running:
sudo -u postgres pg_isreadyCheck database exists:
sudo -u postgres psql -l | grep gvmdVerify Redis socket exists:
ls -la /run/redis-openvas/redis.sockTest Redis connection:
redis-cli -s /run/redis-openvas/redis.sock ping| File | Description |
|---|---|
openvas-setup |
Initial system setup and configuration |
openvas-start |
Start all GCE services |
openvas-stop |
Stop all GCE services |
openvas-feed-update |
Update all feed data |
gvm-check-setup |
Verify installation completeness |
redis.conf |
Redis configuration template for OpenVAS |
These scripts are released under the GNU General Public License v3.0. See LICENSE file for details.
- Greenbone Community Documentation
- Greenbone Community Forum
- OpenVAS Scanner Repository
- GVM Daemon Repository
Contributions are welcome! Please ensure your changes are compatible with the latest Greenbone Community Edition release.