2008-12-07 19:17:26 +01:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# Shorewall -- /usr/share/shorewall/macro.IPPserver
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# This macro handles Internet Printing Protocol (IPP), indicating
|
|
|
|
# that DEST is a printing server for SOURCE. The macro allows
|
|
|
|
# print queue broadcasts from the server to the client, and
|
|
|
|
# printing connections from the client to the server.
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# Example usage on a single-interface firewall which is a print client:
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# IPPserver(ACCEPT) $FW net
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# Example for a two-interface firewall which acts as a print server for loc:
|
2010-09-27 20:16:18 +02:00
|
|
|
#
|
2016-02-15 17:20:39 +01:00
|
|
|
# IPPserver(ACCEPT) loc $FW
|
|
|
|
#
|
|
|
|
# NOTE: If you want both to serve requests for local printers and listen to
|
|
|
|
# requests for remote printers (i.e. your CUPS server is also a client),
|
|
|
|
# you need to apply the rule twice, e.g.
|
|
|
|
#
|
|
|
|
# IPPserver(ACCEPT) loc $FW
|
|
|
|
# IPPserver(ACCEPT) $FW loc
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
###############################################################################
|
2016-02-15 17:20:39 +01:00
|
|
|
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER
|
|
|
|
|
2008-12-07 19:17:26 +01:00
|
|
|
PARAM SOURCE DEST tcp 631
|
|
|
|
PARAM DEST SOURCE udp 631
|