Windows Firewall for Quickbooks

article #844, updated 645 days ago

Create the following as a batch file and run it, client and server, 64- or 32-bit:

@echo off
IF "%~1"=="" (
	echo QBapps 
	echo Required parameter: QuickBooks software version number, e.g., 2014
	echo Example:  QBapps 2014
	exit /B
)
IF EXIST "%ProgramFiles(x86)%" (SET PGMFILES="%ProgramFiles(x86)") ELSE (SET PGMFILES="ProgramFiles")
netsh advfirewall firewall add rule name="QBCFMonitorService" dir=in action=allow program="%PGMFILES%\Common Files\Intuit\QuickBooks\QBCFMonitorService.exe"
netsh advfirewall firewall add rule name="QBupdate" dir=in action=allow program="%PGMFILES%\Common Files\Intuit\QuickBooks\QBupdate\QBupdate.exe"
netsh advfirewall firewall add rule name="QBDBMgrN" dir=in action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBDBMgrN.exe"
netsh advfirewall firewall add rule name="QBDBMgr" dir=in action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBDBMgr.exe"
netsh advfirewall firewall add rule name="QBW32" dir=in action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBW32.exe"
netsh advfirewall firewall add rule name="QBCFMonitorService" dir=out action=allow program="%PGMFILES%\Common Files\Intuit\QuickBooks\QBCFMonitorService.exe"
netsh advfirewall firewall add rule name="QBupdate" dir=out action=allow program="%PGMFILES%\Common Files\Intuit\QuickBooks\QBupdate\QBupdate.exe"
netsh advfirewall firewall add rule name="QBDBMgrN" dir=out action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBDBMgrN.exe"
netsh advfirewall firewall add rule name="QBDBMgr" dir=out action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBDBMgr.exe"
netsh advfirewall firewall add rule name="QBW32" dir=out action=allow program="%PGMFILES%\Intuit\QuickBooks %1\QBW32.exe"

Previous recommendations are below.

http://payroll.intuit.com/support/kb/1000504.html

http://support.quickbooks.intuit.com/support/Articles/SLN41458

Combing the above, I found the following list of ports.

  • QuickBooks 2015: 8019, 56725, 55363-55367
  • QuickBooks 2014: 8019, 56724, 55358-55362
  • QuickBooks 2013: 8019, 56723, 55353-55357
  • QuickBooks 2012: 8019, 56722, 55348-55352
  • QuickBooks 2011: 8019, 56721, 55343-55347
  • QuickBooks 2010: 8019, 56720, 55338-55342
  • QuickBooks 2009: 8019, 56719, 55333-55337
  • QuickBooks 2008 and 2007: 10172
  • QuickBooks 2006: 10160

Here are a list of commands, suitable for an administrative command prompt, to be run on server and workstation to generate the port exceptions above.

netsh advfirewall firewall add rule name="Quickbooks General" dir=in action=allow protocol=TCP localport=8019
netsh advfirewall firewall add rule name="Quickbooks 2015 1" dir=in action=allow protocol=TCP localport=56725
netsh advfirewall firewall add rule name="Quickbooks 2015 2" dir=in action=allow protocol=TCP localport=55363-55367
netsh advfirewall firewall add rule name="Quickbooks 2014 1" dir=in action=allow protocol=TCP localport=56724
netsh advfirewall firewall add rule name="Quickbooks 2014 2" dir=in action=allow protocol=TCP localport=55358-55362
netsh advfirewall firewall add rule name="Quickbooks 2013 1" dir=in action=allow protocol=TCP localport=56723
netsh advfirewall firewall add rule name="Quickbooks 2013 2" dir=in action=allow protocol=TCP localport=55353-55357
netsh advfirewall firewall add rule name="Quickbooks 2012 1" dir=in action=allow protocol=TCP localport=56722
netsh advfirewall firewall add rule name="Quickbooks 2012 2" dir=in action=allow protocol=TCP localport=55348-55352
netsh advfirewall firewall add rule name="Quickbooks 2011 1" dir=in action=allow protocol=TCP localport=56721
netsh advfirewall firewall add rule name="Quickbooks 2011 2" dir=in action=allow protocol=TCP localport=55343-55347
netsh advfirewall firewall add rule name="Quickbooks 2010 1" dir=in action=allow protocol=TCP localport=56720
netsh advfirewall firewall add rule name="Quickbooks 2010 2" dir=in action=allow protocol=TCP localport=55338-55342
netsh advfirewall firewall add rule name="Quickbooks 2009 1" dir=in action=allow protocol=TCP localport=56719
netsh advfirewall firewall add rule name="Quickbooks 2009 2" dir=in action=allow protocol=TCP localport=55333-55337
netsh advfirewall firewall add rule name="Quickbooks 2007-8 1" dir=in action=allow protocol=TCP localport=10172
netsh advfirewall firewall add rule name="Quickbooks 2006 1" dir=in action=allow protocol=TCP localport=10160
netsh advfirewall firewall add rule name="Quickbooks General" dir=out action=allow protocol=TCP localport=8019
netsh advfirewall firewall add rule name="Quickbooks 2015 1" dir=out action=allow protocol=TCP localport=56725
netsh advfirewall firewall add rule name="Quickbooks 2015 2" dir=out action=allow protocol=TCP localport=55363-55367
netsh advfirewall firewall add rule name="Quickbooks 2014 1" dir=out action=allow protocol=TCP localport=56724
netsh advfirewall firewall add rule name="Quickbooks 2014 2" dir=out action=allow protocol=TCP localport=55358-55362
netsh advfirewall firewall add rule name="Quickbooks 2013 1" dir=out action=allow protocol=TCP localport=56723
netsh advfirewall firewall add rule name="Quickbooks 2013 2" dir=out action=allow protocol=TCP localport=55353-55357
netsh advfirewall firewall add rule name="Quickbooks 2012 1" dir=out action=allow protocol=TCP localport=56722
netsh advfirewall firewall add rule name="Quickbooks 2012 2" dir=out action=allow protocol=TCP localport=55348-55352
netsh advfirewall firewall add rule name="Quickbooks 2011 1" dir=out action=allow protocol=TCP localport=56721
netsh advfirewall firewall add rule name="Quickbooks 2011 2" dir=out action=allow protocol=TCP localport=55343-55347
netsh advfirewall firewall add rule name="Quickbooks 2010 1" dir=out action=allow protocol=TCP localport=56720
netsh advfirewall firewall add rule name="Quickbooks 2010 2" dir=out action=allow protocol=TCP localport=55338-55342
netsh advfirewall firewall add rule name="Quickbooks 2009 1" dir=out action=allow protocol=TCP localport=56719
netsh advfirewall firewall add rule name="Quickbooks 2009 2" dir=out action=allow protocol=TCP localport=55333-55337
netsh advfirewall firewall add rule name="Quickbooks 2007-8 1" dir=out action=allow protocol=TCP localport=10172
netsh advfirewall firewall add rule name="Quickbooks 2006 1" dir=out action=allow protocol=TCP localport=10160

Categories: