mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
Precompiled Binaries
This directory contains precompiled RustDesk server binaries with enhanced ban enforcement.
Files
- hbbs-v8 - Signal server (HBBS) with bidirectional ban enforcement
- hbbr-v8 - Relay server (HBBR) with bidirectional ban enforcement
Features (v8)
Bidirectional Ban Enforcement
The v8 binaries include comprehensive ban checking:
-
Source Device Ban Check
- Prevents banned devices from initiating any connections
- Blocks at punch hole request stage (P2P)
- Blocks at relay request stage (relay connections)
-
Target Device Ban Check
- Prevents connections to banned devices
- Protects banned devices from receiving unwanted connection attempts
-
Real-time Database Sync
- Ban status checked against SQLite database
- Instant enforcement when devices are banned via web console
- No server restart required
Technical Details
- Base Version: RustDesk Server v1.1.14
- Compiled: January 2026
- Architecture: x86_64 Linux
- Dependencies: rusqlite (for ban database access)
- Build Script: build.sh
Patches Applied
These binaries include the following patches:
- Cargo.toml: Add rusqlite dependency
- database.rs:
is_device_banned()async function - peer.rs:
update_pk()- ban check at registrationfind_by_addr()- map socket address to device ID
- rendezvous_server.rs:
handle_punch_hole_request()- dual ban check - relay_server.rs:
handle_relay_request()- dual ban check
Installation
These binaries are automatically used by install.sh:
sudo ./install.sh
The installer will:
- Create backup of existing binaries
- Copy hbbs-v8 and hbbr-v8 to /opt/rustdesk/
- Set correct permissions
- Restart services
Manual Installation
If you prefer manual installation:
# Backup existing binaries
sudo cp /opt/rustdesk/hbbs /opt/rustdesk/hbbs.backup
sudo cp /opt/rustdesk/hbbr /opt/rustdesk/hbbr.backup
# Install new binaries
sudo cp hbbs-v8 /opt/rustdesk/hbbs
sudo cp hbbr-v8 /opt/rustdesk/hbbr
sudo chmod +x /opt/rustdesk/hbbs /opt/rustdesk/hbbr
# Restart services
sudo systemctl restart rustdesksignal.service
sudo systemctl restart rustdeskrelay.service
Verification
After installation, verify ban enforcement:
# Check logs for ban enforcement messages
sudo tail -f /var/log/rustdesk/signalserver.log
# Ban a device via web console: http://YOUR_SERVER_IP:5000
# Look for these log messages:
# - "WARN Blocked loading banned device [ID] from database"
# - "Punch hole REJECTED - initiator [ID] is banned"
# - "Punch hole REJECTED - target [ID] is banned"
# - "Relay REJECTED - initiator [ID] is banned"
# - "Relay REJECTED - target [ID] is banned"
Rebuild from Source
If you need to rebuild these binaries:
cd ../
./build.sh
The build script will:
- Clone RustDesk Server v1.1.14
- Apply all patches automatically
- Compile HBBS and HBBR
- Create installation package
Build time: ~15-20 minutes on modern hardware
Security Notes
- These binaries are compiled from audited source code
- All patches are documented in BAN_ENFORCEMENT.md
- Security audit available: SECURITY_AUDIT.md
- No network calls except RustDesk protocol
- Database access is read-only for ban checks
Compatibility
- OS: Linux x86_64 (tested on Ubuntu 20.04+, Debian 11+)
- RustDesk Client: All versions compatible with v1.1.14 server
- Database: SQLite 3 (db_v2.sqlite3 with ban columns)
Support
For issues or questions:
- Check BAN_ENFORCEMENT.md for troubleshooting
- Review SECURITY_AUDIT.md for security concerns
- See QUICKSTART.md for quick setup guide
License
Same as RustDesk Server: AGPLv3