<?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>init script &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/init-script/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 Enable/Disable Firewall On Centos / RedHat / Fedora</title>
		<link>https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/</link>
					<comments>https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 18 May 2011 05:34:36 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[administration tool]]></category>
		<category><![CDATA[boot time]]></category>
		<category><![CDATA[chkconfig command]]></category>
		<category><![CDATA[disable firewall]]></category>
		<category><![CDATA[firewall service]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[packet filtering]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[service command]]></category>
		<category><![CDATA[system tool]]></category>
		<category><![CDATA[system v]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=590</guid>

					<description><![CDATA[<p>Iptables should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by: # rpm -q iptables Sample output iptables-1.3.5-5.3.el5_4.1 How to enable firewall Login as root and type the following command # /etc/init.d/iptables start # chkconfig iptables on If you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/">How To Enable/Disable Firewall On Centos / RedHat / Fedora</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><strong>Iptables</strong> should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by:</p>
<pre>
# rpm -q iptables
</pre>
<p><span id="more-590"></span><br />
Sample output</p>
<pre>
iptables-1.3.5-5.3.el5_4.1
</pre>
<h3>How to enable firewall</h3>
<p>Login as root and type the following command</p>
<pre>
# /etc/init.d/iptables start
# chkconfig iptables on
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# /etc/init.d/ip6tables start
# chkconfig ip6tables on
</pre>
<p>And to see if iptables is actually running, we can check that the iptables modules are loaded, type the following command</p>
<pre>
# lsmod | grep ip_tables
</pre>
<p>Something look like:</p>
<pre>
ip_tables              29288  1 iptable_filter
x_tables               29192  6 ip6t_REJECT,ip6_tables,ipt_REJECT,xt_state,xt_tcpudp,ip_tables
</pre>
<h3>How to disable firewall</h3>
<p>Login as root and type the following command</p>
<pre>
# /etc/init.d/iptables stop
# chkconfig iptables off
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# /etc/init.d/ip6tables stop
# chkconfig ip6tables off
</pre>
<g:plusone href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-enabledisable-firewall-on-centos-redhat-fedora/">How To Enable/Disable Firewall On Centos / RedHat / Fedora</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-enabledisable-firewall-on-centos-redhat-fedora/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>chkconfig Command</title>
		<link>https://lifelinux.com/chkconfig-command/</link>
					<comments>https://lifelinux.com/chkconfig-command/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 17:24:13 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chkconfig command]]></category>
		<category><![CDATA[enterprise linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[rhel 5]]></category>
		<category><![CDATA[system administrators]]></category>
		<category><![CDATA[update-rc.d]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=103</guid>

					<description><![CDATA[<p>chkconfig provides a  simple  command-line  tool  for  maintaining  the/etc/rc[0-6].d  directory  hierarchy by relieving system administrators of the task of directly manipulating the  numerous  symbolic  links  in those directories. chkconfig has five distinct functions: adding new services for  management,  removing  services  from management, listing the current startup information for services, changing the  start-up  information  for  services, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/chkconfig-command/">chkconfig Command</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><strong>chkconfig</strong> provides a  simple  command-line  tool  for  maintaining  the/etc/rc[0-6].d  directory  hierarchy by relieving system administrators of the task of directly manipulating the  numerous  symbolic  links  in those directories.<span id="more-103"></span></p>
<p>chkconfig has five distinct functions: adding new services for  management,  removing  services  from management, listing the current startup information for services, changing the  start-up  information  for  services, and checking the start-up state of a particular service.</p>
<h2>Synopsis</h2>
<pre>chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig [--level levels] name &lt;on|off|reset&gt;
chkconfig [--level levels] name
</pre>
<h2>Example</h2>
<p>List status for all services</p>
<pre>chkconfig --list
</pre>
<p>List status for test service</p>
<pre>chkconfig --list test
</pre>
<p>Add service called test</p>
<pre>chkconfig --add test
</pre>
<p>Delete service called test</p>
<pre>chkconfig --del test
</pre>
<p>Turn on &amp; Turn off service</p>
<pre>chkconfig --level 3 5 httpd off
</pre>
<p>The command above will turn off httpd service in <a href="http://www.lifelinux.com/linux-runlevels/">run levels</a> 3 and 5.</p>
<g:plusone href="https://lifelinux.com/chkconfig-command/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/chkconfig-command/">chkconfig Command</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/chkconfig-command/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
