Re: Disable IPv4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> You're talking about the module parameter here, correct? 

Yes I think, I was referring to the following code in ip6_input.c, and 
ip6_output.c, which may have changed, 



ipv6_rcv()


      if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL ||
          
!idev || unlikely(idev->cnf.disable_ipv6)) {<-------------------------------------------------------

                IP6_INC_STATS_BH(idev, IPSTATS_MIB_INDISCARDS);
                rcu_read_unlock();
                goto out;


ip6_output()


       
if (unlikely(idev->cnf.disable_ipv6)) {<-----------------------------------------------------------------

               IP6_INC_STATS(idev, IPSTATS_MIB_OUTDISCARDS);
               kfree_skb(skb);
               return 0;
       }

On 04/13/2011 04:35 PM, Rose Price wrote:
> 
> Disable the IPv4 protocol, so that is a user or even root could not use the 
> protocol, for example there is a switch to disable IPv6, disable_ipv6.

You're talking about the module parameter here, correct?  That was added
because by default, Linux will add a link-local address to all interfaces
when the module is loaded, before someone can tell it not to.  So that
parameter will set the default value that is propagated to all interfaces:

# sysctl net.ipv6.conf.default.disable_ipv6
net.ipv6.conf.default.disable_ipv6 = 1

>>> Is there  a configuration option to disable ipv4 in the linux kernel 2.6.XX?  
>
>>
>> You can disable all networking, but you can't have IPv6 without IPv4.

That's not exactly true, I've run IPv6-only before, it's just that things
like DNS, X, etc don't behave very well when you do it :(

-Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux