<?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>Max Clark &#187; Linux</title>
	<atom:link href="http://www.clarksys.com/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clarksys.com</link>
	<description>Rants and Raves!</description>
	<lastBuildDate>Thu, 19 Aug 2010 23:44:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pass a PCI Compliance Scan in 5 Steps</title>
		<link>http://www.clarksys.com/blog/2009/09/03/pass-a-pci-compliance-scan-in-5-steps/</link>
		<comments>http://www.clarksys.com/blog/2009/09/03/pass-a-pci-compliance-scan-in-5-steps/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 00:25:49 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pci]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.clarksys.com/?p=456</guid>
		<description><![CDATA[PCI (Payment Card Industry) Compliance/Standards were originally created to standardize on a set of rules and guidelines to help protect credit card holders from theft &#8211; specifically theft from a website being hacked and their information compromised. At what point PCI Compliance was bastardized I do not know &#8211; but today it&#8217;s really a joke.
In [...]]]></description>
			<content:encoded><![CDATA[<p>PCI (Payment Card Industry) Compliance/Standards were originally created to standardize on a set of rules and guidelines to help protect credit card holders from theft &#8211; specifically theft from a website being hacked and their information compromised. At what point PCI Compliance was bastardized I do not know &#8211; but today it&#8217;s really a joke.</p>
<p>In order to maintain a merchant account and process credit cards, most vendors will require a passing score on a compliance scan. There&#8217;s nothing quite like a little regulation to create a new industry &#8211; today a search on Google for &#8220;PCI Compliance Scan&#8221; returns almost 3/4 mil results. Don&#8217;t get me wrong, I am a firm believer in the standards put forth by PCI, but the requirement to pass an automated scan is nonsense. Almost all companies offering PCI compliance are using the <a href="http://www.nessus.org/nessus/">Nessus</a> security scanner which connects to your machine, runs through an automated scan and spits out a report with a score.</p>
<p>What kind of things should you expect to find on the results? Gems like:</p>
<blockquote><p>Synopsis : It is possible to determine the exact time set on the remote host. Description : The remote host answers to an ICMP timestamp request. This allows an attacker to know the date which is set on your machine. This may help him to defeat all your time based authentication protocols. Solution: filter out the ICMP timestamp requests (13), and the outgoing ICMP timestamp replies (14). Risk Factor: Low / CVSS Base Score : 0 (AV:R/AC:L/Au:NR/C:N/A:N/I:N/B:N) CVE : CVE-1999-0524</p></blockquote>
<p>And:</p>
<blockquote><p>Your computer appears to be running http software that allows others to view its web pages. If you don&#8217;t intend this computer to allow others to view its web pages then turn this service off. There are many potential security vulnerabilities in http software.</p></blockquote>
<p>My general advice to computer security applies here. If you don&#8217;t need/use a service/application then turn it off, and keep your computer up to date with the latest security patches from the vendor. Fedora and CentOS users can just run &#8220;yum update&#8221;.</p>
<p>Anyways, back to the scan&#8230;</p>
<p>1. Run the initial scan against your site &#8211; you will probably fail. Open your web server logs and find the IP address of the machine that scanned you. Save this IP for later.</p>
<p>2. If you are running PHP you will have lot&#8217;s of security warnings, add this line to your /etc/php.ini (or wherever it may be):</p>
<p><code>expose_php = Off</code></p>
<p>3. Disable Trace, Track, Server Signatures and Server Tokens in Apache (/etc/httpd/conf/httpd.conf):</p>
<p><code>TraceEnable off<br />
ServerSignature Off<br />
ServerTokens ProductOnly</code></p>
<p>4. Now the fun part, using the IP address you found in step one block the entire Class C (/24) IP Netblock range from connecting to your server on ports other than 80 and 443 (http and https). In /etc/sysconfig/iptables immediately after this line:</p>
<p><code>-A RH-Firewall-1-INPUT -i lo -j ACCEPT</code></p>
<p>Add these entries:</p>
<p><code># Filters for PCI Scan<br />
-A RH-Firewall-1-INPUT -s x.x.x.0/24 -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT<br />
-A RH-Firewall-1-INPUT -s x.x.x.0/24 -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT<br />
-A RH-Firewall-1-INPUT -s x.x.x.0/24 -j REJECT --reject-with icmp-host-prohibited</code></p>
<p><em>What this does is allow the scanning system to connect to the web server via http and https only &#8211; everything else will be denied.</em></p>
<p>5. Reload IP Tables (service iptables restart) and Apache (service httpd restart) &#8211; and rescan your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarksys.com/blog/2009/09/03/pass-a-pci-compliance-scan-in-5-steps/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Set the time zone on a per user basis</title>
		<link>http://www.clarksys.com/blog/2009/09/01/set-the-time-zone-on-a-per-user-basis/</link>
		<comments>http://www.clarksys.com/blog/2009/09/01/set-the-time-zone-on-a-per-user-basis/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:24:31 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.clarksys.com/?p=449</guid>
		<description><![CDATA[Continuing on my general rant that all computer systems should use UTC/GMT for their system clocks the question is often posed by users that want to see their own local time when they log into a remote computer.
Procedure &#8211; set the time zone on a per user basis
Open user ~/.bashrc or ~/.bash_profile file using vi text editor [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing on my general rant that all computer systems should use UTC/GMT for their system clocks the question is often posed by users that want to see their own local time when they log into a remote computer.</p>
<p><strong>Procedure &#8211; set the time zone on a per user basis</strong></p>
<p>Open user <strong>~/.bashrc </strong>or <strong>~/.bash_profile</strong> file using vi text editor and set up TZ environment variable. Append or SET TZ as follows:</p>
<p><strong>export TZ=&#8221;/usr/share/zoneinfo/{TIMEZONE-DIRECTORY}/{TIMEZONE_FILE}&gt;&#8221;</strong></p>
<p>If your username is foo and you would like to set TZ to Asia/Calcutta (INDIA IST) type command:</p>
<p><code># vi /home/foo/.bashrc</code></p>
<p>Append following:</p>
<p><code>export TZ="/usr/share/zoneinfo/Asia/Calcutta"</code></p>
<p>Save and close the file.</p>
<p>(via <a href="http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/" target="_blank">http://www.cyberciti.biz/faq/howto-linux-set-time-zone-per-user-basis/</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarksys.com/blog/2009/09/01/set-the-time-zone-on-a-per-user-basis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot Linux box after a kernel panic</title>
		<link>http://www.clarksys.com/blog/2007/11/29/reboot-linux-box-after-a-kernel-panic/</link>
		<comments>http://www.clarksys.com/blog/2007/11/29/reboot-linux-box-after-a-kernel-panic/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 14:15:29 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.clarksys.com/?p=368</guid>
		<description><![CDATA[To reboot a Linux box automatically after a kernel panic all you need to do is customize the &#8220;kernel.panic&#8221; sysctl.
> echo &#8220;kernel.panic=10&#8243; >> /etc/sysctl.conf
This example will cause a reboot after 10 seconds.
]]></description>
			<content:encoded><![CDATA[<p>To reboot a Linux box automatically after a kernel panic all you need to do is customize the &#8220;kernel.panic&#8221; sysctl.<br />
> echo &#8220;kernel.panic=10&#8243; >> /etc/sysctl.conf<br />
This example will cause a reboot after 10 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarksys.com/blog/2007/11/29/reboot-linux-box-after-a-kernel-panic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
