<?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>KarkomaOnline &#187; IPv6</title>
	<atom:link href="http://www.karkomaonline.com/index.php/tag/ipv6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karkomaonline.com</link>
	<description>a Blog for SysAdmins and Unix stuff in general</description>
	<lastBuildDate>Fri, 30 Jul 2010 17:38:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to disable IPv6 in Debian</title>
		<link>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/</link>
		<comments>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:08:32 +0000</pubDate>
		<dc:creator>karkoma</dc:creator>
				<category><![CDATA[Linux Debian]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://www.karkomaonline.com/?p=259</guid>
		<description><![CDATA[Disable IPv6 in Debian]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently installed a new <a href="http://www.openldap.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.openldap.org/?referer=');">LDAP</a> server on <a href="http://www.debian.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.debian.org/?referer=');">Debian</a> Lenny and I wanted to disable <a href="http://en.wikipedia.org/wiki/IPv6" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/IPv6?referer=');">IPv6</a> as it is unnecessary for me in this moment. With <em>netstat</em> I checked the listening processes:</p>
<blockquote><p>netstat -tunlp</p></blockquote>
<p><code>Active Internet connections (only servers)<br />
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name<br />
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      2226/slapd<br />
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2215/sshd<br />
tcp6       0      0 :::389                  :::*                    LISTEN      2226/slapd<br />
tcp6       0      0 :::22                   :::*                    LISTEN      2215/sshd</code></p>
<p>and <em>lsmod</em> showed something like this:</p>
<p><code>Module                  Size  Used by<br />
ipv6                  235364  12<br />
...</code></p>
<p>So, to disable IPv6 I changed <em>/etc/modprobe.d/aliases</em>:<br />
<code>...<br />
# alias net-pf-10 ipv6<br />
# Disable ipv6<br />
alias net-pf-10 off<br />
alias ipv6 off<br />
...</code></p>
<p>I also disabled these lines in <em>/etc/hosts</em> to avoid confusions:</p>
<p><code>...<br />
## The following lines are desirable for IPv6 capable hosts<br />
#::1     localhost ip6-localhost ip6-loopback<br />
#fe00::0 ip6-localnet<br />
#ff00::0 ip6-mcastprefix<br />
#ff02::1 ip6-allnodes<br />
#ff02::2 ip6-allrouters<br />
#ff02::3 ip6-allhosts</code></p>
<p>Finally I restarted the server.</p>
<blockquote><p>shutdown -r now</p></blockquote>
<p>Now the situation is like this:</p>
<blockquote><p>netstat -tunlp</p></blockquote>
<p><code>Active Internet connections (only servers)<br />
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name<br />
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      2233/slapd<br />
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2216/sshd</code></p>
<blockquote><p>lsmod|grep ipv6</p></blockquote>
<p><code>...</code></p>
<p>No IPv6.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.karkomaonline.com/index.php/2009/04/how-to-disable-ipv6-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
