<?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>Linux Servers cPanel webhosting blog &#187; iptables rule</title>
	<atom:link href="http://www.theperfectarts.com/tag/iptables-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Thu, 02 Sep 2010 11:15:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to define iptables rules save option?</title>
		<link>http://www.theperfectarts.com/2010/01/how-to-define-iptables-rules-save-option/</link>
		<comments>http://www.theperfectarts.com/2010/01/how-to-define-iptables-rules-save-option/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 10:37:25 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[/etc/sysconfig/iptables]]></category>
		<category><![CDATA[iptables rule]]></category>
		<category><![CDATA[iptables save rules]]></category>
		<category><![CDATA[iptables-save]]></category>
		<category><![CDATA[iptables.iptables save]]></category>
		<category><![CDATA[IPTABLES_SAVE_COUNTER]]></category>
		<category><![CDATA[IPTABLES_SAVE_ON_RESTART]]></category>
		<category><![CDATA[IPTABLES_SAVE_ON_STOP]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=974</guid>
		<description><![CDATA[var infolink_pid = 52738; var infolink_wsid = 0; iptables creating rules after restarting the iptables. When iptables service is restarted settings from /etc/sysconfig/iptables file are applied and used with the iptables. You can either set up iptables rule so that current stat is saved the rule upon restart or stop/start: You need to make changes [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">
    var infolink_pid = 52738;
    var infolink_wsid = 0;
</script><br />
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script><br />
iptables creating rules after restarting the iptables. When iptables service is restarted settings from /etc/sysconfig/iptables file are applied and used with the iptables.</p>
<p>You can either set up iptables rule so that current stat is saved the rule upon restart or stop/start:</p>
<p>You need to make changes in following file as per your requirement for values received in following GREP result.</p>
<p><span style="color: #800000;">root@server[~]# grep IPTABLES_SAVE /etc/sysconfig/iptables-config<br />
IPTABLES_SAVE_ON_STOP=&#8221;no&#8221;<br />
IPTABLES_SAVE_ON_RESTART=&#8221;no&#8221;<br />
IPTABLES_SAVE_COUNTER=&#8221;no&#8221;</span></p>
<p>Or overwrite current settings with iptables-save to /etc/sysconfig/iptables file:</p>
<p><span style="color: #800000;">r</span><span style="color: #800000;">oot@server[~]# iptables-save &gt; /etc/sysconfig/iptables</span></p>
<p>Note : Its always good if we use NO option for following options because some time due to wrong rule we face major problem to access server.</p>
<p><span style="color: #800000;">IPTABLES_SAVE_ON_STOP=&#8221;no&#8221;<br />
IPTABLES_SAVE_ON_RESTART=&#8221;no&#8221;<br />
IPTABLES_SAVE_COUNTER=&#8221;no&#8221;<br />
</span></p>
<p><span style="color: #800000;"><br />
</span></p>
<p>&copy;2010 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2010/01/how-to-define-iptables-rules-save-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
