<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://piszczynski.com/index.php?action=history&amp;feed=atom&amp;title=Firewalld</id>
	<title>Firewalld - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://piszczynski.com/index.php?action=history&amp;feed=atom&amp;title=Firewalld"/>
	<link rel="alternate" type="text/html" href="http://piszczynski.com/index.php?title=Firewalld&amp;action=history"/>
	<updated>2026-10-25T19:12:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://piszczynski.com/index.php?title=Firewalld&amp;diff=1155&amp;oldid=prev</id>
		<title>Aleks: Created page with &quot;== Edit firewalld service on redhat linux == Check service:&lt;syntaxhighlight lang=&quot;bash&quot;&gt; sudo firewall-cmd --state # check service state  systemctl status firewalld # check service is running &lt;/syntaxhighlight&gt;Check Firewall rules:&lt;syntaxhighlight lang=&quot;bash&quot;&gt; sudo firewall-cmd --get-active-zones # list active zones  sudo firewall-cmd --list-all # list firewall rules  sudo firewall-cmd --list-ports # list only open ports  sudo firewall-cmd --list-services # list allowed...&quot;</title>
		<link rel="alternate" type="text/html" href="http://piszczynski.com/index.php?title=Firewalld&amp;diff=1155&amp;oldid=prev"/>
		<updated>2026-02-04T15:53:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Edit firewalld service on redhat linux == Check service:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo firewall-cmd --state # check service state  systemctl status firewalld # check service is running &amp;lt;/syntaxhighlight&amp;gt;Check Firewall rules:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo firewall-cmd --get-active-zones # list active zones  sudo firewall-cmd --list-all # list firewall rules  sudo firewall-cmd --list-ports # list only open ports  sudo firewall-cmd --list-services # list allowed...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Edit firewalld service on redhat linux ==&lt;br /&gt;
Check service:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewall-cmd --state # check service state&lt;br /&gt;
&lt;br /&gt;
systemctl status firewalld # check service is running&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Check Firewall rules:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewall-cmd --get-active-zones # list active zones&lt;br /&gt;
&lt;br /&gt;
sudo firewall-cmd --list-all # list firewall rules&lt;br /&gt;
&lt;br /&gt;
sudo firewall-cmd --list-ports # list only open ports&lt;br /&gt;
&lt;br /&gt;
sudo firewall-cmd --list-services # list allowed services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Add port to allow on firewall:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo firewall-cmd --add-port=&amp;lt;port number&amp;gt;/tcp # add port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sudo firewall-cmd --add-port=&amp;lt;port number&amp;gt;/tcp --permanent # add port permenatly&lt;br /&gt;
sudo firewall-cmd --reload # reload service to apply change&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Add firewall rules as services:&lt;br /&gt;
&lt;br /&gt;
Check service files:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cat /etc/firewalld/services/&amp;lt;servicename&amp;gt;.xml # check service file&lt;br /&gt;
&lt;br /&gt;
nano /etc/firewalld/services/&amp;lt;servicename&amp;gt;.xml # create new service file&lt;br /&gt;
&lt;br /&gt;
#example xml defining the service&lt;br /&gt;
&amp;lt;service&amp;gt;&lt;br /&gt;
  &amp;lt;short&amp;gt;Service Name&amp;lt;/short&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;Description of the service&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;port protocol=&amp;quot;tcp&amp;quot; port=&amp;quot;&amp;lt;port numbers&amp;gt;&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/service&amp;gt;&lt;br /&gt;
&lt;br /&gt;
firewall-cmd --reload # reload so firewalld can see the service&lt;br /&gt;
&lt;br /&gt;
firewall-cmd --zone=public --add-service=&amp;lt;service name&amp;gt; --permanent # apply the service to the &amp;quot;public zone&amp;quot;&lt;br /&gt;
&lt;br /&gt;
firewall-cmd --reload # reload to apply the change&lt;br /&gt;
&lt;br /&gt;
firewall-cmd --zone=public --list-services # check active services to confirm change&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aleks</name></author>
	</entry>
</feed>