<?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 T&#38;T &#187; Security</title>
	<atom:link href="http://linux.wxs.ro/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.wxs.ro</link>
	<description>WladyX’s collection of linux tips&#38;tricks</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:42:05 +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>Configuring QuickSSHD for pub/privkey</title>
		<link>http://linux.wxs.ro/2011/08/05/configuring-quicksshd-for-pubprivkey/</link>
		<comments>http://linux.wxs.ro/2011/08/05/configuring-quicksshd-for-pubprivkey/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 11:10:56 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ssh]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1553</guid>
		<description><![CDATA[1. Create a dsa-key-pair on your linux client ssh-keygen -t dsa -f id_dsa-android Note: I named the key id_dsa-android because that&#8217;s my own convention 2. Copy the public key to your Android device scp -P 2222 id_dsa-android.pub &#60;your-ip-goes-here&#62;:/sdcard Note: This assumes you have password enabled and sshd running on port 2222 3. Validate the public [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1. Create a dsa-key-pair on your linux client</strong></p>
<pre>  ssh-keygen -t dsa -f id_dsa-android</pre>
<p><em>Note</em>: I named the key <code>id_dsa-android</code> because that&#8217;s my own convention</p>
<p><strong>2. Copy the public key to your Android device</strong></p>
<pre>  scp -P 2222 id_dsa-android.pub &lt;your-ip-goes-here&gt;:/sdcard</pre>
<p><em>Note</em>: This assumes you have password enabled and sshd running on port 2222</p>
<p><strong>3. Validate the public key</strong></p>
<pre>  cat /sdcard/id_dsa-android.pub &gt;&gt;
  /data/data/com.teslacoilsw.quicksshd/home/.ssh/authorized_keys</pre>
<p><em>Note</em>: Validating means in this case to copy the pubkey to <code>authorized_keys</code> (it&#8217;s located in <code>/data/data/com.teslacoilsw.quicksshd/home/.ssh</code>)</p>
<p><strong>4. Configure</strong> Go to your QuickSSHD settings and remove the checkbox <code>Password</code> and check <code>Shared Keys</code> (If you did right the key added to <code>authorized_keys</code> should be listed right under the checkbox.</p>
<p><strong>5. Test</strong></p>
<pre>  ssh -i &lt;your-home-goes-here&gt;/.ssh/id_dsa-android -p 2222 &lt;your-ip-goes-here&gt;</pre>
<p>If everything went fine you should get:</p>
<pre>  Enter passphrase for key '/home/sven/.ssh/id_dsa-android'

<a href="http://cri.ch/sven/doku.php/blog/configuring-quicksshd-for-pub/privkey">source</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/08/05/configuring-quicksshd-for-pubprivkey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to redirect traffic to another machine in Linux</title>
		<link>http://linux.wxs.ro/2011/07/22/how-to-redirect-traffic-to-another-machine-in-linux/</link>
		<comments>http://linux.wxs.ro/2011/07/22/how-to-redirect-traffic-to-another-machine-in-linux/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 12:51:00 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1538</guid>
		<description><![CDATA[echo 1 &#62;/proc/sys/net/ipv4/ip_forward iptables -t nat -I PREROUTING -p tcp &#8211;dport 888 -j DNAT &#8211;to-destination 10.0.0.1:443 iptables -t nat -I POSTROUTING -p tcp -d 10.0.0.1 &#8211;dport 443 -j MASQUERADE source]]></description>
			<content:encoded><![CDATA[<p>echo 1 &gt;/proc/sys/net/ipv4/ip_forward</p>
<p>iptables -t nat -I PREROUTING -p tcp &#8211;dport 888 -j DNAT &#8211;to-destination 10.0.0.1:443<br />
iptables -t nat -I POSTROUTING -p tcp -d 10.0.0.1 &#8211;dport 443 -j MASQUERADE</p>
<p><a href="http://www.simplehelp.net/2009/04/15/how-to-redirect-traffic-to-another-machine-in-linux/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/07/22/how-to-redirect-traffic-to-another-machine-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrooted SFTP accounts without shell access</title>
		<link>http://linux.wxs.ro/2011/03/24/chrooted-sftp-accounts-without-shell-access/</link>
		<comments>http://linux.wxs.ro/2011/03/24/chrooted-sftp-accounts-without-shell-access/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 10:29:06 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ssh]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1374</guid>
		<description><![CDATA[Create a user group, e.g. sftponly Add users to that group Add a corresponding Match directive to sshd&#8216;s configuration in /etc/ssh/sshd_config: Subsystem sftp internal-sftp Match Group sftponly ChrootDirectory %h AllowTCPForwarding no X11Forwarding no ForceCommand internal-sftp source]]></description>
			<content:encoded><![CDATA[<ol>
<li>Create a user group, e.g. <strong>sftponly</strong></li>
<li>Add users to that group</li>
<li>Add a corresponding <strong>Match</strong> directive to <strong>sshd</strong>&#8216;s configuration in <em>/etc/ssh/sshd_config</em>:</li>
</ol>
<pre>Subsystem sftp internal-sftp

Match Group sftponly
        ChrootDirectory <strong>%h</strong>
        AllowTCPForwarding no
        X11Forwarding no
        ForceCommand <strong>internal-sftp

</strong><a href="http://www.howtoforge.com/setting-up-sftp-in-a-hurry-for-file-uploads" target="_blank">source</a><strong></strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/03/24/chrooted-sftp-accounts-without-shell-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repair Windows 7 System Files</title>
		<link>http://linux.wxs.ro/2011/03/22/repair-windows-7-system-files/</link>
		<comments>http://linux.wxs.ro/2011/03/22/repair-windows-7-system-files/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 12:22:09 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1371</guid>
		<description><![CDATA[8 out of 10 average PC users have their box’s system files altered by malwares, viruses, etc. We usually reinstall the OS if the antivirus and anti malware software did not perform their job well. Here’s one way to fix the corrupted system files without the need of restarting your Windows 7 box. 1. Run [...]]]></description>
			<content:encoded><![CDATA[<p>8 out of 10 average PC users have their box’s system files altered by  malwares, viruses, etc. We usually reinstall the OS if the antivirus  and anti malware software did not perform their job well. Here’s one way  to fix the corrupted system files without the need of restarting your  Windows 7 box.</p>
<p>1. Run the Command Prompt as Administrator<br />
2. Type the following command<br />
3. <code>C:\Windows\system32\&gt; sfc /scannow</code></p>
<p>After the verification phase, you will receive a message about your system files’ integrity<br />
<code>Windows Resource Protection did not find any integrity violations.</code></p>
<p><a href="http://eradicus.blogsome.com/2011/03/20/repair-windows-7-system-files/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/03/22/repair-windows-7-system-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WATOBO</title>
		<link>http://linux.wxs.ro/2011/03/04/watobo/</link>
		<comments>http://linux.wxs.ro/2011/03/04/watobo/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 11:02:07 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1361</guid>
		<description><![CDATA[&#160; WATOBO is intended to enable security professionals to perform highly efficient (semi-automated ) web application security audits. We are convinced that the semi-automated approach is the best way to perform an accurate audit and to identify most of the vulnerabilities.WATOBO has no attack capabilities and is provided for legal vulnerability audit purposes only.WATOBO works [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://linux.wxs.ro/wp-content/uploads/2011/03/2jchh5d.png"><img class="alignnone size-full wp-image-1362" title="2jchh5d" src="http://linux.wxs.ro/wp-content/uploads/2011/03/2jchh5d.png" alt="" width="721" height="435" /></a></p>
<p>&nbsp;</p>
<p>WATOBO is intended to enable security  professionals to perform highly  efficient (semi-automated ) web  application security audits. We are  convinced that the semi-automated  approach is the best way to perform  an accurate audit and to identify  most of the vulnerabilities.WATOBO  has no attack capabilities and is  provided for legal vulnerability  audit purposes only.WATOBO works like a  local proxy, similar to  Webscarab, Paros or BurpSuite.</p>
<p><a href="http://kill3r.tor.hu/2011/03/watobo-v-0-9-6-released/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/03/04/watobo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate dovecot self-signed SSL certificates</title>
		<link>http://linux.wxs.ro/2011/01/05/generate-dovecot-self-signed-ssl-certificates/</link>
		<comments>http://linux.wxs.ro/2011/01/05/generate-dovecot-self-signed-ssl-certificates/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 08:13:08 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1258</guid>
		<description><![CDATA[delete certs from /etc/ssl dpkg-reconfigure dovecot-common source]]></description>
			<content:encoded><![CDATA[<p>delete certs from /etc/ssl<code><br />
dpkg-reconfigure dovecot-common</code></p>
<p><a href="http://jerakeen.org/blog/2005/08/ssl/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/01/05/generate-dovecot-self-signed-ssl-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a StartSSL SSL certificate on zimbra</title>
		<link>http://linux.wxs.ro/2010/10/28/installing-a-startssl-ssl-certificate-on-zimbra/</link>
		<comments>http://linux.wxs.ro/2010/10/28/installing-a-startssl-ssl-certificate-on-zimbra/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 10:01:46 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mail]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Zimbra]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1128</guid>
		<description><![CDATA[1. Download the ca.pem [1] and sub.class1.server.ca.pem [2] to /tmp/ 2. Cat the CA certs to form a single CA certificate chain file cat ca.pem sub.class1.server.ca.pem &#62; ca_bundle.crt 3. Place server certificate in /tmp/ssl.crt. 4. Place the private key in /opt/zimbra/ssl/zimbra/commercial/commercial.key 5. Deploy the commercial certificate with zmcertmgr as the root user. cd /opt/zimbra/bin ./zmcertmgr [...]]]></description>
			<content:encoded><![CDATA[<p>1. Download the ca.pem <a title="http://www.startssl.com/certs/ca.pem" rel="nofollow" href="http://www.startssl.com/certs/ca.pem">[1]</a> and sub.class1.server.ca.pem <a title="http://www.startssl.com/certs/sub.class1.server.ca.pem" rel="nofollow" href="http://www.startssl.com/certs/sub.class1.server.ca.pem">[2]</a> to /tmp/</p>
<p>2. Cat the CA certs to form a single CA certificate chain file</p>
<pre> cat ca.pem sub.class1.server.ca.pem &gt; ca_bundle.crt
</pre>
<p>3. Place server certificate in /tmp/ssl.crt.</p>
<p>4. Place the private key in /opt/zimbra/ssl/zimbra/commercial/commercial.key</p>
<p>5. Deploy the commercial certificate with zmcertmgr as the root user.</p>
<pre> cd /opt/zimbra/bin
 ./zmcertmgr deploycrt comm /tmp/ssl.crt /tmp/ca_bundle.crt
</pre>
<p>6. Restart the zimbra services</p>
<pre> su zimbra
 zmcontrol stop
 zmcontrol start

<a href="http://wiki.zimbra.com/wiki/Installing_a_StartSSL_SSL_Certificate_with_zmcertmgr">source</a>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/10/28/installing-a-startssl-ssl-certificate-on-zimbra/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Darik&#8217;s Boot And Nuke</title>
		<link>http://linux.wxs.ro/2010/09/30/dariks-boot-and-nuke/</link>
		<comments>http://linux.wxs.ro/2010/09/30/dariks-boot-and-nuke/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 13:49:06 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1035</guid>
		<description><![CDATA[Darik&#8217;s Boot and Nuke (&#8220;DBAN&#8221;) is a self-contained boot disk that securely wipes the hard disks of most computers. DBAN will automatically and completely delete the contents of any hard disk that it can detect, which makes it an appropriate utility for bulk or emergency data destruction. homepage]]></description>
			<content:encoded><![CDATA[<div>
<p>Darik&#8217;s Boot and Nuke (&#8220;DBAN&#8221;) is a self-contained boot disk that  securely wipes the hard disks of most computers. DBAN will automatically  and completely delete the contents of any hard disk that it can detect,  which makes it an appropriate utility for bulk or emergency data  destruction.</p>
<p><a href="http://www.dban.org/">homepage</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/09/30/dariks-boot-and-nuke/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a Passphrase with ssh-keygen</title>
		<link>http://linux.wxs.ro/2010/09/08/changing-a-passphrase-with-ssh-keygen/</link>
		<comments>http://linux.wxs.ro/2010/09/08/changing-a-passphrase-with-ssh-keygen/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 07:22:12 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ssh]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1001</guid>
		<description><![CDATA[ssh-keygen -f .ssh/id_dsa -p source]]></description>
			<content:encoded><![CDATA[<p><code>ssh-keygen -f .ssh/id_dsa -p</code></p>
<p><a href="http://www.cyberciti.biz/faq/howto-ssh-changing-passphrase/">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/09/08/changing-a-passphrase-with-ssh-keygen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Automatic Updates</title>
		<link>http://linux.wxs.ro/2010/07/02/ubuntu-automatic-updates/</link>
		<comments>http://linux.wxs.ro/2010/07/02/ubuntu-automatic-updates/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 14:23:34 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=925</guid>
		<description><![CDATA[sudo apt-get install unattended-upgrades update-notifier-common /etc/apt/apt.conf.d/50unattended-upgrades: Unattended-Upgrade::Allowed-Origins { "Ubuntu lucid-security"; // "Ubuntu lucid-updates"; }; /etc/apt/apt.conf.d/10periodic: APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "7"; APT::Periodic::Unattended-Upgrade "1"; Also check: cat /etc/apt/apt.conf.d/20auto-upgrades APT::Periodic::Update-Package-Lists &#8220;1&#8243;; APT::Periodic::Unattended-Upgrade &#8220;1&#8243;; log: /var/log/unattended-upgrades source]]></description>
			<content:encoded><![CDATA[<p><code>sudo apt-get install unattended-upgrades update-notifier-common</code></p>
<p>/etc/apt/apt.conf.d/50unattended-upgrades:</p>
<p><code>Unattended-Upgrade::Allowed-Origins {<br />
"Ubuntu lucid-security";<br />
// "Ubuntu lucid-updates";<br />
};</code></p>
<p>/etc/apt/apt.conf.d/10periodic:</p>
<p><code>APT::Periodic::Update-Package-Lists "1";<br />
APT::Periodic::Download-Upgradeable-Packages "1";<br />
APT::Periodic::AutocleanInterval "7";<br />
APT::Periodic::Unattended-Upgrade "1";</code></p>
<p>Also check:</p>
<p>cat /etc/apt/apt.conf.d/20auto-upgrades<br />
APT::Periodic::Update-Package-Lists &#8220;1&#8243;;<br />
APT::Periodic::Unattended-Upgrade &#8220;1&#8243;;</p>
<p>log: /var/log/unattended-upgrades<br />
<a href="https://help.ubuntu.com/10.04/serverguide/C/automatic-updates.html">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/07/02/ubuntu-automatic-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

