Bug 1273355

Summary: Java can not print when Masquerade enabled
Product: [Fedora] Fedora Reporter: hardillb <hardillb>
Component: firewalldAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: georgmueller, jpopelka, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: firewalld-0.4.0-2.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-21 16:30:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Java class to list printers none

Description hardillb@gmail.com 2015-10-20 09:24:02 UTC
Created attachment 1084667 [details]
Java class to list printers

Description of problem:
Java can not print when Masquerade is enabled

Version-Release number of selected component (if applicable):
firewalld-0.3.14.2-4.fc22


How reproducible:

Compile the attached Test.java


Steps to Reproduce:
1. Launch the Firewall Configuration tool
2. Check the Masquerade box
3. Run java Test

Actual results:
$ java Test 
Default PrintService: null
no PrintService found


Expected results:

$ java Test 
Default PrintService: IPP Printer : CUPSPDFPrinter
number of Services 6
printer name 1 CUPSPDFPrinter
accepting accepting-jobs
printer name 2 gbhurlaa
accepting accepting-jobs
printer name 3 gbhurlaa.confidential
accepting accepting-jobs
printer name 4 gbhurlh3
accepting accepting-jobs
printer name 5 gbhurlh3.confidential
accepting accepting-jobs
printer name 6 PostScript
accepting accepting-jobs

Additional info:

From looking at the cups ouput you can see that incoming connections that should be coming from localhost are coming in from the external ip address. When masquerading is disabled these connections come from 127.0.0.1

The masquerade rule added to iptables should exclude traffic to localhost

Comment 1 Georg Müller 2015-12-07 13:47:18 UTC
I had a similar issue with rabbitmq-server, which does not start due to masquerading issues.

I reported a bug upstream in firewalld:
https://github.com/t-woerner/firewalld/issues/61

Comment 2 Fedora Update System 2016-02-04 15:41:36 UTC
firewalld-0.4.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-fc0691e6a7

Comment 3 Fedora Update System 2016-02-05 01:23:50 UTC
firewalld-0.4.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-fc0691e6a7

Comment 4 Fedora Update System 2016-02-08 13:29:24 UTC
firewalld-0.4.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-fc0691e6a7

Comment 5 Fedora Update System 2016-02-09 22:27:59 UTC
firewalld-0.4.0-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-fc0691e6a7

Comment 6 Fedora Update System 2016-02-21 16:30:29 UTC
firewalld-0.4.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 hardillb@gmail.com 2016-02-21 17:12:57 UTC
Any chance of getting this built for F22 as well (where it was orginally reported)?

Comment 8 Jiri Popelka 2016-02-22 10:00:22 UTC
I don't think so, 0.4.0 has a lot changes.
But the package itself is 'noarch' so you should be good to go with the F23 one.