<?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>x83.net</title>
	<atom:link href="http://www.x83.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>View average Round trip time in Wireshark</title>
		<link>http://www.x83.net/view-average-round-trip-time-in-wireshark/</link>
		<comments>http://www.x83.net/view-average-round-trip-time-in-wireshark/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 12:18:41 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[round trip]]></category>
		<category><![CDATA[rtt]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=836</guid>
		<description><![CDATA[Round-trip time (RTT) is the time it takes for a client to send a request and the server to send a response over the network, not including the time required for data transfer. Not sure if this fits what you are trying to do, but have you tried Statistics -&#62; IO Graphs Then set Units [...]]]></description>
			<content:encoded><![CDATA[<pre>Round-trip time (RTT) is the time it takes for a client to send a request and the server to send
a response over the network, not including the time required for data transfer. Not sure if this
fits what you are trying to do, but have you tried <strong>Statistics -&gt; IO Graphs</strong> Then set Units to Advanced.
<strong>Select "AVG(*)"</strong> as the Calc method. Enter <strong>tcp.analysis.ack_rtt</strong> You can apply a filter in the
appropriate location as well. Note that you will need "Analyze TCP sequence numbers" activated in
TCP protocol options in Wireshark preferences for this to work.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/view-average-round-trip-time-in-wireshark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.x83.net/833/</link>
		<comments>http://www.x83.net/833/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 12:16:28 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[spider]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=833</guid>
		<description><![CDATA[All of these do the same thing..so its a matter of preference and if those tools are installed. 1. curl -I www.google.com 2. w_get -S --spider www.google.com 3. HEAD www.google.com 4. telnet www.google.com 80 HEAD / HTTP/1.0 Host: www.google.com]]></description>
			<content:encoded><![CDATA[<pre>All of these do the same thing..so its a matter of preference and if those tools are installed.</pre>
<pre>1. curl -I www.google.com</pre>
<pre>2. w_get -S --spider www.google.com</pre>
<pre>3. HEAD www.google.com</pre>
<pre>4. telnet www.google.com 80
HEAD / HTTP/1.0
Host: www.google.com</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/833/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert from instance store to EBS</title>
		<link>http://www.x83.net/convert-from-instance-store-to-ebs/</link>
		<comments>http://www.x83.net/convert-from-instance-store-to-ebs/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 13:21:53 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Amazon]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2-register]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[snapshot]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=827</guid>
		<description><![CDATA[Convert from instance store to EBS One client that was running a older EC2 instance was using instance store. From my point of view the only benefit for instance store is that it has better IO..though if you build a RAID using several EBS volumes. Anyway steps are : 1. create 1 EBS volume 2. [...]]]></description>
			<content:encoded><![CDATA[<pre>Convert from instance store to EBS

One client that was running a older EC2 instance was using instance store.</pre>
<pre>From my point of view the only benefit for instance store is that it has</pre>
<pre>better IO..though if you build a RAID using several EBS volumes.</pre>
<pre>Anyway steps are : 

1. create 1 EBS volume
2. attach this volume to your EC2 instance store 

3. format it as ext3
mkfs.ext3 /dev/sdf

4. mount it
mkdir /mnt/ebs
mount /dev/sdf /mnt/ebs

5. sync the instance with the volume
rsync -avHx / /mnt/ebs
rsync -avHx /dev /mnt/ebs

(you can edit /mnt/ebs/fstab and delete the reference towards the /mnt partition)

6. sync &amp;&amp; umount /mnt/ebs

7. create a snapshot of that volume

8. register the ami based on that snapshot</pre>
<pre><strong>ec2-register -s snap-ID -name "EBS instance" -description "EBS instance" -architecture i386</strong></pre>
<pre><strong> -ramdisk ari-d23cd6bb -kernel aki-c43cd6ad</strong>

As a result it should show something like:

IMAGE   ami-newID</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/convert-from-instance-store-to-ebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show FTP accounts in Plesk</title>
		<link>http://www.x83.net/show-ftp-accounts-in-plesk/</link>
		<comments>http://www.x83.net/show-ftp-accounts-in-plesk/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:58:51 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[plesk]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=822</guid>
		<description><![CDATA[First login into mysql: mysql -uadmin -p`cat /etc/psa/.psa.shadow` and then: SELECT REPLACE(sys_users.home,&#8217;/home/httpd/vhosts/&#8217;,&#8221;) AS domain, sys_users.login,accounts.password FROM sys_users LEFT JOIN accounts on sys_users.account_id=accounts.id ORDER BY sys_users.home DESC ;]]></description>
			<content:encoded><![CDATA[<p>First login into mysql:</p>
<p><strong>mysql -uadmin -p`cat /etc/psa/.psa.shadow`</strong></p>
<p>and then:</p>
<p><strong>SELECT REPLACE(sys_users.home,&#8217;/home/httpd/vhosts/&#8217;,&#8221;) AS domain, sys_users.login,accounts.password FROM sys_users LEFT JOIN accounts on sys_users.account_id=accounts.id ORDER BY sys_users.home DESC ;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/show-ftp-accounts-in-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable cPanel CSF email bruteforce protection</title>
		<link>http://www.x83.net/enable-cpanel-csf-email-bruteforce-protection/</link>
		<comments>http://www.x83.net/enable-cpanel-csf-email-bruteforce-protection/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:25:35 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[LF_DISTATTACK]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=820</guid>
		<description><![CDATA[If you have CSF installed then check these two options: # Distributed Account Attack. This option will keep track of login failures # from distributed IP addresses to a specific application account. If the # number of failures matches the trigger value above, ALL of the IP addresses # involved in the attack will be [...]]]></description>
			<content:encoded><![CDATA[<p>If you have CSF installed then check these two options:</p>
<p><code># Distributed Account Attack. This option will keep track of login failures<br />
# from distributed IP addresses to a specific application account. If the<br />
# number of failures matches the trigger value above, ALL of the IP addresses<br />
# involved in the attack will be blocked according to the temp/perm rules above<br />
LF_DISTATTACK = Default: 0 [0-1]</p>
<p># Set the following to the minimum number of unique IP addresses that trigger<br />
LF_DISTATTACK_UNIQ = Default: 2 [2-20]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/enable-cpanel-csf-email-bruteforce-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Openssl commands</title>
		<link>http://www.x83.net/openssl-commands/</link>
		<comments>http://www.x83.net/openssl-commands/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 14:30:11 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[s_client]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=817</guid>
		<description><![CDATA[General OpenSSL commands The following commands allow you to generate CSRs, Certificates, Private Keys and other tasks. Generate a new private key and matching certificate signing request (Unix)  openssl req -out CSR.csr -pubkey -new -keyout privateKey.key Generate a new private key and matching certificate signing request (Windows) openssl req -out CSR.csr -pubkey -new -keyout privateKey.key [...]]]></description>
			<content:encoded><![CDATA[<h1><span class="Apple-style-span" style="font-size: 20px;">General OpenSSL commands</span></h1>
<div id="content2299">
<p>The following commands allow you to generate CSRs, Certificates, Private Keys and other tasks.</p>
<p><strong>Generate a new private key and matching certificate signing request (Unix) </strong></p>
<pre>openssl req -out CSR.csr -pubkey -new -keyout privateKey.key</pre>
<p><strong>Generate a new private key and matching certificate signing request (Windows)</strong></p>
<pre>openssl req -out CSR.csr -pubkey -new -keyout privateKey.key -config .shareopenssl.cmf</pre>
<p><strong>Generate a certificate signing request for an existing private key</strong></p>
<pre>openssl req -out CSR.csr -key privateKey.key -new</pre>
<p><strong>Generate a certificate signing request based on an existing x509 certificate</strong></p>
<pre>openssl x509 -x509toreq -in MYCRT.crt -out CSR.csr -signkey privateKey.key</pre>
<p><strong>Decrypt private key</strong></p>
<pre>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt</pre>
<p><strong>Remove a passphrase from a private key</strong></p>
<pre>openssl rsa -in privateKey.pem -out newPrivateKey.pem</pre>
<hr />
<h2>Checking commands</h2>
<p>Use the following commands to check the information within a Certificate, CSR or Private Key. You can also check CSRs and certificates using our <a href="https://www.networking4all.com/en/support/tools/">online tools</a>.</p>
<p><strong>Check a certificate signing request<br />
</strong></p>
<pre>openssl req -text -noout -verify -in CSR.csr</pre>
<p><strong>Check a private key</strong></p>
<pre>openssl rsa -in privateKey.key -check</pre>
<p><strong>Check a certificate</strong></p>
<pre>openssl x509 -in certificate.crt -text -noout</pre>
<p><strong>Check a PKCS#12 keystore</strong></p>
<pre>openssl pkcs12 -info -in keyStore.p12</pre>
<hr />
<h2>Debugging commands</h2>
<p>If you are receiving certificate errors, try one of the following commands to debug a SSL connection. Use our <a href="https://www.networking4all.com/en/support/tools/site+check/">Site Check</a> as well to check the certificate.</p>
<p><strong>Check the MD5 hash of the public key</strong></p>
<pre>openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in privateKey.key | openssl md5
openssl req -noout -modulus -in CSR.csr | openssl md5</pre>
<p><strong>Check an SSL connection. All certificates (also intermediates) should be shown</strong></p>
<pre>openssl s_client -connect <a href="https://www.paypal.com/">https://www.paypal.com:443
</a></pre>
<hr />
<h2>Converting commands</h2>
<p>Use the following commands to convert certificates and keys to different formats to make them compatible with specific types of servers or software. For example, convert a normal PEM file that would work with Apache to a PFX (PKCS#12) file for use with Tomcat or IIS.</p>
<p><strong>Convert DER (.crt .cer .der) to PEM</strong></p>
<pre>openssl x509 -inform der -in certificate.cer -out certificate.pem</pre>
<p><strong>Convert PEM to DER</strong></p>
<pre>openssl x509 -outform der -in certificate.pem -out certificate.der</pre>
<p><strong>Convert PKCS#12 (.pfx .p12) to PEM containing both private key and certificates</strong></p>
<pre>openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes
    add -nocerts for private key only; add -nokeys for certificates only</pre>
<p><strong>Convert (add) a seperate key and certificate to a new keystore of type PKCS#12</strong></p>
<pre>openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/openssl-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malware in database</title>
		<link>http://www.x83.net/malware-in-database/</link>
		<comments>http://www.x83.net/malware-in-database/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 09:09:12 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=813</guid>
		<description><![CDATA[I got a report these days about a site being flagged as forgery by Google Safebrowsing.  Usually these situations are easy to handle since most of the times there is a flaw of a php script that allow attackers to upload/modify different .php/.js/.css files. Doing a find or restoring the files fixes the problem. This [...]]]></description>
			<content:encoded><![CDATA[<p>I got a report these days about a site being flagged as forgery by Google Safebrowsing.  Usually these situations are easy to handle since most of the times there is a flaw of a php script that allow attackers to upload/modify different .php/.js/.css files. Doing a find or restoring the files fixes the problem.</p>
<p>This time I did not find any modified file..but still the sites were being reported to contain malware. Then I&#8217;ve checked in the database and seems there were some iframe entries to redirect  to some malware sites. Truncating and reimporting the affected tables solved the issue.</p>
<p>Question remains : is there any malware scanner for databases? What if instead of a iframe some hardcoded strings are set..most likely I would have missed those.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/malware-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WARNING: mismatch_cnt is not 0</title>
		<link>http://www.x83.net/warning-mismatch_cnt-is-not-0/</link>
		<comments>http://www.x83.net/warning-mismatch_cnt-is-not-0/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 11:30:40 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[md0]]></category>
		<category><![CDATA[md1]]></category>
		<category><![CDATA[mismatch_cnt]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=810</guid>
		<description><![CDATA[I got an email regarding this issue saying something like : &#160; WARNING: mismatch_cnt is not 0 on /dev/md1 The /dev/mdX can vary depending on how many raid partitions you have. This mismatch_cnt value is the value of the blocks, that are not synchronized between RAID-1 (mirrored) drives.  On my server it looked something like [...]]]></description>
			<content:encoded><![CDATA[<p>I got an email regarding this issue saying something like :</p>
<p>&nbsp;</p>
<p>WARNING: mismatch_cnt is not 0 on /dev/md1</p>
<p>The /dev/mdX can vary depending on how many raid partitions you have. This mismatch_cnt value is the value of the blocks,</p>
<p>that are not synchronized between RAID-1 (mirrored) drives.  On my server it looked something like :</p>
<pre>[root@ns ~]# cat /sys/block/md1/md/mismatch_cnt
4910080</pre>
<p>To fix :</p>
<pre>echo repair &gt;/sys/block/md0/md/sync_action
watch cat /proc/mdstat</pre>
<p>And after the repair is completed:</p>
<pre>echo check &gt;/sys/block/md1/md/sync_action
watch cat /proc/mdstat</pre>
<pre></pre>
<p>Then check to see what this returns:</p>
<pre>cat /sys/block/md1/md/mismatch_cnt</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/warning-mismatch_cnt-is-not-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk down after upgrade localhost.localdomain</title>
		<link>http://www.x83.net/plesk-down-after-upgrade-localhost-localdomain/</link>
		<comments>http://www.x83.net/plesk-down-after-upgrade-localhost-localdomain/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 05:36:01 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[repair-integration]]></category>
		<category><![CDATA[sso]]></category>
		<category><![CDATA[update-hostname]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=807</guid>
		<description><![CDATA[After upgrade to 10.3.1 when accessing https://host:8443/ you get redirected to : https://localhost.localdomain:8443/relay To fix: /usr/local/psa/bin/sso -g /usr/share/plesk-billing/update-hostname &#8211;new-hostname= /usr/share/plesk-billing/repair-integration &#8211;command=repair-all &#8211;idp-url=https://:8443]]></description>
			<content:encoded><![CDATA[<p>After upgrade to 10.3.1 when accessing https://host:8443/ you get redirected to :</p>
<p>https://localhost.localdomain:8443/relay</p>
<p>To fix:</p>
<p>/usr/local/psa/bin/sso -g</p>
<p>/usr/share/plesk-billing/update-hostname &#8211;new-hostname=<your domain><br />
/usr/share/plesk-billing/repair-integration &#8211;command=repair-all &#8211;idp-url=https://<your domain>:8443</p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/plesk-down-after-upgrade-localhost-localdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>planetbackup has a uid 0 account</title>
		<link>http://www.x83.net/planetbackup-has-a-uid-0-account/</link>
		<comments>http://www.x83.net/planetbackup-has-a-uid-0-account/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 07:58:58 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[OwN3D]]></category>

		<guid isPermaLink="false">http://www.x83.net/?p=801</guid>
		<description><![CDATA[cPanel bugs me with this message every day on several servers. Seems its from the tool theplanet.com uses to handle backups. Though I don&#8217;t understand why does it need uid 0 and why the &#8220;OwN3D&#8221; word. This does not look too professional. Anyway to get passed this you can run : &#160; sed -i &#8216;s/$user [...]]]></description>
			<content:encoded><![CDATA[<p>cPanel bugs me with this message every day on several servers. Seems its from the tool theplanet.com uses to handle backups.</p>
<p>Though I don&#8217;t understand why does it need uid 0 and why the &#8220;<em>OwN3D&#8221; </em>word. This does not look too professional.</p>
<p>Anyway to get passed this you can run :</p>
<p>&nbsp;</p>
<p><strong>sed -i &#8216;s/$user ne \&#8221;planetbackup&#8221;/$user ne \&#8221;toor\&#8221; \&amp;\&amp; $user ne \&#8221;admin\&#8221;/g&#8217; /scripts/hackcheck; echo &#8220;/scripts/hackcheck&#8221; &gt;&gt; /etc/cpanelsync.exclude</strong></p>
<p><strong></strong>This is the full email warning:</p>
<p>&nbsp;</p>
<p><em>IMPORTANT: Do not ignore this email.</em><br />
<em>This message is to inform you that the account planetbackup has user id 0 (root privs).</em><br />
<em>This could mean that your system was compromised (OwN3D). To be safe you should</em><br />
<em>verify that your system has not been compromised.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/planetbackup-has-a-uid-0-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

