<?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"
	>

<channel>
	<title>errno's blog</title>
	<atom:link href="http://www.errno.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.errno.info</link>
	<description>I already forgot what I wanted to type here...</description>
	<pubDate>Sun, 27 Apr 2008 12:28:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Nagios Checker for Firefox</title>
		<link>http://www.errno.info/2008/04/08/nagios-checker-for-firefox/</link>
		<comments>http://www.errno.info/2008/04/08/nagios-checker-for-firefox/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 15:09:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[checker]]></category>

		<category><![CDATA[firefox]]></category>

		<category><![CDATA[nagios]]></category>

		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=19</guid>
		<description><![CDATA[Just found that - very handy. You can download it from here.
Attached screenshot shows it in action (yeah, we had a power outage).

]]></description>
			<content:encoded><![CDATA[<p>Just found that - very handy. You can download it from <a href="https://addons.mozilla.org/en-US/firefox/downloads/file/23485/nagios_checker-0.11.1-fx+tb.xpi">here</a>.</p>
<p>Attached screenshot shows it in action (yeah, we had a power outage).</p>
<p><img class="aligncenter size-full wp-image-20" title="nagios" src="http://www.errno.info/wp-content/uploads/2008/04/nagios.jpg" alt="" width="600" height="47" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/04/08/nagios-checker-for-firefox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TagTits</title>
		<link>http://www.errno.info/2008/04/02/tagtits/</link>
		<comments>http://www.errno.info/2008/04/02/tagtits/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 14:11:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=15</guid>
		<description><![CDATA[Found somewhere on the web.

]]></description>
			<content:encoded><![CDATA[<p>Found somewhere on the web.</p>
<p><img class="alignnone size-medium wp-image-16" title="tagtits1" src="http://www.errno.info/wp-content/uploads/2008/04/tagtits1-300x209.jpg" alt="" width="300" height="209" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/04/02/tagtits/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Last trip to Poland</title>
		<link>http://www.errno.info/2008/04/01/last-trip-to-poland/</link>
		<comments>http://www.errno.info/2008/04/01/last-trip-to-poland/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 22:15:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=10</guid>
		<description><![CDATA[Dublin Airport:

and the Cash Machine - Krakow Airport:

]]></description>
			<content:encoded><![CDATA[<p>Dublin Airport:</p>
<p><img src="http://www.errno.info/wp-content/uploads/2008/04/12032008747-300x225.jpg" alt="" title="At Dublin Airport" width="300" height="225" class="aligncenter size-medium wp-image-11" /></p>
<p>and the Cash Machine - Krakow Airport:</p>
<p><img src="http://www.errno.info/wp-content/uploads/2008/04/12032008748-300x225.jpg" alt="" title="Cash Machine - Krakow Airport" width="300" height="225" class="alignnone size-medium wp-image-12" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/04/01/last-trip-to-poland/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Solaris IP MultiPathing</title>
		<link>http://www.errno.info/2008/04/01/solaris-ip-multipathing/</link>
		<comments>http://www.errno.info/2008/04/01/solaris-ip-multipathing/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 10:20:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[ifconfig]]></category>

		<category><![CDATA[ipmp]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=9</guid>
		<description><![CDATA[Solaris IPMP provides resilience from network adapter failure by detecting the failure or repair of a network adapter and switching the network address to and from the alternative adapter. Moreover, when more than one network adapter is functional, Solaris IPMP increases data throughput by spreading outbound packets across adapters..
Setting IPMP is quite easy. Let&#8217;s assume, [...]]]></description>
			<content:encoded><![CDATA[<p>Solaris IPMP provides resilience from network adapter failure by detecting the failure or repair of a network adapter and switching the network address to and from the alternative adapter. Moreover, when more than one network adapter is functional, Solaris IPMP increases data throughput by spreading outbound packets across adapters..</p>
<p>Setting IPMP is quite easy. Let&#8217;s assume, that we have 2 network adapters: <code>e1000g0</code> and <code>e1000g1</code>. They are going to be in the same network (10.0.0.0/24). First of all, we have to add entries to the <code>/etc/hosts/</code> file:</p>
<p><code>10.0.0.1  server-e1000g0<br />
10.0.0.2  server-e1000g1<br />
10.0.0.3  server-mgmt</code></p>
<p>Make sure, that you have correct netmask set in <code>/etc/netmasks</code> like:</p>
<p><code>10.0.0.0  255.255.255.0</code></p>
<p>Then we have to create 2 files called: <code>/etc/hostname.e1000g0</code>:</p>
<p><code>server-e1000g0 netmask + broadcast + group mgmt deprecated -failover up addif server-mgmt netmask + broadcast + failover up</code></p>
<p>and <code>/etc/hostname.e1000g1</code>:</p>
<p><code>server-e1000g1 netmask + broadcast + group mgmt deprecated -failover standby up</code>.</p>
<p>That&#8217;s it. The IPMP is already configured. Please, do remember to put some static routes just in case you have more than one network configured on your Solaris box. It&#8217;s just to keep IPMP happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/04/01/solaris-ip-multipathing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Solaris 10 - Hardening - Part 1</title>
		<link>http://www.errno.info/2008/03/31/solaris-10-hardening-part-1/</link>
		<comments>http://www.errno.info/2008/03/31/solaris-10-hardening-part-1/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 15:50:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[ddos]]></category>

		<category><![CDATA[dos]]></category>

		<category><![CDATA[hardening]]></category>

		<category><![CDATA[ndd]]></category>

		<category><![CDATA[svcadm]]></category>

		<category><![CDATA[svcs]]></category>

		<category><![CDATA[tcp]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=8</guid>
		<description><![CDATA[Solaris 10 provides a lot of network services running by default, which is unacceptable at the present.
This document describes how to disable these services and also tune some parameters of the TCP/IP stack in order to avoid DDoS network floods and globally increase network security.
1. Disable unrequested network services:
svcadm disable bind \
rpc_ticotsord \
rpc_tcp \
rpc_udp \
autofs [...]]]></description>
			<content:encoded><![CDATA[<p>Solaris 10 provides a lot of network services running by default, which is unacceptable at the present.<br />
This document describes how to disable these services and also tune some parameters of the TCP/IP stack in order to avoid DDoS network floods and globally increase network security.</p>
<p>1. Disable unrequested network services:</p>
<p><code>svcadm disable bind \<br />
rpc_ticotsord \<br />
rpc_tcp \<br />
rpc_udp \<br />
autofs \<br />
sendmail \<br />
telnet \<br />
ftp \<br />
finger \<br />
svc:/network/login:rlogin \<br />
svc:/network/shell:default \<br />
xfs \<br />
ktkt_warn \<br />
stfsloader</code></p>
<p>2. Edit the file /lib/svc/method/net-init and add these lines after the ISS generation:</p>
<p><code># Change this to 2, as it's probably set to 1 by default.<br />
/usr/sbin/ndd -set /dev/tcp tcp_strong_iss 2</code><br />
<code><br />
# Combat ARP DOS attacks by flushing entries faster.<br />
/usr/sbin/ndd -set /dev/arp arp_cleanup_interval 60000<br />
/usr/sbin/ndd -set /dev/ip ip_ire_arp_interval 60000</code><br />
<code><br />
# Combat ICMP DOS attacks by ignoring them.<br />
/usr/sbin/ndd -set /dev/ip ip_respond_to_echo_broadcast 0<br />
/usr/sbin/ndd -set /dev/ip ip6_respond_to_echo_multicast 0<br />
/usr/sbin/ndd -set /dev/ip ip_respond_to_timestamp_broadcast 0<br />
/usr/sbin/ndd -set /dev/ip ip_respond_to_address_mask_broadcast 0</code><br />
<code><br />
# Ignore redirect requests.  These change routing tables.<br />
/usr/sbin/ndd -set /dev/ip ip_ignore_redirect 1<br />
/usr/sbin/ndd -set /dev/ip ip6_ignore_redirect 1</code><br />
<code><br />
# Don't send redirect requests.  This is a router function.<br />
/usr/sbin/ndd -set /dev/ip ip_send_redirects 0<br />
/usr/sbin/ndd -set /dev/ip ip6_send_redirects 0</code><br />
<code><br />
# Don't respond to timestamp requests.  This may break rdate on some systems.<br />
/usr/sbin/ndd -set /dev/ip ip_respond_to_timestamp 0</code><br />
<code><br />
# If a packet isn't for the interface it came in on, drop it.<br />
/usr/sbin/ndd -set /dev/ip ip_strict_dst_multihoming 1<br />
/usr/sbin/ndd -set /dev/ip ip6_strict_dst_multihoming 1</code><br />
<code><br />
# Don't forward broadcasts.<br />
/usr/sbin/ndd -set /dev/ip ip_forward_directed_broadcasts 0</code><br />
<code><br />
# Don't forward source routed packets.<br />
/usr/sbin/ndd -set /dev/ip ip_forward_src_routed 0<br />
/usr/sbin/ndd -set /dev/ip ip6_forward_src_routed 0</code><br />
<code><br />
# Combat SYN flood attacks.<br />
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 8192</code></p>
<p><code># Combat connection exhaustion attacks.<br />
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 1024</code></p>
<p><code># Don't forward reverse source routed packets.<br />
/usr/sbin/ndd -set /dev/tcp tcp_rev_src_routes 0</code></p>
<p><code># Combat IP DOS attacks by decreasing the rate at which errors are sent.<br />
/usr/sbin/ndd -set /dev/ip ip_icmp_err_interval 1000<br />
/usr/sbin/ndd -set /dev/ip ip_icmp_err_burst 5</code></p>
<p>To apply the changes and update the system configuration restart the initial network service:</p>
<p><code>svcadm restart initial</code></p>
<p>3. <strong>ONLY</strong> on SPARC servers add these two lines to /etc/system to disallow execution of instructions in the stack. The changes are made effective only after a reboot:</p>
<p><code>set noexec_user_stack=1<br />
set noexec_user_stack_log=1</code></p>
<p>4. Change the value of <code>TCP_STRONG_ISS</code> to 2 (<code>/etc/default/inetinit</code> file).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/03/31/solaris-10-hardening-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Creating ZFS datasets under ZFS pool in Solaris 10.</title>
		<link>http://www.errno.info/2008/03/29/creating-zfs-datasets-under-zfs-pool-in-solaris-10/</link>
		<comments>http://www.errno.info/2008/03/29/creating-zfs-datasets-under-zfs-pool-in-solaris-10/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 13:17:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Solaris]]></category>

		<category><![CDATA[containers]]></category>

		<category><![CDATA[zfs]]></category>

		<category><![CDATA[zlist]]></category>

		<category><![CDATA[zoneadm]]></category>

		<category><![CDATA[zonecfg]]></category>

		<category><![CDATA[zones]]></category>

		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://www.errno.info/?p=6</guid>
		<description><![CDATA[Solaris 10 comes with powerful command called &#8216;zpool&#8217;. It configures ZFS storage pools. A storage pool is a collection of devices that provides physical storage and data replication for ZFS datasets.
All datasets within a storage pool share the same space.
Let&#8217;s create our first ZFS pool. As states in the manual, ZFS can use individual slices [...]]]></description>
			<content:encoded><![CDATA[<p>Solaris 10 comes with powerful command called &#8216;zpool&#8217;. It configures ZFS storage pools. A storage pool is a collection of devices that provides physical storage and data replication for ZFS datasets.</p>
<p>All datasets within a storage pool share the same space.</p>
<p>Let&#8217;s create our first ZFS pool. As states in the manual, ZFS can use individual slices or partitions, though using whole disk is recommended.</p>
<p><code>root@server # zpool create samplepool cXdXsX</code></p>
<p>or if we have 2 disks mirrored:</p>
<p><code>root@server # zpool create mirror samplepool cXdXsX cYdYsY</code></p>
<p>If we don&#8217;t specify the mountpoint (<code>-m /mountpoint</code>), the <code>/poolname</code> (in this case <code>/samplepool</code>) will be used.</p>
<p>You can use:</p>
<p><code>root@server # zpool iostat -v samplepool</code></p>
<p>and/or</p>
<p><code>root@server # zpool list</code></p>
<p>commands to verify.</p>
<p>Now let&#8217;s have a look at the ZFS datasets:</p>
<p><code>root@server # zfs list<br />
NAME                   USED  AVAIL  REFER  MOUNTPOINT<br />
samplepool            6.0G   192G   270M  /samplepool</code></p>
<p>As we can see, there is one dataset already created and 192GB available space there. Now we want to create additional ZFS dataset for the log files with 2GB quota on it.</p>
<p><code>root@server # zfs create samplepool/sample_dataset<br />
root@server # zfs set mountpoint=/usr/local/sample_dataset samplepool/sample_dataset<br />
root@server # zfs set quota=2g samplepool/sample_dataset</code></p>
<p>Here we go! It&#8217;s already done!  We can verify this using:</p>
<p><code>root@server # zfs list<br />
NAME                            USED  AVAIL  REFER  MOUNTPOINT<br />
samplepool                             16.4G   192G   270M  /samplepool<br />
samplepool/sample_dataset   2.0G    24K   2.0G     1%    /usr/local/sample_dataset</code></p>
<p>or</p>
<p><code>root@server # df -kh | grep sample<br />
samplepool                  209G   270M   192G     1%    /samplepool<br />
samplepool/sample_dataset   2.0G    24K   2.0G     1%    /usr/local/sample_dataset</code></p>
<p>Pretty easy, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.errno.info/2008/03/29/creating-zfs-datasets-under-zfs-pool-in-solaris-10/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
