Running the QuickBooks Enterprise Database Server Manager on Linux provides stable, cost-effective hosting for multi-user networks. However, because Linux does not use the Windows Defender engine, administrators must configure Linux packet filters (such as iptables, firewalld, or ufw) to handle QuickBooks database requests. If your Linux firewall configuration drops incoming client handshakes or blocks dynamic port allocation, workstations will immediately display network connectivity failures. Setting up specific rules for port 8019, your version’s dynamic database ports, and the Samba file-sharing daemon ensures reliable multi-user access.
Fast-Fix: The 45-Second Solution
To configure a Linux firewall for QuickBooks hosting, allow inbound TCP port 8019, TCP port 55368–55372 (or your version-specific port), and standard Samba file sharing ports (UDP 137, 138; TCP 139, 445). On
firewalld, run:sudo firewall-cmd --permanent --add-port={8019/tcp,55368-55372/tcp,139/tcp,445/tcp}sudo firewall-cmd --permanent --add-port={137/udp,138/udp}sudo firewall-cmd --reload
Quick Status & Triage Snapshot
- Data Risk Tier: Low (firewall misconfigurations prevent client access but do not damage Linux server file blocks).
- Multi-User Impact: Critical (all Windows workstations will fail to open files hosted on the Linux share).
- Common Trigger: Initial server installation, upgrading the Linux kernel, or transitioning to a newer QuickBooks Enterprise version.
- Estimated Fix Time: 15–20 minutes.
Technical Architecture: Linux QuickBooks Hosting
In a Linux-hosted environment, two distinct software components handle QuickBooks data:
- Samba (
smbd/nmbd): Exposes the Linux storage directory as an SMB network share to Windows client workstations. - QuickBooks Database Server Manager Engine (
qbdbmgrd): An adapted Sybase-based database daemon provided by Intuit for enterprise environments.
When a Windows workstation attempts to open a company file located on a Linux server:
- The client connects to the Samba share using SMB ports (TCP 445 and 139) to locate the
.qbwfile. - Once the file is opened, QuickBooks contacts the Database Server Manager daemon over TCP port 8019 to negotiate database management.
- The daemon assigns a specific high-range TCP listening port to manage database operations for that active company file.
If any of these ports are closed in the Linux firewall, workstations cannot complete the handshake and will throw errors such as 6000-series disconnects. For detailed steps on fixing database server startup issues on Linux, read Linux Server Guide: Troubleshooting Error 6000 on Database Manager.
Essential Port Reference for Linux Hosting
Configure your Linux firewall to permit inbound traffic on the following ports:
- TCP Port 8019: The primary connection port used by the QuickBooks Database Server Manager.
- TCP Dynamic Database Ports: Assigned based on your software version:
- QuickBooks Desktop Enterprise 2026: TCP 55373–55377
- QuickBooks Desktop Enterprise 2024–2025: TCP 55368–55372
- QuickBooks Desktop Enterprise 2023: TCP 55363–55367
- Samba SMB Ports:
- UDP 137, 138: NetBIOS Name and Datagram service.
- TCP 139: NetBIOS Session service.
- TCP 445: Direct SMB traffic without NetBIOS.
Configuring the Firewall on Linux Distributions
Choose the procedure that matches your Linux distribution’s firewall utility.
Option 1: Configuring RHEL, Rocky Linux, AlmaLinux, or CentOS (firewalld)
Enterprise Linux environments typically manage packet filtering via firewalld:
- Open a terminal session with root or
sudoprivileges. - Add the core QuickBooks connection port:
sudo firewall-cmd --permanent --zone=public --add-port=8019/tcp - Add the database port range (adjusting for your version):
sudo firewall-cmd --permanent --zone=public --add-port=55368-55372/tcp - Add the Samba service rules:
sudo firewall-cmd --permanent --zone=public --add-service=samba - Alternatively, allow specific Samba ports manually:
sudo firewall-cmd --permanent --zone=public --add-port=139/tcp --add-port=445/tcpsudo firewall-cmd --permanent --zone=public --add-port=137-138/udp - Reload the firewall to apply changes permanently:
sudo firewall-cmd --reload - Verify open ports:
sudo firewall-cmd --list-ports
Option 2: Configuring Ubuntu or Debian (ufw)
If your Linux host runs Ubuntu Server:
- Open a terminal session.
- Enable port 8019:
sudo ufw allow 8019/tcp comment 'QuickBooks DB Manager' - Enable your version’s database port range:
sudo ufw allow 55368:55372/tcp comment 'QuickBooks Dynamic Ports' - Allow Samba traffic from your local subnet (example:
192.168.1.0/24):sudo ufw allow from 192.168.1.0/24 to any app Samba - If not restricting by subnet, enable direct ports:
sudo ufw allow 139/tcpsudo ufw allow 445/tcpsudo ufw allow 137/udpsudo ufw allow 138/udp - Reload and check status:
sudo ufw reloadsudo ufw status verbose
Option 3: Manual iptables Configuration
For environments using raw iptables rules, append the following lines to your firewall configuration script:
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 8019 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m multiport --dports 55368:55372 -j ACCEPT
iptables -A INPUT -p tcp -m state --state NEW -m multiport --dports 139,445 -j ACCEPT
iptables -A INPUT -p udp -m state --state NEW -m multiport --dports 137,138 -j ACCEPT
Save your rules using iptables-save to ensure persistence across system reboots.
Testing Connectivity from Windows Workstations
After applying your firewall rules, test the connection from a Windows workstation before opening QuickBooks:
- Open PowerShell on a Windows workstation.
- Test whether the Linux Samba port is listening:
Test-NetConnection -ComputerName [Linux_Server_IP] -Port 445- Ensure
TcpTestSucceededreturnsTrue.
- Ensure
- Test QuickBooks database manager responsiveness:
Test-NetConnection -ComputerName [Linux_Server_IP] -Port 8019- Ensure
TcpTestSucceededreturnsTrue.
- Ensure
For advanced diagnostic techniques using command-line network tools, refer to Connectivity Tools: Using Ping and Telnet to Test QuickBooks Servers.
Deeper Diagnostic Escalation
If workstation tests fail despite opening all ports on your Linux server, check these common underlying issues:
- SELinux Enforcement Blocking Daemon Sockets: On RHEL-based distributions, Security-Enhanced Linux (SELinux) may prevent
qbdbmgrdfrom binding to dynamic ports. Runsudo getsebool -a | grep sambaand review audit logs (/var/log/audit/audit.log) for denied operations. - Dynamic Database Manager Failures: If port 8019 responds but high ports fail to open, the database daemon may have crashed or failed to read the company file folder. Review Database Server Manager: Troubleshooting “Network Diagnostics Failed” and reinstall the service using the instructions in QBDBSM Guide: How to Install and Configure Database Server Manager.
- Port Assignment Mismatch: If your company file was updated or the year version changed, the daemon will listen on an unmapped port. Review Port 8019 Fix: The Key to Solving Most QuickBooks Connection Issues to confirm your exact port ranges.
Closing the Books
Configuring a Linux server firewall for QuickBooks hosting is straightforward once you know the exact ports the client-server architecture requires. By explicitly permitting traffic on port 8019, your version’s dynamic database ports, and the standard Samba SMB ports, you establish a fast, stable, and secure repository for your multi-user QuickBooks environment.