Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-10 Thread Javier Barroso
Hi,

On Thu, Sep 10, 2009 at 9:00 PM, Rick Thomas  wrote:
>
> On Sep 10, 2009, at 7:30 AM, Javier Barroso wrote:
>
>> Hi,
>>
>> On Wed, Sep 9, 2009 at 12:03 AM, Rick Thomas  wrote:
>>>
>>>
>>> The 2.6.30 kernel seems to have ipv6 turned on and compiled-in -- i.e.
>>> not a
>>> module.
>>>
>>> Does this make it impossible to turn off IPv6?  Or am I missing
>>> something...

Ok, one time I heard about comment all ipv6 related lines in
/etc/hosts. I'm not sure if this stop ipv6 stuff (I think not at all).

In the other hand, I found a bug related with this issue [1]. It says
about adding "ipv6.disable=1" into bootloader

Regards,
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542470


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-10 Thread Rick Thomas


On Sep 10, 2009, at 7:30 AM, Javier Barroso wrote:


Hi,

On Wed, Sep 9, 2009 at 12:03 AM, Rick Thomas   
wrote:



The 2.6.30 kernel seems to have ipv6 turned on and compiled-in --  
i.e. not a

module.

Does this make it impossible to turn off IPv6?  Or am I missing  
something...

At least in sid:
head -3 /etc/modutils/aliases ; grep -i ipv6 aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-10 off   # IPv6

If uncomment this is not working, please report as a bug.


H,

The system in question is running "Testing" (aka "Squeeze").

There's no such file as /etc/modutils/aliases on this system.

However, in the /etc/modprobe.d/aliases.conf file, there is (I have  
abbreviated) the following set of comments:


==
# These are the standard aliases for devices and kernel drivers.
# This file does not need to be modified.
#
# No new aliases should be added to this file, please file a bug against
# the kernel for any aliases which are still not built-in.

# network protocols  
##

# 7 BRIDGE
# alias net-pf-10 ipv6
==

The documentation for modprobe in Squeeze says that, to do the  
equivalent of what Javier suggests, I should put a file called  
something like "local.conf" in /etc/modprobe.d with the lines that  
Mark suggested:



alias net-pf-10 off
alias ipv6 off


I tried that, but it didn't work -- because ipv6 is compiled-in to the  
current Squeeze stock kernel.  What did work, as suggested by Kelly,  
was to put a file called "local.conf" in /etc/sysctl.d/ that contained  
the line:


===
net.ipv6.conf.eth0.disable_ipv6 = 1
===

There is no such sysctl configuration option in the current stock  
Lenny kernel.


Is this a bug or a feature?

If it's a bug, what package should I file it against?  Is linux- 
headers-2.6.30-1-amd64 appropriate?  That's the current distributed  
stock kernel in Squeeze...


Thanks!

Rick


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-10 Thread Javier Barroso
Hi,

On Wed, Sep 9, 2009 at 12:03 AM, Rick Thomas  wrote:
>
>
> The 2.6.30 kernel seems to have ipv6 turned on and compiled-in -- i.e. not a
> module.
>
> Does this make it impossible to turn off IPv6?  Or am I missing something...
At least in sid:
head -3 /etc/modutils/aliases ; grep -i ipv6 aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-10 off   # IPv6

If uncomment this is not working, please report as a bug.

Regards,


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-09 Thread Kelly Clowers
On Wed, Sep 9, 2009 at 12:52, Rick Thomas  wrote:
> On Sep 8, 2009, at 10:02 PM, Mark wrote:
>
>> Rick Thomas wrote:
>>>
>>> The 2.6.30 kernel seems to have ipv6 turned on and compiled-in -- i.e.
>>> not a module.
>>> Does this make it impossible to turn off IPv6?  Or am I missing
>>> something...
>>
>> Had the same issue a while back already, but after a quick google search I
>> found something that was similar to what I did then.
>>
>> alias net-pf-10 off
>> alias ipv6 off
>>
>> Those two, and jam them in a /etc/modprobe.d/00ipv6disable or something
>> along those lines. Don't forget to reboot.
>
> Interestingly,
>
> This didn't work on the Squeeze system, but it worked fine on a Lenny system
> running a stock Lenny 2.6.26-2 kernel, which seems to have been generated
> with ipv6 as a module.

