<?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 server &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/linux-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 30 Jan 2013 10:51:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.15</generator>
	<item>
		<title>What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</title>
		<link>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/</link>
					<comments>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/#comments</comments>
		
		<dc:creator><![CDATA[Linux Killer]]></dc:creator>
		<pubDate>Tue, 29 Jan 2013 19:52:34 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[variables]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1446</guid>

					<description><![CDATA[<p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and Off</p>
<p><span id="more-1446"></span></p>
<p>Disable = Off</p>
<p>Activate = On</p>
<p>So now I will explain to you the benefit of each function and put you a choice in the activation and disable</p>
<pre>expose_php</pre>
<p>Is a a property from which to see PHP version on the server so disabling means not making available to the hacker to know the version of PHP</p>
<pre>allow_url_fopen</pre>
<p>When you disable this function no one will be able to contain another link in a specific page , but some scripts like AM4SS &#8211; Vbulletin need this function for the arrival of notifications within the Admin Control Panel</p>
<pre>register_globals</pre>
<p>When you Desable this function become possible to control the content of php files difficult and does not allow the Edited only by the owner<br />
<strong>So now we come to the disabled and activation of these properties</strong></p>
<p>Enter in the shell and modify the php.ini file with the following command</p>
<pre>nano /usr/local/lib/php.ini</pre>
<p>By pressing Ctrl + W will open new box writes what you want to search for inside file</p>
<p>Looking for the variable you want edited for example</p>
<pre>allow_url_fopen</pre>
<p>You&#8217;ll find as follows :</p>
<pre>allow_url_fopen = On</pre>
<p>Mark value after the mark (=) On for activate Off  for disabled , Apply it with the rest of the properties , After completion of the amendment to click on the keys CTRL + X + Y then Enter button</p>
<p>You will see a new command line in the main interface in shell<br />
Observation : you must restart Apache after any amendment to this file for edited is defined in the php and Apache<br />
To restart apache :</p>
<pre>service httpd restart</pre>
<p>Or you can restart apache using server Control Panel WHM In a private box to restart services From there you can restart any service you want to.</p>
<g:plusone href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How Do I Block An IP Address On Linux Server ?</title>
		<link>http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/</link>
					<comments>http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:06:46 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[block ip iptables]]></category>
		<category><![CDATA[block ip linux]]></category>
		<category><![CDATA[block ip unix]]></category>
		<category><![CDATA[block ip via iptables]]></category>
		<category><![CDATA[block ip with iptables]]></category>
		<category><![CDATA[destination port]]></category>
		<category><![CDATA[firewall script]]></category>
		<category><![CDATA[interface name]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[ip subnet]]></category>
		<category><![CDATA[ip table blocking]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[iptables firewall]]></category>
		<category><![CDATA[iptables-restore command]]></category>
		<category><![CDATA[iptables-save]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux block ip]]></category>
		<category><![CDATA[linux block ip address]]></category>
		<category><![CDATA[linux command to block ip]]></category>
		<category><![CDATA[linux drop ip address]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[linux server how to block ip/user]]></category>
		<category><![CDATA[log target]]></category>
		<category><![CDATA[public interface]]></category>
		<category><![CDATA[sbin]]></category>
		<category><![CDATA[server port]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[session block]]></category>
		<category><![CDATA[spoof]]></category>
		<category><![CDATA[syntax]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1326</guid>

					<description><![CDATA[<p>I run CentOS on my server, and I often find that my server is being attacked by other computers. Brute force SSH attacks, port scanning, viruses scanning for the ability to spread, things like that. In this article, I&#8217;ll show you how to block an IP address on Linux server using IPTables. The First, I&#8217;ll [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/">How Do I Block An IP Address On Linux Server ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>I run CentOS on my server, and I often find that my server is being attacked by other computers. Brute force SSH attacks, port scanning, viruses scanning for the ability to spread, things like that. In this article, I&#8217;ll show you how to block an IP address on Linux server using IPTables.<br />
<span id="more-1326"></span><br />
The First, I&#8217;ll assume you are already using iptables. If you need help setting that up, read <a href="http://www.lifelinux.com/how-to-install-iptables-on-redhat-centos-linux/">this article</a>.</p>
<h2>How do I block an IP address ?</h2>
<p>Example I want to block incoming request from IP <span style="color: #ff0000;">1.2.3.4</span>, login as root and type the following command</p>
<pre># iptables -I INPUT -s <span style="color: #ff0000;">1.2.3.4</span> -j DROP</pre>
<p><strong>Where,</strong><br />
&#8211; I: Inserts the chain at the top of the rules.<br />
&#8211; s: Match source IP address.<br />
&#8211; j: Jump to the specified target chain when the packet matches the current rule.</p>
<p>To drop packets coming in on interface eth0 from <span style="color: #ff0000;">1.2.3.4</span>, type the following command</p>
<pre># iptables -I INPUT -i eth0 -s <span style="color: #ff0000;">1.2.3.4</span> -j DROP</pre>
<h2>How do I block a subnet ?</h2>
<p>Use the following syntax to block <span style="color: #ff0000;">10.0.0.0/8</span></p>
<pre># iptables -I INPUT -s <span style="color: #ff0000;">10.0.0.0/8</span> -j DROP</pre>
<h2>How do I save blocked IP address ?</h2>
<p>To save blocked IP address to iptables config file, type the following command</p>
<pre># service iptables save</pre>
<p>Or</p>
<pre># /etc/init.d/iptables save</pre>
<h2>How Do I Unblock An IP Address?</h2>
<p>First, you need to display blocked IP address along with line number and other information, type the following command</p>
<pre># iptables -L INPUT -n --line-numbers
# iptables -L INPUT -n --line-numbers | grep 1.2.3.4</pre>
<p>Sample outputs:</p>
<pre>Chain INPUT (policy DROP)
num  target     prot opt source               destination
1    DROP       all  --  1.2.3.4              0.0.0.0/0
2    LOCALINPUT  all  --  0.0.0.0/0            0.0.0.0/0
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
4    ACCEPT     udp  --  203.162.4.1          0.0.0.0/0           udp spts:1024:65535 dpt:53</pre>
<p>To unblock 1.2.3.4 you must delete line number 1, enter:</p>
<pre># iptables -D INPUT 1</pre>
<g:plusone href="http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/">How Do I Block An IP Address On Linux Server ?</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-do-i-block-an-ip-address-on-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Shutdown Command</title>
		<link>http://lifelinux.com/linux-shutdown-command/</link>
					<comments>http://lifelinux.com/linux-shutdown-command/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 24 Aug 2011 01:03:58 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/var/log/wtmp]]></category>
		<category><![CDATA[/var/run/utmp]]></category>
		<category><![CDATA[24hr clock]]></category>
		<category><![CDATA[broadcast message]]></category>
		<category><![CDATA[CentOS shutdown command]]></category>
		<category><![CDATA[command line options]]></category>
		<category><![CDATA[Debian shutdown command]]></category>
		<category><![CDATA[Fedora shutdown command]]></category>
		<category><![CDATA[Gentoo shutdown command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[linux shutdown]]></category>
		<category><![CDATA[Mandriva shutdown command]]></category>
		<category><![CDATA[OpenSUSE shutdown command]]></category>
		<category><![CDATA[option requests]]></category>
		<category><![CDATA[Redhat shutdown command]]></category>
		<category><![CDATA[remote server]]></category>
		<category><![CDATA[RHEL shutdown command]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[safe way]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[shutdown command]]></category>
		<category><![CDATA[Slackware shutdown command]]></category>
		<category><![CDATA[ssh command]]></category>
		<category><![CDATA[Suse shutdown command]]></category>
		<category><![CDATA[system shutdown]]></category>
		<category><![CDATA[Ubuntu shutdown command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1017</guid>

					<description><![CDATA[<p>shutdown command brings the system down in a secure way. All logged-in users are notified that the system is going down, and login is blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM. This [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/linux-shutdown-command/">Linux Shutdown Command</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><blockquote><p>shutdown command brings the system down in a secure way. All logged-in users are notified that the system is going down, and login is blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM. This gives programs like vi the time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc. shutdown does its job by signalling the init process, asking it to change the runlevel. Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is the default if neither the -h or -r flag is given to shutdown. To see which actions are taken on halt or reboot see the appropriate entries for these runlevels in the file /etc/inittab.(http://linux.about.com/od/commands/l/blcmdl8_shutdow.htm)</p></blockquote>
<p><span id="more-1017"></span></p>
<h2>Shutdown the machine immediately</h2>
<p>Type the following command as root</p>
<pre>
# shutdown -h now
</pre>
<h2>Shutdown the machine with user defined message</h2>
<pre>
# shutdown -h now 'Server is going down for replace old hardware'
</pre>
<h2>Scheduling the shutdown</h2>
<p>Example, schedule shutdown for 3 AM.</p>
<pre>
# shutdown -h 03:00
</pre>
<p>Schedule shutdown the system in 5 minutes</p>
<pre>
# shutdown -h +5
</pre>
<h2>Reboot the machine immediately</h2>
<pre>
# shutdowm -r now
</pre>
<h2>Cancel a running shutdown</h2>
<pre>
# shutdown -c
</pre>
<g:plusone href="http://lifelinux.com/linux-shutdown-command/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/linux-shutdown-command/">Linux Shutdown Command</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/linux-shutdown-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Disable Ctrl + Alt + Del On Ubuntu 11</title>
		<link>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/</link>
					<comments>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 05:18:06 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/etc/event.d/control-alt-delete]]></category>
		<category><![CDATA[/etc/init/control-alt-delete.conf]]></category>
		<category><![CDATA[alt key]]></category>
		<category><![CDATA[combination system]]></category>
		<category><![CDATA[control alt delete]]></category>
		<category><![CDATA[control line]]></category>
		<category><![CDATA[control system]]></category>
		<category><![CDATA[ctrl alt del]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[sudo command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=972</guid>

					<description><![CDATA[<p>To disable the reboot action taken by pressing the Ctrl+Alt+Delete key combination, comment out the following line in the file /etc/init/control-alt-delete.conf. Type the following command # sudo vi /etc/init/control-alt-delete.conf Output # control-alt-delete - emergency keypress handling # # This task is run whenever the Control-Alt-Delete key combination is # pressed, and performs a safe reboot [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/">How To Disable Ctrl + Alt + Del On Ubuntu 11</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To disable the reboot action taken by pressing the Ctrl+Alt+Delete key combination, comment out the following line in the file /etc/init/control-alt-delete.conf.<br />
<span id="more-972"></span><br />
Type the following command</p>
<pre>
# sudo vi /etc/init/control-alt-delete.conf
</pre>
<p>Output</p>
<pre>
# control-alt-delete - emergency keypress handling
#
# This task is run whenever the Control-Alt-Delete key combination is
# pressed, and performs a safe reboot of the machine.

description     "emergency keypress handling"
author          "Scott James Remnant <scott@netsplit.com>"

start on control-alt-delete

task
exec shutdown -r now "Control-Alt-Delete pressed"
</pre>
<p>Change the following line</p>
<pre>
exec shutdown -r now "Control-Alt-Delete pressed"
</pre>
<p>To</p>
<pre>
#exec shutdown -r now "Control-Alt-Delete pressed"
</pre>
<p>Save and exit the file</p>
<g:plusone href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/">How To Disable Ctrl + Alt + Del On Ubuntu 11</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-ubuntu-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Disable Ctrl + Alt + Del On Centos / RedHat</title>
		<link>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/</link>
					<comments>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 05:09:26 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[ctrl alt del]]></category>
		<category><![CDATA[ctrlaltdel]]></category>
		<category><![CDATA[entry login]]></category>
		<category><![CDATA[hash mark]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[reboot]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=966</guid>

					<description><![CDATA[<p>To disable CTRL+ALT+DEL key is configured to use /etc/inittab file. Login as root and edit /etc/inittab file and remove ctrlaltdel entry. Type the following command # vi /etc/inittab Find lines that read as follows # Trap CTRL-ALT-DELETE ca::ctrlaltdel:/sbin/shutdown -t3 -r now Delete or comment out line by prefixing &#8220;#&#8221; # Trap CTRL-ALT-DELETE #ca::ctrlaltdel:/sbin/shutdown -t3 -r [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/">How To Disable Ctrl + Alt + Del On Centos / RedHat</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To disable CTRL+ALT+DEL key is configured to use /etc/inittab file. Login as root and edit /etc/inittab file and remove ctrlaltdel entry.<br />
Type the following command</p>
<pre>
# vi /etc/inittab
</pre>
<p><span id="more-966"></span><br />
Find lines that read as follows</p>
<pre>
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
</pre>
<p>Delete or comment out line by prefixing &#8220;#&#8221;</p>
<pre>
# Trap CTRL-ALT-DELETE
#ca::ctrlaltdel:/sbin/shutdown -t3 -r now
</pre>
<p>Save and close the file. Type command to reload /etc/inittab</p>
<pre>
# init q
</pre>
<g:plusone href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/">How To Disable Ctrl + Alt + Del On Centos / RedHat</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-disable-ctrl-alt-del-on-centos-redhat/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Save/Restore Iptables Rules</title>
		<link>http://lifelinux.com/how-to-saverestore-iptables-rules/</link>
					<comments>http://lifelinux.com/how-to-saverestore-iptables-rules/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 18 May 2011 05:49:46 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[iptables-restore command]]></category>
		<category><![CDATA[iptables-save command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[ubuntu iptables]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[ubuntu save firewall]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=598</guid>

					<description><![CDATA[<p>Save Iptables rules Rules created with the iptables command are stored in memory. If the system is restarted before saving the iptables rule set, all rules are lost. To save netfilter rules, type the following command as root: # /etc/init.d/iptables save If you are using IPv6, enter: # /etc/init.d/ip6tables save The above commands will write [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-saverestore-iptables-rules/">How To Save/Restore Iptables Rules</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><h3>Save Iptables rules</h3>
<p>Rules created with the <strong>iptables</strong> command are stored in memory. If the system is restarted before saving the iptables rule set, all rules are lost. To save netfilter rules, type the following command as root:</p>
<pre>
# /etc/init.d/iptables save 
</pre>
<p><span id="more-598"></span><br />
If you are using IPv6, enter:</p>
<pre>
# /etc/init.d/ip6tables save 
</pre>
<p>The above commands will write the current iptables configuration to <strong>/etc/sysconfig/iptables</strong>. The next time the system boots, the iptables init script reapplies the rules saved in /etc/sysconfig/iptables. You can also save the iptables rules to a separate file for distribution, backup or other purposes. Type the following command as root</p>
<pre>
# iptables-save > /root/iptables.rules
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# ip6tables-save  > /root/iptables.rules
</pre>
<h3>Restore Iptables rules</h3>
<p>To restore it use the command iptables-restore, type the following command as root:</p>
<pre>
# iptables-restore < /root/iptables.rules
</pre>
<p>If you are using IPv6, enter:</p>
<pre>
# ip6tables-restore < /root/iptables.rules
</pre>
<g:plusone href="http://lifelinux.com/how-to-saverestore-iptables-rules/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-saverestore-iptables-rules/">How To Save/Restore Iptables Rules</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-saverestore-iptables-rules/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
