Comprehensive utility tools for managing and monitoring Qubes SDP.
Complete status overview of all SDP qubes.
./qubes-status.shShows:
- Qube state (running/halted)
- Memory allocation
- Network configuration
- Disk usage
- Security checks
- System resources
Interactive real-time dashboard with auto-refresh.
./qubes-dashboard.shFeatures:
- Live system resource monitoring
- Qube status with visual indicators
- Security status checks
- Recent activity log
- Interactive commands
Analyzes firewall rules across all SDP qubes.
./qubes-firewall-analyzer.shProvides:
- Rule visualization
- Security level assessment
- Recommendations
- Rule management commands
Manages templates used by SDP qubes.
# Show template status
./qubes-template-manager.sh status
# Update all templates
./qubes-template-manager.sh update
# Install missing templates
./qubes-template-manager.sh install
# Clean package cache
./qubes-template-manager.sh clean
# Detailed information
./qubes-template-manager.sh infoValidates and manages backups.
# Default location
./qubes-backup-validator.sh
# Specific directory
./qubes-backup-validator.sh /path/to/backupsShows:
- Backup inventory
- Integrity verification
- Age analysis
- Cleanup recommendations
Guided disaster recovery and restore.
./qubes-restore.sh /path/to/backupFeatures:
- Backup verification
- Conflict detection
- Rename/replace/skip options
- Post-restore validation
- Recovery recommendations
Generates and manages qrexec policies.
# Show current policies
./qubes-policy-generator.sh show
# Generate recommended policies
./qubes-policy-generator.sh generate
# Apply policies
./qubes-policy-generator.sh apply
# Backup policies
./qubes-policy-generator.sh backup# Quick status check
./qubes-status.sh
# Start dashboard for continuous monitoring
./qubes-dashboard.sh# Update templates
./qubes-template-manager.sh update
# Check firewall rules
./qubes-firewall-analyzer.sh
# Verify backups
./qubes-backup-validator.sh
# Clean template cache
./qubes-template-manager.sh clean# Verify configuration
./qubes-status.sh
# Analyze firewall rules
./qubes-firewall-analyzer.sh
# Generate policies
./qubes-policy-generator.sh generate
./qubes-policy-generator.sh apply# Verify backup exists
./qubes-backup-validator.sh
# Restore from backup
./qubes-restore.sh /var/backups/qubes-sdp/backup-20240101All tools are integrated with Makefile.qubes:
# Status
make -f Makefile.qubes status
# Dashboard
make -f Makefile.qubes dashboard
# Firewall check
make -f Makefile.qubes firewall-check
# Template update
make -f Makefile.qubes template-update
# Backup validation
# (included in backup command)All tools require:
- Running in dom0
- Qubes OS 4.1+
- Standard Qubes commands (qvm-*, xl)
Optional dependencies:
- python3 (for dashboard)
- specific qubes for their respective checks
All tools use color-coded output:
- Green (✓): Success, secure, optimal
- Yellow (!): Warning, attention needed
- Red (✗): Error, insecure, critical
- Blue: Informational
- Cyan: Headers
# Daily status check (email on changes)
0 8 * * * /path/to/qubes-status.sh | mail -s "Qubes SDP Status" admin@example.com
# Weekly backup validation
0 9 * * 0 /path/to/qubes-backup-validator.sh
# Monthly template updates
0 2 1 * * /path/to/qubes-template-manager.sh update# /etc/systemd/system/qubes-status.timer
[Unit]
Description=Qubes SDP Status Check
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.targetEnsure scripts are executable:
chmod +x tools/*.shRun from dom0, not an AppVM:
hostname # Should output: dom0Tools gracefully handle missing qubes, showing "not created" status.
- Create script in tools/ directory
- Make executable:
chmod +x tools/new-tool.sh - Add to Makefile.qubes if appropriate
- Update this README
- Add help text with
-hflag
All tools support dry-run or read-only modes by default. They won't make changes unless explicitly requested.
- All tools run in dom0 (full system access)
- Review scripts before running
- Backup policies before applying changes
- Test in dry-run mode when available
Improvements welcome:
- Bug fixes
- New features
- Better visualizations
- Performance improvements
- Documentation updates