LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-03-2011, 08:06 AM   #1
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
Debian 6 Squeeze Disable IPv6


Hi,

Supposedly you can disable ipv6 in Debian Squeeze with the following:

Code:
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
However, I found chrony and ntpd will still be shown bound to IPv6 in netstat (I can disable in ntpd's config, but cannot figure out how for chrony). Is the above correct or is there another way (besides compiling a custom kernel) - maybe time servers start earlier in the boot process than when sysctl runs?

Thanks,
slacky
 
Old 03-03-2011, 11:52 AM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
You can always check if the module is loading
Code:
lsmod | grep ipv
You can also try blacklisting the module in /etc/modprobe.d/blacklist.conf
As root
Code:
echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf
If something tries to load the module, I don't think this will stop it though. You can send the module off to /bin/true land in that case. This should prevent the module from ever loading.
Code:
echo "install ipv6 /bin/true" >> /etc/modprobe.d/blacklist.conf
 
Old 03-03-2011, 12:49 PM   #3
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Original Poster
Rep: Reputation: 16
I think it is compiled in, no ipv6 module loaded nor able to load one, but definitely chrony using:

Code:
# lsmod | grep ipv
nf_conntrack_ipv4       9833  15
nf_defrag_ipv4          1139  1 nf_conntrack_ipv4
nf_conntrack           46535  2 nf_conntrack_ipv4,xt_state

# modprobe ipv6
FATAL: Module ipv6 not found.

# netstat -paunt | grep chrony
udp        0      0 0.0.0.0:123             0.0.0.0:*                           1913/chronyd
udp        0      0 127.0.0.1:323           0.0.0.0:*                           1913/chronyd
udp6       0      0 :::123                  :::*                                1913/chronyd
udp6       0      0 :::323                  :::*                                1913/chronyd
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't disable IPv6 bhamid Linux - Networking 10 04-30-2013 02:13 AM
Best Way to disable IPV6 idlehands Linux - General 6 12-04-2012 09:58 AM
Ubuntu 9.10 Disable IPv6? linuxnoby Ubuntu 10 01-19-2010 10:47 AM
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 09:54 PM
Disable ipv6 in ubuntu? ksgill Linux - Newbie 7 03-25-2006 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration