{"id":49,"date":"2008-05-12T05:07:57","date_gmt":"2008-05-12T10:07:57","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?p=49"},"modified":"2008-05-23T20:36:23","modified_gmt":"2008-05-24T01:36:23","slug":"how-can-i-disable-ipv6-on-an-existing-suse-system","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=49","title":{"rendered":"How can I disable IPv6 on an existing Suse system?"},"content":{"rendered":"<p><em>Please, I beg you, don&#8217;t get into a philosophical debate with me about why IPv6 is enabled by default on many OSes today, and why I should not disable it, and the future of IP, and so on, and so on&#8230; We&#8217;ll save that abstract aspect for a future post&#8230; Now, back to the point&#8230;<\/em><\/p>\n<p>I always disable IPv6 when I am installing a new Suse server (in the initial setup dialogs).<\/p>\n<p>Sometimes, however, I come across a system (customers, etc) that was installed with IPv6 enabled, and now I need to disable it. Not a big deal. I&#8217;ll get to that below, but first some background&#8230;<\/p>\n<p>I want to point out that there are a few main aspects to &#8220;running&#8221; IPv6; a couple of them on the local system in question, and then one on the remote systems:<\/p>\n<ol>\n<li>Many utilities and clients that run on Linux (like Firefox, apache daemon, etc.) utilize IPv6 &#8212; if available &#8212; on the local host in some fashion, and many of these can have the IPv6 turned off (like Firefox <code><span style=\"font-size: x-small;\">network.dns.disableIPv6<\/span><\/code> set to &#8220;Yes&#8221; in &#8220;about:config&#8221;)&#8230;<\/li>\n<li>The kernel now has IPv6 enabled by default, but can easily be disabled (see below), effectively disabling IPv6 for all utilities and clients, and&#8230;<\/li>\n<li>Remote DNS servers (or any server for that matter) <em>likely<\/em> will not respond to your IPv6 DNS queries and requests anyway, so there is no real reason for you to have IPv6 enabled on *your* end&#8230; Unless, of course, your organization has made a mass decision to move to IPv6 completely (or at least mostly).<\/li>\n<\/ol>\n<p>So, to disable IPv6 at the kernel level (on most Suse systems, though it&#8217;s basically the same on others), do the following:<\/p>\n<p><code><span style=\"font-size: x-small;\">vi \/etc\/modprobe.conf<\/span><\/code><\/p>\n<p>&#8230;and <em>change\/set<\/em> the following:<\/p>\n<p><code><span style=\"font-size: x-small;\">alias net-pf-10 off<\/span><\/code><\/p>\n<p>Next, &#8230;<\/p>\n<p><code><span style=\"font-size: x-small;\">vi \/etc\/modprobe.conf.include<\/span><\/code> (or <code><span style=\"font-size: x-small;\">modprobe.conf.local<\/span><\/code>)<\/p>\n<p>&#8230;and <em>add<\/em> the following:<\/p>\n<p><code><span style=\"font-size: x-small;\">alias ipv6 off<\/span><\/code><\/p>\n<p>&#8230;and reboot to complete the change. That&#8217;s all!<\/p>\n<p>Now, in theory, your system will be a &#8220;faster&#8221; client (or a faster server), even though the slowness was really no fault of its own in the first place&#8230;.<\/p>\n<p>Of course, it might be a good idea to go through any applications that were enabled to use IPv6 and modify them to only use IPv4. For instance, for Postfix, change\/set the following values in <code><span style=\"font-size: x-small;\">\/etc\/postfix\/main.cf<\/span><\/code>:<\/p>\n<p><code><span style=\"font-size: x-small;\">inet_protocols = ipv4<\/span><\/code><\/p>\n<p>&#8230;.instead of <code><span style=\"font-size: x-small;\">all<\/span><\/code>, and&#8230;<\/p>\n<p><code><span style=\"font-size: x-small;\">inet_interfaces = 127.0.0.1<\/span><\/code><\/p>\n<p>&#8230;notice the lack of the IPv6 loopback address, &#8220;<code><span style=\"font-size: x-small;\">::1<\/span><\/code>&#8220;.<\/p>\n<p>Enjoy!<br \/>\n\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please, I beg you, don&#8217;t get into a philosophical debate with me about why IPv6 is enabled by default on many OSes today, and why I should not disable it, and the future of IP, and so on, and so&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=49\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,13,15],"tags":[],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-advanced","category-oeslinux","category-suse"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-N","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":0,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}