<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://devopsnotebook.com/index.php?action=history&amp;feed=atom&amp;title=Replace_firewalld_with_iptables_in_CentOS</id>
	<title>Replace firewalld with iptables in CentOS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://devopsnotebook.com/index.php?action=history&amp;feed=atom&amp;title=Replace_firewalld_with_iptables_in_CentOS"/>
	<link rel="alternate" type="text/html" href="https://devopsnotebook.com/index.php?title=Replace_firewalld_with_iptables_in_CentOS&amp;action=history"/>
	<updated>2026-04-23T17:50:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://devopsnotebook.com/index.php?title=Replace_firewalld_with_iptables_in_CentOS&amp;diff=227&amp;oldid=prev</id>
		<title>MilosZ: Created page with &quot;Stop and disable firewalld &lt;pre&gt; # systemctl stop firewalld # systemctl disable firewalld &lt;/pre&gt;  Install and enable iptables service &lt;pre&gt; # yum install iptables-services # s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://devopsnotebook.com/index.php?title=Replace_firewalld_with_iptables_in_CentOS&amp;diff=227&amp;oldid=prev"/>
		<updated>2020-10-08T12:29:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Stop and disable firewalld &amp;lt;pre&amp;gt; # systemctl stop firewalld # systemctl disable firewalld &amp;lt;/pre&amp;gt;  Install and enable iptables service &amp;lt;pre&amp;gt; # yum install iptables-services # s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Stop and disable firewalld&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# systemctl stop firewalld&lt;br /&gt;
# systemctl disable firewalld&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install and enable iptables service&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install iptables-services&lt;br /&gt;
# systemctl enable iptables&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create simple iptables to allow port 22 by editing '`'/etc/sysconfig/iptables'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
*filter&lt;br /&gt;
:INPUT ACCEPT [0:0]&lt;br /&gt;
:FORWARD ACCEPT [0:0]&lt;br /&gt;
:OUTPUT ACCEPT [0:0]&lt;br /&gt;
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT&lt;br /&gt;
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT&lt;br /&gt;
-A INPUT -i lo -j ACCEPT&lt;br /&gt;
-A INPUT -j REJECT --reject-with icmp-port-unreachable&lt;br /&gt;
COMMIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start iptables and verify that rules have been applied&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# systemctl start iptables&lt;br /&gt;
# iptables -nL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>MilosZ</name></author>
		
	</entry>
</feed>