<?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>sys-blog.net</title>
	<atom:link href="http://www.sys-blog.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.sys-blog.net</link>
	<description>:: Linux &#38; Unix Tech Blog ::</description>
	<lastBuildDate>Thu, 02 May 2013 08:06:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>User creation bash script</title>
		<link>http://www.sys-blog.net/?p=1959</link>
		<comments>http://www.sys-blog.net/?p=1959#comments</comments>
		<pubDate>Thu, 02 May 2013 07:56:34 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[Bash Scripting]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1959</guid>
		<description><![CDATA[So a friend asked me to write a little script for him that looks up for a specific username on a system, and if it doesn&#8217;t exist, it will create it for him. pretty easy right ? since adding a user with useradd with a password ( -p )  requires the password to be encrypted, [...]]]></description>
				<content:encoded><![CDATA[<p>So a friend asked me to write a little script for him that looks up for a specific username on a system, and if it doesn&#8217;t exist, it will create it for him. pretty easy right ?</p>
<p>since adding a user with useradd with a password ( -p )  requires the password to be encrypted, I also included that option in the script.</p><pre class="crayon-plain-tag">#!/bin/bash
USER="Enter your username"

if [ `whoami` != root ]
    then
              echo "Script must be executed with the root privileges"
              exit
fi

echo "Attempting to find user $USER" ; sleep 1
cat /etc/passwd | cut -d':' -f 1 | grep $USER &gt; /dev/null

if [ "$?" -eq 0 ]
     then
       echo "User $USER already exists on the system"
       exit
     else
        echo -n "User $USER was not found, do you want to create the user $USER? "; sleep 1
        read ans
        case $ans in
                     Y|y|YES|yes)
                                 echo "Creating user $USER..."
                                 pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
                                 useradd $USER -p $pass
                                 sleep 1 &amp;&amp; echo "...OK"
                                 ;;
                     N|n|NO|no|q)
                                 exit
                                  ;;
        esac
fi</pre><p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1959</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>yum checksum error -3</title>
		<link>http://www.sys-blog.net/?p=1947</link>
		<comments>http://www.sys-blog.net/?p=1947#comments</comments>
		<pubDate>Thu, 18 Apr 2013 14:05:37 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1947</guid>
		<description><![CDATA[While trying to update my repository on a RHEL 5.5 system,  (note: I use a local repository on a RHEL6.0 distro), I faced this error: [Errno -3] Error performing checksum Trying other mirror. Error: failure: repodata/primary.xml.gz from Updates: [Errno 256] No more mirrors to try. This error relates to the SHA module support in 5.x [...]]]></description>
				<content:encoded><![CDATA[<p>While trying to update my repository on a RHEL 5.5 system,  (note: I use a local repository on a RHEL6.0 distro), I faced this error:</p>
<blockquote><p>[Errno -3] Error performing checksum<br />
Trying other mirror.<br />
Error: failure: repodata/primary.xml.gz from Updates: [Errno 256] No more mirrors to try.</p></blockquote>
<p>This error relates to the SHA module support in 5.x version</p>
<p>this error is fixed once you re-create the repo with the -a sha1 command</p>
<blockquote><p><strong>$createrepo -a sha1 .</strong></p>
<p><strong>$yum clean all</strong></p>
<p><strong>$yum repolist</strong></p></blockquote>
<p>and the error was gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1947</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RHCE: Sample Exam</title>
		<link>http://www.sys-blog.net/?p=1930</link>
		<comments>http://www.sys-blog.net/?p=1930#comments</comments>
		<pubDate>Tue, 09 Apr 2013 06:16:16 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1930</guid>
		<description><![CDATA[First, I would like to thank all people who find my site valuable and sent me an email about their experience with it, that was very warming to see. After receiving many emails asking for some more exam samples, I have created a new exam for RHCE. The exam tends to cover all RHCE objectives [...]]]></description>
				<content:encoded><![CDATA[<p>First, I would like to thank all people who find my site valuable and sent me an email about their experience with it, that was very warming to see.</p>
<p>After receiving many emails asking for some more exam samples, I have created a new exam for RHCE.</p>
<p>The exam tends to cover all RHCE objectives in different ways and approaches, feel free to ask me regarding anything that is in there.</p>
<p>You may download the RHCE exam in pdf format from the following <a href="http://www.sys-blog.net/wp-content/plugins/cimy-counter/cc_redirect.php?cc=RHCE-Exam1&amp;fn=http://www.sys-blog.net/wp-content/uploads/2013/04/rhce-sample-exam-1.rar">Link</a></p>
<p>&nbsp;</p>
<p><strong>Edit: </strong>I&#8217;m in the process of creating a video with solutions to the exam together with sound, this may take time, please be patient.</p>
<p><strong>Edit 2: </strong>you can find the complete video ( 1:22 hours!) of each objective + some tips regarding the RHCE exam. in the Link below</p>
<p>I would like to get feed backs regarding this tutorial, if things were clear enough, I may include a similar video with the objectives I had not managed to cover in video 1.</p>
<p><a href="http://sys-blog.net/videos/Exam/sysblog-RHCE-Exam1.rar">Download </a>(152MB RAR -&gt; AVI)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1930</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>Central package repository with createrepo for RHEL</title>
		<link>http://www.sys-blog.net/?p=1924</link>
		<comments>http://www.sys-blog.net/?p=1924#comments</comments>
		<pubDate>Fri, 29 Mar 2013 10:45:26 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1924</guid>
		<description><![CDATA[Where I work, we have an isolated network with no internet access, and many (many) Linux servers, mostly Red Hat Enterprise, from versions 4.0 to 6.4.  and Fedora. Wouldn&#8217;t it be awesome if you could use yum inside a network without internet access? basically what I wanted to achieve is a central server that will [...]]]></description>
				<content:encoded><![CDATA[<p>Where I work, we have an isolated network with no internet access, and many (many) Linux servers, mostly Red Hat Enterprise, from versions 4.0 to 6.4.  and Fedora.</p>
<p>Wouldn&#8217;t it be awesome if you could use yum inside a network without internet access?</p>
<p>basically what I wanted to achieve is a central server that will serve the others with packages according to their architecture and version.</p>
<p>I came across the <strong>CreateRepo</strong> package that creates the metadata for your ISOs and that way the servers in your network can retrieve desired packages via httpd, with a small .repo file in their /etc/yum.repos.d.</p>
<p>all it takes is installing httpd, mounting ISOs to a directory (neat order preferred, each ISO gets a directory and &#8220;i386&#8243; &amp; &#8220;x86_64&#8243; sub directories with rpms) and running the</p>
<blockquote><p>createrepo .</p></blockquote>
<p>inside that directory, and that way you get the metadata files that allows others to use the correct RPMs according to the yum command..</p>
<p>I have also spread a script across the linux systems that automatically detects the OS and architecture and that way creates the proper .repo file for the server with the correct path to the repository of the server.</p>
<p>to install createrepo simply rum</p>
<blockquote><p>yum install createrepo</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1924</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHCE: Mission accomplished</title>
		<link>http://www.sys-blog.net/?p=1917</link>
		<comments>http://www.sys-blog.net/?p=1917#comments</comments>
		<pubDate>Thu, 21 Mar 2013 08:51:03 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1917</guid>
		<description><![CDATA[Well, like everybody else says, it&#8217;s a hard nut to break, but it&#8217;s doable when I first started this blog, it was my first goal, and now it&#8217;s here. the exam is tough, covers many objects, all of them are on this blog and very relevant (Hint!) I will be providing more tips, scripts and [...]]]></description>
				<content:encoded><![CDATA[<p>Well, like everybody else says, it&#8217;s a hard nut to break, but it&#8217;s doable</p>
<p>when I first started this blog, it was my first goal, and now it&#8217;s here.</p>
<p>the exam is tough, covers many objects, all of them are on this blog and very relevant (Hint!)</p>
<p>I will be providing more tips, scripts and possibly videos with sound in the near future.</p>
<p style="text-align: center;">  <a href="http://www.sys-blog.net/wp-content/uploads/2013/03/RHCE.jpg"><img class="size-medium wp-image-1918 aligncenter" alt="RHCE" src="http://www.sys-blog.net/wp-content/uploads/2013/03/RHCE-300x224.jpg" width="300" height="224" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1917</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>RHCE: FTP &#8211; Configure anonymous download only</title>
		<link>http://www.sys-blog.net/?p=1908</link>
		<comments>http://www.sys-blog.net/?p=1908#comments</comments>
		<pubDate>Sat, 09 Mar 2013 09:33:20 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1908</guid>
		<description><![CDATA[This objective expects you to configure your FTP server to allow anonymous download only. Since most if not all RHCE objectives aim for securing the network services, the host based security here can pretty much be expressed by limiting so a single client / single network subnet. Server side: Install vsftpd packages yum -y install [...]]]></description>
				<content:encoded><![CDATA[<p>This objective expects you to configure your FTP server to allow anonymous download only.</p>
<p>Since most if not all RHCE objectives aim for securing the network services, the host based security here can pretty much be expressed by limiting so a single client / single network subnet.</p>
<p><strong>Server side:</strong><br />
Install vsftpd packages<br />
yum -y install vsftpd</p>
<p><strong>Edit vsftpd.conf file and uncomment</strong><br />
vi /etc/vsftpd/vsftpd.conf<br />
#local_enable=YES</p>
<p>by default, anonymous_enable is set to yes, leave it that way.</p>
<p><b>Start vsftpd</b><br />
service vsftpd start</p>
<p><strong>Allow port 21 to network 10.0.0.0/255.255.255.0</strong><br />
iptables -I INPUT -p tcp -s 10.0.0.0/24 &#8211;dport 21 -j ACCEPT<br />
service iptables save</p>
<p><b>while labbing I found a &#8220;problem&#8221; listing files in directories after logging in, after many searches, I found the mod ip_conntrack_ftp responsible for this, it must be loaded on startup for users to be able to login to their home directories and list files.</b><br />
<b>Fixing this can be in 2 ways.</b><br />
either add a ip_conntrack_ftp.module shell script to /etc/sysconfig/modules/<br />
with the context</p>
<blockquote><p>#!/bin/bash<br />
/sbin/modprobe  &#8221;ip_conntrack_ftp&#8221;</p></blockquote>
<p>the other option is to edit the file<br />
/etc/sysconfig/iptables-config<br />
and edit the line<br />
IPTABLES_MODULES=&#8221;<strong>ip_conntrack_ftp</strong>&#8221;<br />
<strong>save and restart iptables to load the module</strong><br />
service iptables save &amp;&amp; service iptables restart</p>
<p><strong>Enable the SELinux boolean</strong><br />
setsebool -P ftp_home_dir 1</p>
<p><strong>Client Side</strong></p>
<p><b>install ftp and connect to the ftp server anonymously</b><br />
yum install ftp<br />
ftp server.example.com</p>
<p><object width="500" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.sys-blog.net/videos/vsftpd/vsftpd_controller.swf" /><embed width="500" height="360" type="application/x-shockwave-flash" src="http://www.sys-blog.net/videos/vsftpd/vsftpd_controller.swf" /><!--[if !IE]>&#8211;> <img src="http://www.sys-blog.net/wp-includes/js/tinymce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="500" height="360" data-mce-json="{'video':{},'params':{'src':'http://www.sys-blog.net/videos/vsftpd/vsftpd_controller.swf'},'name':null,'object_html':' &lt;!--&lt;![endif]--&gt;&lt;p&gt;Alternative content&lt;/p&gt;&lt;p&gt;&lt;!--[if !IE]&gt;--&gt;&lt;/p&gt;','hspace':null,'vspace':null,'align':null,'bgcolor':null}" alt="" /><!--<![endif]--></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1908</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RHCE: NFS &#8211; Provide network shares suitable for group collaboration.</title>
		<link>http://www.sys-blog.net/?p=1849</link>
		<comments>http://www.sys-blog.net/?p=1849#comments</comments>
		<pubDate>Fri, 08 Mar 2013 16:11:41 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1849</guid>
		<description><![CDATA[This task requires you to provide a network share via samba, which will be suitable for sharing in between users of the same group. You can pretty much find the same idea of objective in  the NFS section of the exam. I checked the settings integrity through a Windows client , make sure you do [...]]]></description>
				<content:encoded><![CDATA[<p>This task requires you to provide a network share via samba, which will be suitable for sharing in between users of the same group.<br />
You can pretty much find the same idea of objective in  the NFS section of the exam.<br />
I checked the settings integrity through a Windows client , make sure you do so with a Linux client. since mapping the directory and editing /etc/fstab is a requirement for this objective and the exam itself.</p>
<p><strong>Install required samba packages</strong><br />
yum -y install samba samba-common</p>
<p><strong>Open relevant ports</strong><br />
iptables -I INPUT -p udp &#8211;dport 137 -j ACCEPT<br />
iptables -I INPUT -p tcp &#8211;dport 445 -j ACCEPT<br />
service iptables save</p>
<p><strong>Make sure services start on boot</strong><br />
chkconfig smb on<br />
chkconfig nmb on</p>
<p><strong>Create the group and its&#8217; directory</strong><br />
mkdir /IT<br />
groupadd sysadmins<br />
chmod 2770 /IT<br />
chown nobody:sysadmins /IT</p>
<p><strong>Add the SELinux context to the directory</strong><br />
chcon -t samba_share_t /IT</p>
<p><strong>Create a user in the system and a samba user</strong><br />
useradd Paul -s /sbin/nologin -G sysadmins<br />
smbpasswd -a Paul</p>
<p><strong>Add the Samba share directives</strong><br />
vi /etc/samba/smb.conf</p>
<p>[IT]<br />
comment = System Administrator Share Directory<br />
path = /IT<br />
write list = @sysadmins<br />
read only = yes<br />
valid users = @sysadmins<br />
create mask = 2770<br />
directory mask = 2770<br />
public = no</p>
<p><object width="500" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.sys-blog.net/videos/sambagrp/sambagrp_controller.swf" /><embed width="500" height="360" type="application/x-shockwave-flash" src="http://www.sys-blog.net/videos/sambagrp/sambagrp_controller.swf" /><!--[if !IE]>&#8211;> <img src="http://www.sys-blog.net/wp-includes/js/tinymce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="500" height="360" data-mce-json="{'video':{},'params':{'src':'http://www.sys-blog.net/videos/sambagrp/sambagrp_controller.swf'},'name':null,'object_html':' &lt;!--&lt;![endif]--&gt;&lt;p&gt;Alternative content&lt;/p&gt;&lt;p&gt;&lt;!--[if !IE]&gt;--&gt;&lt;/p&gt;','hspace':null,'vspace':null,'align':null,'bgcolor':null}" alt="" /><!--<![endif]--></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1849</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHCE: DNS &#8211; Configure a caching-only name server to forward DNS queries</title>
		<link>http://www.sys-blog.net/?p=1845</link>
		<comments>http://www.sys-blog.net/?p=1845#comments</comments>
		<pubDate>Fri, 08 Mar 2013 15:30:30 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1845</guid>
		<description><![CDATA[This tasks requires you to either configure a caching only server or configure a caching only server that forwards DNS queries. fairly simple once you get the idea. Server steps: Install relevant packages yum -y install bind bind-chroot open the right ports iptables -I INPUT -p tcp -s 10.0.0.0/24 &#8211;dport 53 -j ACCEPT iptables -I [...]]]></description>
				<content:encoded><![CDATA[<p>This tasks requires you to either configure a caching only server or configure a caching only server that forwards DNS queries.</p>
<p>fairly simple once you get the idea.</p>
<p><b>Server steps:</b></p>
<p><strong>Install relevant packages</strong><br />
yum -y install bind bind-chroot</p>
<p><b>open the right ports</b><br />
iptables -I INPUT -p tcp -s 10.0.0.0/24 &#8211;dport 53 -j ACCEPT<br />
iptables -I INPUT -p udp -s 10.0.0.0/24 &#8211;dport 53 -j ACCEPT</p>
<p><strong>Edit /etc/named.conf</strong><br />
<strong>For a caching only server</strong><br />
listen-on port 53 { 127.0.0.1; eth-ip-address; };<br />
allow-query { localhost; network-ip-address; };</p>
<p><strong>For a caching only that forwards requests:</strong><br />
listen-on port 53 { 127.0.0.1; eth-ip-address; };<br />
allow-query { localhost; network-ip-address; };<br />
forward only;<br />
forwarders { forward-ip1; forward ip2; };</p>
<p><strong>Enable logging</strong><br />
rndc querylog</p>
<p><strong>View logs</strong><br />
tail -f /var/log/messages</p>
<p><strong>Client Side:</strong><br />
set the DNS server IP statically and query some servers/sites.</p>
<p><object width="500" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.sys-blog.net/videos/dns/dns_controller.swf" /><embed width="500" height="360" type="application/x-shockwave-flash" src="http://www.sys-blog.net/videos/dns/dns_controller.swf" /><!--[if !IE]>&#8211;> <img src="http://www.sys-blog.net/wp-includes/js/tinymce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="500" height="360" data-mce-json="{'video':{},'params':{'src':'http://www.sys-blog.net/videos/dns/dns_controller.swf'},'name':null,'object_html':' &lt;!--&lt;![endif]--&gt;&lt;p&gt;Alternative content&lt;/p&gt;&lt;p&gt;&lt;!--[if !IE]&gt;--&gt;&lt;/p&gt;','hspace':null,'vspace':null,'align':null,'bgcolor':null}" alt="" /><!--<![endif]--></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1845</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHCE: NFS &#8211; Provide network shares to specific clients</title>
		<link>http://www.sys-blog.net/?p=1841</link>
		<comments>http://www.sys-blog.net/?p=1841#comments</comments>
		<pubDate>Tue, 26 Feb 2013 17:50:48 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1841</guid>
		<description><![CDATA[This task requires you to setup an NFS server and to provide a share to other clients, possibly on different networks. the key here is to supply host based security either by iptables or the exports file to either a network range, single client, or several specific clients. In the video example I am using [...]]]></description>
				<content:encoded><![CDATA[<p>This task requires you to setup an NFS server and to provide a share to other clients, possibly on different networks.</p>
<p>the key here is to supply host based security either by iptables or the exports file to either a network range, single client, or several specific clients.</p>
<p>In the video example I am using 3 different machines. server, client, and an outsider client.</p>
<p>The NFS share will be configured in the server, and the server will export the share to the client, while we will be testing functionality with the outsider to figure out if we properly configured the security.</p>
<p><strong>Server steps: </strong><br />
<strong>Install NFS:</strong><br />
yum groupinstall &#8220;NFS file server&#8221; -y</p>
<p><strong>Open FW rules:</strong><br />
iptables -I INPUT -m tcp -p tcp -s 192.168.0.0/24 &#8211;dport 2049 -j ACCEPT<br />
iptables -I INPUT -m tcp -p tcp -s 192.168.0.0/24 &#8211;dport 111 -j ACCEPT<br />
iptables -I INPUT -m udp -p udp -s 192.168.0.0/24 &#8211;dport 111 -j ACCEPT</p>
<p><strong>Create the share:</strong><br />
mkdir /srv/nfs</p>
<p><strong>Start the services:</strong><br />
service rpcbind start<br />
service nfs start<br />
Make sure they survive a reboot<br />
chkconfig rpcbind on<br />
chkconfig nfs on</p>
<p><strong>Edit /etc/exports</strong><br />
/srv/nfs 192.168.0.0/24(ro)<br />
Export shares<br />
exportfs -va</p>
<p><strong>Client steps:</strong><br />
yum install nfs-utils<br />
mount -t nfs 192.168.0.254:/srv/nfs /mnt/nfs<br />
Edit /etc/fstab</p>
<p><strong>Outsider steps:</strong><br />
yum install nfs-utils<br />
see if you can mount it from a different IP, if things go well, you shouldn&#8217;t be able to.</p>
<p><object width="500" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.sys-blog.net/videos/nfs/nfs_controller.swf" /><embed width="500" height="360" type="application/x-shockwave-flash" src="http://www.sys-blog.net/videos/nfs/nfs_controller.swf" /><!--[if !IE]>&#8211;> <img src="http://www.sys-blog.net/wp-includes/js/tinymce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="500" height="360" data-mce-json="{'video':{},'params':{'src':'http://www.sys-blog.net/videos/nfs/nfs_controller.swf'},'name':null,'object_html':' &lt;!--&lt;![endif]--&gt;&lt;p&gt;Alternative content&lt;/p&gt;&lt;p&gt;&lt;!--[if !IE]&gt;--&gt;&lt;/p&gt;','hspace':null,'vspace':null,'align':null,'bgcolor':null}" alt="" /><!--<![endif]--></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1841</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHCE &#8211; configure a system to log to a remote system &amp; configure a system to accept logging from a remote system</title>
		<link>http://www.sys-blog.net/?p=1836</link>
		<comments>http://www.sys-blog.net/?p=1836#comments</comments>
		<pubDate>Mon, 25 Feb 2013 20:09:03 +0000</pubDate>
		<dc:creator>Dolev</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://www.sys-blog.net/?p=1836</guid>
		<description><![CDATA[This task is fairly easy. one machine send its&#8217; logs to the other I set up 2 machines, 1 server and 1 client. Server IP: 10.10.0.23 Client IP : 10.10.0.20 the client is configured to send its&#8217; logs to the server, which is configured to accept logs over port 514 (UDP or TCP depends on [...]]]></description>
				<content:encoded><![CDATA[<p>This task is fairly easy. one machine send its&#8217; logs to the other</p>
<p>I set up 2 machines, 1 server and 1 client.<br />
Server IP: 10.10.0.23<br />
Client IP : 10.10.0.20</p>
<p>the client is configured to send its&#8217; logs to the server, which is configured to accept logs over port 514 (UDP or TCP depends on the configuration).</p>
<p><strong>Client:</strong><br />
edit /etc/rsyslog.conf and edit the last line with the server IP (one @ = UDP, two @@ = TCP)</p>
<p><strong>restart rsyslog service</strong><br />
service rsyslog restart</p>
<p><strong>Server:</strong><br />
<strong>open port 514 tcp/udp </strong><br />
IPTABLES -I INPUT -m tcp -p tcp &#8211;dport 514 -j ACCEPT<br />
IPTABLES -I INPUT -m udp -p udp &#8211;dport 514 -j ACCEPT</p>
<p><strong>Edit rsyslog.conf and uncomment to directives</strong><br />
#$ModLoad imtcp<br />
#$InputTCPServerRun 514</p>
<p><strong>Test functionality</strong><br />
logger &#8220;Hello from client&#8221;</p>
<p>RHCE clearly states host based security in each objectives, you could permit just one machine through the firewall via port 514 with &#8220;-s 10.10.0.20&#8243;</p>
<p><object width="500" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.sys-blog.net/videos/rsyslog/rsyslog_controller.swf" /><embed width="500" height="360" type="application/x-shockwave-flash" src="http://www.sys-blog.net/videos/rsyslog/rsyslog_controller.swf" /><!--[if !IE]>&#8211;> <img src="http://www.sys-blog.net/wp-includes/js/tinymce/themes/advanced/img/trans.gif" class="mceItemMedia mceItemFlash" width="500" height="360" data-mce-json="{'video':{},'params':{'src':'http://www.sys-blog.net/videos/rsyslog/rsyslog_controller.swf'},'name':null,'object_html':' &lt;!--&lt;![endif]--&gt;&lt;p&gt;Alternative content&lt;/p&gt;&lt;p&gt;&lt;!--[if !IE]&gt;--&gt;&lt;/p&gt;','hspace':null,'vspace':null,'align':null,'bgcolor':null}" alt="" /><!--<![endif]--></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sys-blog.net/?feed=rss2&#038;p=1836</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
