<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>centos linux &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/centos-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Thu, 19 May 2011 03:16:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Flush/Remove All Iptables Rules In Linux</title>
		<link>https://lifelinux.com/how-to-flushremove-all-iptables-rules/</link>
					<comments>https://lifelinux.com/how-to-flushremove-all-iptables-rules/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 19 May 2011 02:50:58 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[centos linux]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[enterprise linux]]></category>
		<category><![CDATA[fedora core]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[flush firewall]]></category>
		<category><![CDATA[gnu linux]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[stop firewall]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=633</guid>

					<description><![CDATA[<p>By default iptables firewall stores its configuration at /etc/sysconfig/iptables file. Type the following command to see its # cat /etc/sysconfig/iptables Or # iptables -L Temporarily delete all the firewall rules At first, create flush.iptables script with following command # vi flush.iptables Add the following content #!/bin/sh iptables -F iptables -X iptables -t nat -F iptables [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-flushremove-all-iptables-rules/">How To Flush/Remove All Iptables Rules In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>By default iptables firewall stores its configuration at /etc/sysconfig/iptables file. Type the following command to see its</p>
<pre>
# cat /etc/sysconfig/iptables
</pre>
<p><span id="more-633"></span><br />
Or </p>
<pre>
# iptables -L
</pre>
<h3>Temporarily delete all the firewall rules</h3>
<p>At first, create flush.iptables script with following command</p>
<pre>
# vi flush.iptables
</pre>
<p>Add the following content</p>
<pre>
#!/bin/sh
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
</pre>
<p>Finally, run flush.iptables script with the following command</p>
<pre>
# sh flush.iptables
</pre>
<p>After running flush.iptables script, if you restart the iptables, you&#8217;ll see all the default rules again. So, flush is only temporary.</p>
<h3>Permanently remove all the default firewall rules</h3>
<p>Step 1. Flush all these rules temporarily, as we discussed above.<br />
Step 2. Saving firewall rules to /etc/sysconfig/iptables. Type the following command</p>
<pre>
# /etc/init.d/iptables save
</pre>
<p>Or</p>
<pre>
# iptables-save > /etc/sysconfig/iptables
</pre>
<g:plusone href="https://lifelinux.com/how-to-flushremove-all-iptables-rules/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-flushremove-all-iptables-rules/">How To Flush/Remove All Iptables Rules In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-flushremove-all-iptables-rules/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Allow Telnet Through IPTables Under Centos / RedHat</title>
		<link>https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/</link>
					<comments>https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 10 May 2011 08:45:07 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[centos linux]]></category>
		<category><![CDATA[firewall rules]]></category>
		<category><![CDATA[iptables firewall]]></category>
		<category><![CDATA[linux iptables]]></category>
		<category><![CDATA[open port 22]]></category>
		<category><![CDATA[open port 23]]></category>
		<category><![CDATA[open ssh port]]></category>
		<category><![CDATA[open telnet port]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=378</guid>

					<description><![CDATA[<p>CentOS / RedHat Linux server and by default firewall blocked out everything including telnet access. How do I allow telnet &#8211; port 23 thought Linux iptables firewall ? Method 1: Login as root account and type the following command [root@lifelinux ~]# iptables -A INPUT -m state --state NEW -p tcp --dport 23 -j ACCEPT Save [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/">How To Allow Telnet Through IPTables Under Centos / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>CentOS / RedHat Linux server and by default firewall blocked out everything including telnet access. How do I allow telnet &#8211; port 23 thought Linux iptables firewall ?<span id="more-378"></span></p>
<p><span style="color: #339966;"><strong> Method 1:</strong></span></p>
<p>Login as root account and type the following command</p>
<pre>[root@lifelinux ~]# iptables -A INPUT -m state --state NEW -p tcp --dport 23 -j ACCEPT</pre>
<p>Save rule to /etc/sysconfig/iptables</p>
<pre>[root@lifelinux ~]# iptables-save &gt; /etc/sysconfig/iptables</pre>
<p><span style="color: #339966;"><strong>Method 2:</strong></span></p>
<p>Login as the root user and open /etc/sysconfig/iptables file, enter:</p>
<pre>[root@lifelinux ~]# vi /etc/sysconfig/iptables</pre>
<p>Add the following line:</p>
<pre>-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT</pre>
<p><span style="color: #339966;"><strong>The final:</strong></span></p>
<p>Save and close the file. Restart the firewall:</p>
<pre>[root@lifelinux ~]# /etc/init.d/iptables restart</pre>
<g:plusone href="https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/">How To Allow Telnet Through IPTables Under Centos / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-allow-telnet-through-iptables-under-centos-redhat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install IPTables on RedHat / Centos Linux</title>
		<link>https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/</link>
					<comments>https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Sun, 24 Apr 2011 07:06:59 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos linux]]></category>
		<category><![CDATA[configuration tutorial]]></category>
		<category><![CDATA[fedora linux]]></category>
		<category><![CDATA[firewalls]]></category>
		<category><![CDATA[ip6tables command]]></category>
		<category><![CDATA[iptables command]]></category>
		<category><![CDATA[linux distros]]></category>
		<category><![CDATA[linux kernel]]></category>
		<category><![CDATA[network packet]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[remote server]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[ssh client]]></category>
		<category><![CDATA[terminal window]]></category>
		<category><![CDATA[workstation]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=296</guid>

					<description><![CDATA[<p>iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Different kernel modules and programs are currently used for different protocols; iptables applies to IPv4, ip6tables to IPv6, arptables to ARP, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/">How to install IPTables on RedHat / Centos Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><blockquote><p>iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Different kernel modules and programs are currently used for different protocols; iptables applies to IPv4, ip6tables to IPv6, arptables to ARP, and ebtables for Ethernet frames.<br />
Iptables requires elevated privileges to operate and must be executed by user root, otherwise it fails to function. On most Linux systems, iptables is installed as /usr/sbin/iptables and documented in its man page,[2] which can be opened using man iptables when installed. It may also be found in /sbin/iptables, but since iptables is not an &#8220;essential binary&#8221;, but more like a service, the preferred location remains /usr/sbin.<br />
iptables is also commonly used to inclusively refer to the kernel-level components. x_tables is the name of the kernel module carrying the shared code portion used by all four modules that also provides the API used for extensions; subsequently, Xtables is more or less used to refer to the entire firewall (v4,v6,arp,eb) architecture.<br />
Source: http://en.wikipedia.org/wiki/Iptables
</p></blockquote>
<p><span id="more-296"></span><br />
In most Linux distros including Redhat / CentOS Linux installs iptables by default. You can use the following procedure to verify that iptables has been installed. Open terminal and type the following command:</p>
<pre>
root@longvnit:~# iptables -V
</pre>
<p>Sample outputs:</p>
<pre>
iptables v1.3.5
</pre>
<p>You can use the following command to view the status of iptables command, enter:</p>
<pre>
root@longvnit:~#yum info iptables
</pre>
<p>Sample outputs:</p>
<pre>
Installed Packages
Name       : iptables
Arch       : i386
Version    : 1.3.5
Release    : 5.3.el5_4.1
Size       : 552 k
Repo       : installed
Summary    : Tools for managing Linux kernel packet filtering capabilities.
URL        : http://www.netfilter.org/
License    : GPL
Description: The iptables utility controls the network packet filtering code in
           : the Linux kernel. If you need to set up firewalls and/or IP
           : masquerading, you should install this package.
</pre>
<p>If the above message does not appear, then type the following command to install iptables</p>
<pre>
root@longvnit:~#yum install iptables
</pre>
<p>You can use the following command to view rules in all chains:</p>
<pre>
root@longvnit:~#iptables -L -n
</pre>
<p>Sample outputs:</p>
<pre>
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
</pre>
<g:plusone href="https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/">How to install IPTables on RedHat / Centos Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
