Wednesday, October 16, 2013

Fedora 19 - firewalld : open httpd port 80


https://fedoraproject.org/wiki/FirewallD

http://liquidat.wordpress.com/2013/04/09/howto-firewalld-basics/

 # firewall-cmd --state

   -> running

 firewall-cmd --get-active-zones
 public
  interfaces: p1p1

 firewall-cmd --get-zones
 work drop internal external trusted home dmz public block

 firewall-cmd --get-active-zones
public
  interfaces: p1p1


 firewall-cmd --get-services
 cluster-suite kpasswd bacula-client smtp ipp radius mysql ms-wbt bacula transmission-client ftp mdns  samba pmproxy dhcpv6-client rpc-bind ldaps https ldap dhcp imaps samba-client vnc-server http dns  pmwebapi ntp kerberos telnet libvirt openvpn ssh pmwebapis pmcd ipsec postgresql ipp-client proxy-dhcp  amanda-client mountd tftp-client dhcpv6 nfs tftp pop3s libvirt-tls

 # firewall-cmd --zone=public --add-service=http
 -> success

after reboot :

# firewall-cmd --zone=public --list-services
 -> mdns dhcpv6-client ssh

# firewall-cmd --zone=public --add-service=http
 -> success

# firewall-cmd --zone=public --add-service=https
 -> success

 firewall-cmd --zone=public --list-services
mdns dhcpv6-client http ssh https

 firewall-cmd --permanent --zone=public --list-services

ssh mdns dhcpv6-client

firewall-cmd --permanent --zone=public --add-service=https
success

firewall-cmd --permanent --zone=public --add-service=http
success

 firewall-cmd --permanent --zone=public --list-services
mdns http dhcpv6-client https ssh



~ ~ ~ 


# system-config-firewall

bash: system-config-firewall: command not found...

[root@nut ~]#

[root@nut ~]# yum install system-config-firewall
Loaded plugins: langpacks, refresh-packagekit
adobe-linux-x86_64                                                                                     
fedora-chromium-stable                                                                                 
google-chrome                                                                                          
updates/19/x86_64/metalink                                                                            
google-chrome/primary                                                                                 
google-chrome                                                                                             
Resolving Dependencies
--> Running transaction check
---> Package system-config-firewall.noarch 0:1.2.29-9.fc19 will be installed
--> Processing Dependency: system-config-firewall-tui = 1.2.29-9.fc19 for
           package: system-config-firewall-1.2.29-9.fc19.noarch

--> Processing Dependency: system-config-firewall-base = 1.2.29-9.fc19 for
           package: system-config-firewall-1.2.29-9.fc19.noarch

--> Running transaction check
---> Package system-config-firewall-base.noarch 0:1.2.29-9.fc19 will be installed
---> Package system-config-firewall-tui.noarch 0:1.2.29-9.fc19 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


=====================================================================

 Package                                    Arch                  Version                         Repository             Size
=====================================================================
Installing:
 system-config-firewall                      noarch                1.2.29-9.fc19                   fedora                118 k
Installing for dependencies:
 system-config-firewall-base             noarch                1.2.29-9.fc19                   fedora                414 k
 system-config-firewall-tui                 noarch                1.2.29-9.fc19                   fedora                 38 k

Transaction Summary

======================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 571 k

Installed size: 2.9 M



# system-config-firewall

ERROR: FirewallD is active, please use firewall-cmd.

CONCLUSION :
It seems that the firewall daemon is independent to system-config-firewall, 

and they can't be used at the same time ;



No comments:

Post a Comment