<?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>root user &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/root-user/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 16 Sep 2011 15:32:27 +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 Restart Networking Service In Linux</title>
		<link>https://lifelinux.com/how-to-restart-networking-service-in-linux/</link>
					<comments>https://lifelinux.com/how-to-restart-networking-service-in-linux/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 16 Sep 2011 15:29:19 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/etc/init.d/network restart]]></category>
		<category><![CDATA[/etc/init.d/networking restart]]></category>
		<category><![CDATA[/etc/rc.d/rc.inet1 eth0_restart]]></category>
		<category><![CDATA[/etc/rc.d/rc.inet1 restart]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[linux operating systems]]></category>
		<category><![CDATA[network interface]]></category>
		<category><![CDATA[networking service]]></category>
		<category><![CDATA[novell]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[slackware]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1220</guid>

					<description><![CDATA[<p>How to start/stop/restart networking service under Linux operating systems after making changes to IP configuration from a shell prompt ? Use the following commands as per your Linux distribution to start/stop/restart the networking service. RedHat / CentOS / Fedora To start networking service, enter # /etc/init.d/network start Or, # service network start To stop networking [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-restart-networking-service-in-linux/">How To Restart Networking Service 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>How to start/stop/restart networking service under Linux operating systems after making changes to IP configuration from a shell prompt ?<br />
<span id="more-1220"></span><br />
Use the following commands as per your Linux distribution to start/stop/restart the networking service.</p>
<h2>RedHat / CentOS / Fedora</h2>
<p>To start networking service, enter</p>
<pre># /etc/init.d/network start</pre>
<p>Or,</p>
<pre># service network start</pre>
<p>To stop networking service, enter</p>
<pre># /etc/init.d/network stop</pre>
<p>Or,</p>
<pre># service network stop</pre>
<p>To restart networking service, enter</p>
<pre># /etc/init.d/network restart</pre>
<p>Or,</p>
<pre># service network restart</pre>
<h2>Ubuntu / Debian</h2>
<p>To start networking service, enter</p>
<pre># sudo /etc/init.d/networking start</pre>
<p>Or,</p>
<pre># sudo service networking start</pre>
<p>To stop networking service, enter</p>
<pre># sudo /etc/init.d/networking stop</pre>
<p>Or,</p>
<pre># sudo service networking stop</pre>
<p>To restart networking service, enter</p>
<pre># sudo /etc/init.d/networking restart</pre>
<p>Or,</p>
<pre># service networking restart</pre>
<g:plusone href="https://lifelinux.com/how-to-restart-networking-service-in-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-restart-networking-service-in-linux/">How To Restart Networking Service 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-restart-networking-service-in-linux/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Shutdown Command</title>
		<link>https://lifelinux.com/linux-shutdown-command/</link>
					<comments>https://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="https://lifelinux.com/linux-shutdown-command/">Linux Shutdown 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><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="https://lifelinux.com/linux-shutdown-command/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/linux-shutdown-command/">Linux Shutdown 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/linux-shutdown-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Display All Cron Jobs On Linux</title>
		<link>https://lifelinux.com/how-to-display-all-cron-jobs-on-linux/</link>
					<comments>https://lifelinux.com/how-to-display-all-cron-jobs-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 22 Aug 2011 05:20:58 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/etc/cron.d/]]></category>
		<category><![CDATA[/etc/cron.daily/]]></category>
		<category><![CDATA[/etc/cron.hourly/]]></category>
		<category><![CDATA[/etc/cron.monthly/]]></category>
		<category><![CDATA[/etc/cron.weekly/]]></category>
		<category><![CDATA[/etc/crontab]]></category>
		<category><![CDATA[cat filename]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[crontab -l]]></category>
		<category><![CDATA[crontab command]]></category>
		<category><![CDATA[crontab files]]></category>
		<category><![CDATA[crontabs]]></category>
		<category><![CDATA[directory feature]]></category>
		<category><![CDATA[l view]]></category>
		<category><![CDATA[less command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux operating systems]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[software package]]></category>
		<category><![CDATA[spool area]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[user accounts]]></category>
		<category><![CDATA[view software]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=936</guid>

					<description><![CDATA[<p>Using cron is via the crontab command which allows you to view or edit your crontab file, which is a per-user file containing entries describing commands to execute and the time(s) to execute them. Display Root cronjob # crontab -l Display user cronjob $ crontab -u user -l Display daily cronjob # cd /etc/cron.daily/ # [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-display-all-cron-jobs-on-linux/">How To Display All Cron Jobs On 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>Using cron is via the <strong>crontab command</strong> which allows you to view or edit your crontab file, which is a per-user file containing entries describing commands to execute and the time(s) to execute them.<br />
<span id="more-936"></span></p>
<h2>Display Root cronjob</h2>
<pre>
# crontab -l
</pre>
<h2>Display user cronjob</h2>
<pre>
$ crontab -u user -l
</pre>
<h2>Display daily cronjob</h2>
<pre>
# cd /etc/cron.daily/
# cat * | more
</pre>
<h2>Display hourly cronjob</h2>
<pre>
# cd /etc/cron.hourly/
# cat * | more
</pre>
<h2>Display weekly cronjob</h2>
<pre>
# cd /etc/cron.weekly /
# cat * | more
</pre>
<h2>Display monthly cronjob</h2>
<pre>
# cd /etc/cron.monthly/
# cat * | more
</pre>
<g:plusone href="https://lifelinux.com/how-to-display-all-cron-jobs-on-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-display-all-cron-jobs-on-linux/">How To Display All Cron Jobs On 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-display-all-cron-jobs-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Find Hard Drive Specifications</title>
		<link>https://lifelinux.com/how-to-find-hard-drive-specifications/</link>
					<comments>https://lifelinux.com/how-to-find-hard-drive-specifications/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 19 May 2011 15:44:16 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[df command]]></category>
		<category><![CDATA[disk partition]]></category>
		<category><![CDATA[disk size]]></category>
		<category><![CDATA[disk space]]></category>
		<category><![CDATA[du command]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[fdisk command]]></category>
		<category><![CDATA[filesystem 1k]]></category>
		<category><![CDATA[gb]]></category>
		<category><![CDATA[grep command]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[harddisk size]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[manipulator]]></category>
		<category><![CDATA[mega bytes]]></category>
		<category><![CDATA[partition size]]></category>
		<category><![CDATA[partition table]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[shm]]></category>
		<category><![CDATA[space available]]></category>
		<category><![CDATA[tb type]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[unix operating systems]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=669</guid>

					<description><![CDATA[<p>There are many tools to get hard drive information such as smartctl, hdparm, hwinfo&#8230; In this article, i will use hdparm command which provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE device driver subsystem. hdparm read information such as model number, serial number, device size and much [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-find-hard-drive-specifications/">How To Find Hard Drive Specifications</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>There are many tools to get hard drive information such as smartctl, hdparm, hwinfo&#8230; In this article, i will use <strong>hdparm</strong> command which provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE device driver subsystem.<span id="more-669"></span></p>
<p><strong>hdparm</strong> read information such as model number, serial number, device size and much more directly from the drive. Login as root and type the following command</p>
<pre># hdparm -I /dev/sda</pre>
<p>Sample output</p>
<pre>/dev/sda:

ATA device, with non-removable media
	Model Number:       <span style="color: #008000;">SAMSUNG HM320HJ</span>                         
	Serial Number:      <span style="color: #008000;">S2ANJ1MZ804243</span>
	Firmware Revision:  <span style="color: #008000;">2AK10001</span>
	Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
Standards:
	Used: unknown (minor revision code 0x0028) 
	Supported: 8 7 6 5 
	Likely used: 8
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  625142448
	Logical  Sector size:                   512 bytes
	Physical Sector size:                   512 bytes
	device size with M = 1024*1024:      305245 MBytes
	device size with M = 1000*1000:      <span style="color: #008000;">320072 MBytes (320 GB)</span>
	cache/buffer size  = 16384 KBytes
	Form Factor: 2.5 inch
	Nominal Media Rotation Rate: 7200
Capabilities:
	LBA, IORDY(can be disabled)
	Queue depth: 32
	Standby timer values: spec'd by Standard, no device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Advanced power management level: 254
	Recommended acoustic management value: 254, current value: 0
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	DOWNLOAD_MICROCODE
	   *	Advanced Power Management feature set
	    	Power-Up In Standby feature set
	   *	SET_FEATURES required to spinup after power up
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	FLUSH_CACHE_EXT
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	IDLE_IMMEDIATE with UNLOAD
	   *	WRITE_UNCORRECTABLE_EXT command
	   *	{READ,WRITE}_DMA_EXT_GPL commands
	   *	Segmented DOWNLOAD_MICROCODE
	   *	<span style="color: #008000;">Gen1 signaling speed (1.5Gb/s)</span>
	   *	<span style="color: #008000;">Gen2 signaling speed (3.0Gb/s)</span>
	   *	Native Command Queueing (NCQ)
	   *	Host-initiated interface power management
	   *	Phy event counters
	   *	Idle-Unload when NCQ is active
	   *	NCQ priority information
	   *	DMA Setup Auto-Activate optimization
	   *	Device-initiated interface power management
	   *	Software settings preservation
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Error Recovery Control (AC3)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
		frozen
	not	expired: security count
		supported: enhanced erase
	60min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50024e9003dedbf0
	NAA		: 5
	IEEE OUI	: 0024e9
	Unique ID	: 003dedbf0
Checksum: correct</pre>
<h3>Future reading</h3>
<p>hdparm <a href="http://linux.die.net/man/8/hdparm">man page</a><br />
<a href="http://www.lifelinux.com/linux-hard-disk-speed-tests/">Linux hard disk speed tests</a></p>
<g:plusone href="https://lifelinux.com/how-to-find-hard-drive-specifications/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-find-hard-drive-specifications/">How To Find Hard Drive Specifications</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-find-hard-drive-specifications/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>
