xref: /aosp_15_r20/external/libcups/doc/help/firewalls.html (revision 5e7646d21f1134fb0638875d812ef646c12ab91e)
1*5e7646d2SAndroid Build Coastguard Worker<!DOCTYPE html>
2*5e7646d2SAndroid Build Coastguard Worker<html>
3*5e7646d2SAndroid Build Coastguard Worker<!-- SECTION: Getting Started -->
4*5e7646d2SAndroid Build Coastguard Worker  <head>
5*5e7646d2SAndroid Build Coastguard Worker    <title>Firewalls</title>
6*5e7646d2SAndroid Build Coastguard Worker    <link rel="stylesheet" type="text/css" href="../cups-printable.css">
7*5e7646d2SAndroid Build Coastguard Worker  </head>
8*5e7646d2SAndroid Build Coastguard Worker  <body>
9*5e7646d2SAndroid Build Coastguard Worker    <h1 class="title">Firewalls</h1>
10*5e7646d2SAndroid Build Coastguard Worker
11*5e7646d2SAndroid Build Coastguard Worker    <p>This help document describes the ports that CUPS uses so that firewall administrators can allow traffic used for printing.</p>
12*5e7646d2SAndroid Build Coastguard Worker
13*5e7646d2SAndroid Build Coastguard Worker    <h2 class="title" id="SHARING">Ports Used for Printer Sharing</h2>
14*5e7646d2SAndroid Build Coastguard Worker
15*5e7646d2SAndroid Build Coastguard Worker    <p>Table 1 lists the ports that are used for IPP printer sharing via CUPS.</p>
16*5e7646d2SAndroid Build Coastguard Worker
17*5e7646d2SAndroid Build Coastguard Worker    <div class="table"><table summary="Ports Used for IPP Printer Sharing">
18*5e7646d2SAndroid Build Coastguard Worker      <caption>Table 1: Ports Used for IPP Printer Sharing</caption>
19*5e7646d2SAndroid Build Coastguard Worker      <thead>
20*5e7646d2SAndroid Build Coastguard Worker        <tr><th>(Destination) Port</th><th>TCP/UDP</th><th>Direction</th><th>Description</th></tr>
21*5e7646d2SAndroid Build Coastguard Worker      </thead>
22*5e7646d2SAndroid Build Coastguard Worker      <tbody>
23*5e7646d2SAndroid Build Coastguard Worker        <tr><td>53&nbsp;(DNS)</td><td>TCP/UDP</td><td>OUT</td><td>Domain Name System lookups and service registrations.</td></tr>
24*5e7646d2SAndroid Build Coastguard Worker        <tr><td>631&nbsp;(IPP/IPPS)</td><td>TCP</td><td>IN</td><td>Internet Printing Protocol requests and responses (print jobs, status monitoring, etc.)</td></tr>
25*5e7646d2SAndroid Build Coastguard Worker        <tr><td>5353&nbsp;(mDNS)</td><td>UDP</td><td>IN+OUT</td><td>Multicast DNS lookups and service registrations.</td></tr>
26*5e7646d2SAndroid Build Coastguard Worker      </tbody>
27*5e7646d2SAndroid Build Coastguard Worker    </table></div>
28*5e7646d2SAndroid Build Coastguard Worker
29*5e7646d2SAndroid Build Coastguard Worker    <p>Table 2 lists the ports that are used for SMB (Windows) printer sharing, typically via the Samba software.</p>
30*5e7646d2SAndroid Build Coastguard Worker
31*5e7646d2SAndroid Build Coastguard Worker    <div class="table"><table summary="Ports Used for SMB Printer Sharing">
32*5e7646d2SAndroid Build Coastguard Worker      <caption>Table 2: Ports Used for SMB Printer Sharing</caption>
33*5e7646d2SAndroid Build Coastguard Worker      <thead>
34*5e7646d2SAndroid Build Coastguard Worker        <tr><th>(Destination) Port(s)</th><th>TCP/UDP</th><th>Direction</th><th>Description</th></tr>
35*5e7646d2SAndroid Build Coastguard Worker      </thead>
36*5e7646d2SAndroid Build Coastguard Worker      <tbody>
37*5e7646d2SAndroid Build Coastguard Worker        <tr><td>137&nbsp;(WINS)</td><td>UDP</td><td>IN+OUT</td><td>Windows Internet Naming Service (name lookup for SMB printing).</td></tr>
38*5e7646d2SAndroid Build Coastguard Worker        <tr><td>139&nbsp;(SMB)</td><td>TCP</td><td>IN</td><td>Windows SMB printing.</td></tr>
39*5e7646d2SAndroid Build Coastguard Worker        <tr><td>445&nbsp;(SMBDS)</td><td>TCP</td><td>IN+OUT</td><td>Windows SMB Domain Server (authenticated SMB printing).</td></tr>
40*5e7646d2SAndroid Build Coastguard Worker      </tbody>
41*5e7646d2SAndroid Build Coastguard Worker    </table></div>
42*5e7646d2SAndroid Build Coastguard Worker
43*5e7646d2SAndroid Build Coastguard Worker
44*5e7646d2SAndroid Build Coastguard Worker    <h2 class="title" id="PRINTERS">Ports Used for Network Printers</h2>
45*5e7646d2SAndroid Build Coastguard Worker
46*5e7646d2SAndroid Build Coastguard Worker    <p>Table 3 lists the ports for outgoing network traffic that are used for network printers.</p>
47*5e7646d2SAndroid Build Coastguard Worker
48*5e7646d2SAndroid Build Coastguard Worker    <blockquote><b>Notes:</b>
49*5e7646d2SAndroid Build Coastguard Worker      <ol>
50*5e7646d2SAndroid Build Coastguard Worker        <li>DNS and mDNS are used for all printing protocols except SMB.</li>
51*5e7646d2SAndroid Build Coastguard Worker        <li>SNMP is used to provide status and supply level information for AppSocket and LPD printers.</li>
52*5e7646d2SAndroid Build Coastguard Worker      </ol>
53*5e7646d2SAndroid Build Coastguard Worker    </blockquote>
54*5e7646d2SAndroid Build Coastguard Worker
55*5e7646d2SAndroid Build Coastguard Worker    <div class="table"><table summary="Outgoing Ports Used for Network Printers">
56*5e7646d2SAndroid Build Coastguard Worker      <caption>Table 3: Outgoing Ports Used for Network Printers</caption>
57*5e7646d2SAndroid Build Coastguard Worker      <thead>
58*5e7646d2SAndroid Build Coastguard Worker        <tr><th>(Destination) Port(s)</th><th>TCP/UDP</th><th>Description</th></tr>
59*5e7646d2SAndroid Build Coastguard Worker      </thead>
60*5e7646d2SAndroid Build Coastguard Worker      <tbody>
61*5e7646d2SAndroid Build Coastguard Worker        <tr><td>53&nbsp;(DNS)</td><td>TCP/UDP</td><td>Domain Name System lookups.</td></tr>
62*5e7646d2SAndroid Build Coastguard Worker        <tr><td>137&nbsp;(WINS)</td><td>UDP</td><td>Windows Internet Naming Service (name lookup for SMB printing).</td></tr>
63*5e7646d2SAndroid Build Coastguard Worker        <tr><td>139&nbsp;(SMB)</td><td>TCP</td><td>Windows SMB printing.</td></tr>
64*5e7646d2SAndroid Build Coastguard Worker        <tr><td>161&nbsp;(SNMP)</td><td>UDP</td><td>SNMP browsing (broadcast) and status monitoring (directed to printer IP address).</td></tr>
65*5e7646d2SAndroid Build Coastguard Worker        <tr><td>443&nbsp;(IPPS)</td><td>TCP</td><td>Internet Printing Protocol requests and responses (print jobs, status monitoring, etc.)</td></tr>
66*5e7646d2SAndroid Build Coastguard Worker        <tr><td>445&nbsp;(SMBDS)</td><td>TCP</td><td>Windows SMB Domain Server (authenticated SMB printing).</td></tr>
67*5e7646d2SAndroid Build Coastguard Worker        <tr><td>515&nbsp;(LPD)</td><td>TCP</td><td>Line Printer Daemon (LPD/lpr) print job submission and status monitoring.</td></tr>
68*5e7646d2SAndroid Build Coastguard Worker        <tr><td>631&nbsp;(IPP/IPPS)</td><td>TCP</td><td>Internet Printing Protocol requests and responses (print jobs, status monitoring, etc.)</td></tr>
69*5e7646d2SAndroid Build Coastguard Worker        <tr><td>5353&nbsp;(mDNS)</td><td>UDP</td><td>Multicast DNS lookups.</td></tr>
70*5e7646d2SAndroid Build Coastguard Worker        <tr><td>9100-9102</td><td>TCP</td><td>Raw print data stream (AppSocket/JetDirect).</td></tr>
71*5e7646d2SAndroid Build Coastguard Worker      </tbody>
72*5e7646d2SAndroid Build Coastguard Worker    </table></div>
73*5e7646d2SAndroid Build Coastguard Worker  </body>
74*5e7646d2SAndroid Build Coastguard Worker</html>
75