<?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>Tuts4Tech &#187; security</title>
	<atom:link href="http://tuts4tech.net/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IPv6 Tunnel on pfSense</title>
		<link>http://tuts4tech.net/2010/07/18/ipv6-tunnel-on-pfsense/</link>
		<comments>http://tuts4tech.net/2010/07/18/ipv6-tunnel-on-pfsense/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 01:32:58 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[6in4]]></category>
		<category><![CDATA[connectivity]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[he.net]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[pfsense]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[tunnelbroker]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=732</guid>
		<description><![CDATA[Hi, in this tutorial I will be showing you how to setup IPv6 connectivity for your network using he.net and pfsense. Pop on over to he.net and create an account Create a regular tunnel and you should be given a page of details like the following Download the following script Open the script with your [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, in this tutorial I will be showing you how to setup IPv6 connectivity for your network using he.net and pfsense.</p>
<ol>
<li>Pop on over to <a href="http://tunnelbroker.net/">he.net</a> and create an account</li>
<li>Create a regular tunnel and you should be given a  page of details like the following<br /><img class="aligncenter size-full wp-image-520" title="details" src="http://tuts4tech.net/tutorials/ipv6/he.net%20details.jpg" alt="details" width="500" height="278" /></li>
<li>Download <a href="http://tuts4tech.net/files/config-ipv6.sh">the following script</a><br />
Open the script with your favorite text editor and set the variables at the top as required</p>
<pre class="brush: plain;">IFIN=&quot;re1&quot;</pre>
<p>This is your LAN interface.</p>
<pre class="brush: plain;">IPv6Router=&quot;2001:470:1f09:3cd::1&quot;
IPv6Server=&quot;2001:470:1f08:3cd::1&quot;
IPv6Client=&quot;2001:470:1f08:3cd::2&quot;</pre>
<p>IPv6 Router is the first address from your routed /64 range given on the he.net details panel<br />
IPv6 Server is simply your IPv6 server address given on the he.net details panel<br />
and IPv6 Client is also just your IPv6 client address given on the he.net details panel.</p>
<pre class="brush: plain;">IPv4Server=&quot;216.66.80.26&quot;
IPv4Client=&quot;88.151.87.116&quot;</pre>
<p>IPv4 Server is simply the IPv4 server address given on the he.net details panel<br />
and IPv4 client is your WAN IP address.</li>
<li>We also need to create a configuration file for rtadvd copy and paste the following
<pre class="brush: plain;">re1:\
   :addrs#1:addr=&quot;2001:470:1f09:3cd::&quot;:prefixlen#64:tc=ether:</pre>
<p>Where re1 is your LAN interface and where 2001:470:1f09:3cd:: is your /64 route. Save the following as rtadvd.conf</li>
<li>Using sftp upload rtadvd.conf to /etc and config-ipv6.sh to /usr/local/etc/rc.d on your pfsense box. Set the permissions for config-ipv6.sh as executable.</li>
<li>Reboot your pfsense box and the script should auto start and bring up your IPv6 tunnel</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2010/07/18/ipv6-tunnel-on-pfsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding and Preventing Fork Bombs</title>
		<link>http://tuts4tech.net/2009/10/07/understanding-and-preventing-fork-bombs/</link>
		<comments>http://tuts4tech.net/2009/10/07/understanding-and-preventing-fork-bombs/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 16:26:57 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Bomb]]></category>
		<category><![CDATA[Fork]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Reboot]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[System admin]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=595</guid>
		<description><![CDATA[A fork bomb is just a bash function that gets called recursively. Once a fork bomb is active on a machine it may not be able to preform normally until a reboot is made, as the only solution to the fork bomb is to kill all its processes. Bash Functions A fork bomb is really [...]]]></description>
			<content:encoded><![CDATA[<p>A fork bomb is just a bash function that gets called recursively. Once a fork bomb is active on a machine it may not be able to preform normally until a reboot is made, as the only solution to the fork bomb is to kill all its processes.</p>
<h3>Bash Functions</h3>
<p>A fork bomb is really just a bash function, below is an example of a bash function</p>
<pre class="brush: plain;">helloworld() {
echo hello world
};</pre>
<p>A fork bomb would be</p>
<pre class="brush: plain;">:(){
 :|:&amp;
};:</pre>
<p>Now to explain.<br />
:(){ - Creates the function<br />
:|: - Next it call itself using recursion and pipes the output to another call of the function<br />
&#038; - Puts the function call in the background so child cannot die<br />
}; - Terminate the function<br />
: - Call (run) the function</p>
<p>If you would like a more human readable fork bomb it would be as follows</p>
<pre class="brush: plain;">forkbomb(){
forkbomb | forkbomb &amp;
}; forkbomb</pre>
<h3>Preventing Fork Bombs</h3>
<p>We can prevent users from running fork bombs by limiting the amount of processes they are allowed to run.<br />
We can achive this using /etc/security/limits.conf</p>
<p>To get started open /etc/security/limits.conf</p>
<pre class="brush: plain;">nano /etc/security/limits.conf</pre>
<p>In my example I want to limit the user john to 300 processes and any users in the group of students to 250 processes. For this I would put the following into my config file</p>
<pre class="brush: plain;">john hard nproc 300
@students hard nproc 250</pre>
<p>Please keep in mind that KDE and Gnome desktop system can lanuch many processes.</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/10/07/understanding-and-preventing-fork-bombs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passwordless SSH login using SSH Keys</title>
		<link>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/</link>
		<comments>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:32:00 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[passwordless]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=401</guid>
		<description><![CDATA[SSH keys allow you to login without requiring you to type in your password this tutorial will teach you how to set them up First we need to create the key ssh-keygen -t rsa Then we need to move it over to the machine that we want to be able to login too without the [...]]]></description>
			<content:encoded><![CDATA[<p>SSH keys allow you to login without requiring you to type in your password this tutorial will teach you how to set them up</p>
<ol>
<li>First we need to create the key
<pre class="brush: bash;">ssh-keygen -t rsa</pre>
</li>
<li>Then we need to move it over to the machine that we want to be able to login too without the need for a password to do this run the following command
<pre class="brush: bash;">scp .ssh/id_rsa.pub OTHER-MACHINES-IP:.ssh/authorized_keys</pre>
</li>
<li>You should now be able to ssh into that machine without needing a password</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/07/01/passwordless-ssh-login-using-ssh-keys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chroot Sftp</title>
		<link>http://tuts4tech.net/2009/05/03/chroot-sft/</link>
		<comments>http://tuts4tech.net/2009/05/03/chroot-sft/#comments</comments>
		<pubDate>Sun, 03 May 2009 19:55:46 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://tuts4tech.co.cc/?p=175</guid>
		<description><![CDATA[Create a Chrooted group addgroup chrooted Open up /etc/ssh/sshd_config and add the following to the end of it Subsystem sftp internal-sftp Match group chrooted ChrootDirectory /home/%u X11Forwarding no ForceCommand internal-sftp Restart SSHD /etc/init.d/ssh restart Then make users chrooted by adding them to the chrooted group adduser user chrooted Now when the user sftps the server [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Create a Chrooted group
<pre class="brush: plain;">addgroup chrooted</pre>
</li>
<li>Open up /etc/ssh/sshd_config and add the following to the end of it
<pre class="brush: plain;">Subsystem sftp internal-sftp
Match group chrooted
ChrootDirectory /home/%u
X11Forwarding no
ForceCommand internal-sftp
</pre>
</li>
<li>Restart SSHD
<pre class="brush: plain;">/etc/init.d/ssh restart</pre>
</li>
<li>Then make users chrooted by adding them to the chrooted group
<pre class="brush: plain;">adduser user chrooted</pre>
</li>
<li>Now when the user sftps the server they will only see the contents of there home folder</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/05/03/chroot-sft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stopping SSH brute force attacks using iptables</title>
		<link>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/</link>
		<comments>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 11:08:52 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[asia]]></category>
		<category><![CDATA[brute]]></category>
		<category><![CDATA[force]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[wordlist]]></category>

		<guid isPermaLink="false">http://duffys-place.co.cc/?p=130</guid>
		<description><![CDATA[If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. [...]]]></description>
			<content:encoded><![CDATA[<p>If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks</p>
<p>Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. At this stage the bot running the attack will either give up as its getting no reply from the SSH server or it will keep trying until it finishes its wordlist</p>
<pre class="brush: plain;">iptables -I INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

iptables -I INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 180 --hitcount 4 --name DEFAULT --rsource -j DROP</pre>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/04/09/stopping-ssh-brute-force-attacks-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
