Bug 1506848

Summary: The default firewall for Modular Server disallows access to Cockpit
Product: [Fedora] Fedora Reporter: Stephen Gallagher <sgallagh>
Component: fedora-modular-releaseAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 27CC: sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-28 11:08:26 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:
Bug Depends On:    
Bug Blocks: 1492240    

Description Stephen Gallagher 2017-10-27 01:20:20 UTC
Description of problem:
One of the requirements for Server Edition is that Cockpit must be accessible after a default installation from the install media. The current firewall configuration disallows access to the Cockpit port (9090).

Version-Release number of selected component (if applicable):
fedora-modular-release-27-6.module_8a5444d0.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Install Fedora Modular Server
2. Log in locally
3. Run `firewall-cmd --list-all`

Actual results:
"cockpit" is not listed as an accessible service

Expected results:
"cockpit" should be allowed by the default firewall rules.

Additional info:

Comment 1 Stephen Gallagher 2017-10-27 12:57:57 UTC
The new version of the fedora-modular-release package now reports itself with VARIANT_ID=server. This should indicate to firewalld that it should use the Fedora Server default firewall which allows Cockpit.

Comment 2 Stephen Gallagher 2017-10-28 11:08:26 UTC
Confirmed fixed in compose Fedora-Modular-27-20171027.n.2

```
[root@fonts ~]# firewall-cmd --list-all
FedoraServer (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens3
  sources: 
  services: ssh dhcpv6-client cockpit
  ports: 
  protocols: 
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 

```