[reformated to bottom post, please don't top post]

That is beacuse those two lines go in /etc/modprobe.d/ which deals with
modules (module probe). So they have no effect when it is not a module.

> Equally interestingly,
>
> The Lenny system had no file called /proc/sys/net/ipv6/conf/*/disable_ipv6
>
> Is this new with 2.6.30 (Squeeze) kernels?  Or is it a feature of having
> ipv6 compiled in?

That I don't know.


Cheers,
Kelly Clowers


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-09 Thread Rick Thomas

Interestingly,

This didn't work on the Squeeze system, but it worked fine on a Lenny  
system running a stock Lenny 2.6.26-2 kernel, which seems to have been  
generated with ipv6 as a module.


Equally interestingly,

The Lenny system had no file called /proc/sys/net/ipv6/conf/*/ 
disable_ipv6


Is this new with 2.6.30 (Squeeze) kernels?  Or is it a feature of  
having ipv6 compiled in?


Very curious!

Rick

On Sep 8, 2009, at 10:02 PM, Mark wrote:


Rick Thomas wrote:
The 2.6.30 kernel seems to have ipv6 turned on and compiled-in --  
i.e. not a module.
Does this make it impossible to turn off IPv6?  Or am I missing  
something...


Had the same issue a while back already, but after a quick google  
search I found something that was similar to what I did then.


alias net-pf-10 off
alias ipv6 off

Those two, and jam them in a /etc/modprobe.d/00ipv6disable or  
something along those lines. Don't forget to reboot.


An other option is to build your own kernel, or fix the ipv6 setup  
(DNS issue maybe?)


,Mark



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-09 Thread Rick Thomas


On Sep 9, 2009, at 5:52 AM, Mark wrote:


suggesting disabling the ipv6 module in /etc/modprobe.d/local.conf



Rick Thomas wrote:

Sadly, it was a good idea but it didn't work.
Apparently, having the module compiled in prevents any of the  
modprobe stuff from having any effect on it.

However, Kelly gave me a pointer that led me to the right fix.


Yeah, I noticed.
I don't think this is a debian stock kernel tho..

lsmod |grep ipv[4-6]
(incase the ipv5 virus is spreading :P)

Jokes aside.. I got a feeling this is a hand made kernel, the ipv6  
bit has (to what I could find in the change logs) not been jammed in  
the kernel itself.


X11 is annoyed with ya for having ipv6 support, but dropping the  
traffic at the kernel.. it does not understand what happend. X11 has  
"native"ipv6 support (so it seems).


Give us a uname -a for the fun of it.

,Mark




If X11 is upset by turning off ipv6 at the kernel, why does it work  
with "eth0" but not with "all" ??!!


And why is there no "DISPLAY" variable in the shell environment?



It's not a self-made kernel.  I got it from the "testing" repo just a  
couple of weeks ago.


lsmod | grep ipv

gives nothing.

Note that we have "CONFIG_IPV6=y"   not  "=m" in the config file...

Curiouser and curiouser!

Rick
==
rbtho...@frogpond:~$ uname -a
Linux frogpond 2.6.30-1-amd64 #1 SMP Sat Aug 15 18:09:19 UTC 2009  
x86_64 GNU/Linux



rbtho...@frogpond:~$ grep -i ipv6 /boot/config-2.6.30-1-amd64
CONFIG_IPV6=y
CONFIG_IPV6_PRIVACY=y
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_IPV6_MIP6=y
CONFIG_IPV6_SIT=m
CONFIG_IPV6_NDISC_NODETYPE=y
CONFIG_IPV6_TUNNEL=m
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_IPV6_PIMSM_V2=y
# CONFIG_IP_VS_IPV6 is not set
# IPv6: Netfilter Configuration
CONFIG_NF_CONNTRACK_IPV6=m
CONFIG_IP6_NF_MATCH_IPV6HEADER=m



rbtho...@frogpond:~$ aptitude -vv show linux-image-2.6.30-1-amd64
Package: linux-image-2.6.30-1-amd64
New: yes
State: installed
Automatically installed: yes
Version: 2.6.30-6
Priority: optional
Section: kernel
Maintainer: Debian Kernel Team 
Uncompressed Size: 86.5M
Architecture: amd64
Compressed Size: 24.9M
Filename: pool/main/l/linux-2.6/linux-image-2.6.30-1- 
amd64_2.6.30-6_amd64.deb

MD5sum: 3fa2c05b8d94af7668abdbbadd22996e
Archive: testing
Depends: module-init-tools, initramfs-tools (>= 0.55) | yaird (>=  
0.0.13) | linux-initramfs-tool

PreDepends: debconf | debconf-2.0
Suggests: linux-doc-2.6.30, grub | lilo
Conflicts: initramfs-tools (< 0.55), yaird (< 0.0.13)
Provides: linux-image, linux-image-2.6, linux-modules-2.6.30-1-amd64
Description: Linux 2.6.30 image on AMD64
 This package provides the binary image and pre-built loadable  
modules for Linux kernel 2.6.30 on all 64bit single- and

 multiprocessor AMD and Intel machines.

 This kernel also runs on a Xen hypervisor.  It supports only  
unpriviledged (domU) operation.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-08 Thread Rick Thomas


On Sep 9, 2009, at 12:04 AM, Kelly Clowers wrote:


On Tue, Sep 8, 2009 at 15:03, Rick Thomas wrote:



The 2.6.30 kernel seems to have ipv6 turned on and compiled-in --  
i.e. not a

module.

Does this make it impossible to turn off IPv6?  Or am I missing  
something...


net.ipv6.conf.all.disable_ipv6=1
in /etc/sysctl.conf ought to do it.

likewise "ipv6.disable=1" as a kernel option or
"echo 1 >/proc/sys/net/ipv6/conf/all/disable_ipv6" on the CLI

Not tested, however, and Ubuntu recently had a bug that stopped
this from working


Thanks, Kelly!

A variation on that turned the trick.

I had to do

net.ipv6.conf.eth0.disable_ipv6=1

When I used "all" instead of "eth0" "ssh -X" didn't work properly when  
I ssh'ed to the host in question.  It complained about not being able  
to open the display.  And "env | grep DISPLAY" showed nothing.


Bug or feature?  How does turning off ipv6 change the behavior of sshd  
with regards to X11forwarding? And why!!??



Curiouser and curiouser, cried Alice!

Rick

PS:  I don't know why I didn't see the "disable_ipv6" option before.   
I looked in /proc/sys/net/ipv6 for anything that might be useful, but  
somehow overlooked the obvious...  Oh well!  It's good to have others  
to talk to when you're like that.




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: Is there any way to turn off IPv6 in the stock Debian 2.6.30 kernel without recompiling?

2009-09-08 Thread Kelly Clowers
On Tue, Sep 8, 2009 at 15:03, Rick Thomas wrote:
>
>
> The 2.6.30 kernel seems to have ipv6 turned on and compiled-in -- i.e. not a
> module.
>
> Does this make it impossible to turn off IPv6?  Or am I missing something...

net.ipv6.conf.all.disable_ipv6=1
in /etc/sysctl.conf ought to do it.

likewise "ipv6.disable=1" as a kernel option or
"echo 1 >/proc/sys/net/ipv6/conf/all/disable_ipv6" on the CLI

Not tested, however, and Ubuntu recently had a bug that stopped
this from working


Cheers,
Kelly Clowers


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org