Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Disable ipv6
PostPosted: Tue Feb 01, 2011 4:59 am 
Offline
Senior Newbie

Joined: Tue Feb 01, 2011 4:55 am
Posts: 12
Hi,

I'm new here so please be gentle...

I'm setting up a cPanel DNS Only server. When I run the CSF firewall security check, I get a message that ipv6 seems to be enabled, and therefore I should implement a few measures for security (ip6tables, etc.).

However, I don't see a need to even use ipv6, and I am not sure it's even fully supported here. It seems to me that it might be easier just to disable it. Is this possible, and if so, how?

My Linode is CentOS 5.5 32-bit.

Thanks,

Mark


Top
   
 Post subject:
PostPosted: Tue Feb 01, 2011 1:53 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
See http://wiki.centos.org/FAQ/CentOS5#head ... 366b421dc4

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Feb 01, 2011 6:09 pm 
Offline
Senior Newbie

Joined: Tue Feb 01, 2011 4:55 am
Posts: 12
Thanks. I was familiar with this in general, however:

Quote:
Edit /etc/sysconfig/network and set "NETWORKING_IPV6" to "no"

On my Linode this line wasn't in /etc/sysconfig/network, as it is on other servers.

Should I just create it (set to "no" of course) and then follow the rest of the instructions?

Thanks.


Top
   
 Post subject:
PostPosted: Tue Feb 01, 2011 9:41 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Give it a go, I don't know how centos manages ipv6 see if it works if it doesn't yell and someone with more centos knowledge will probably pop up.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Feb 02, 2011 12:07 am 
Offline
Junior Member

Joined: Sun Feb 14, 2010 5:40 pm
Posts: 28
This worked for Debian Lenny. I don't know about Centos.
http://www.cyberciti.biz/tips/linux-how-to-disable-the-ipv6-protocol.html#comment-154806

Add these lines to /etc/sysctl.conf

#disable ipv6
net.ipv6.conf.all.disable_ipv6=1

and run

Code:
sysctl -p /etc/sysctl.conf


Top
   
 Post subject:
PostPosted: Wed Feb 02, 2011 12:47 pm 
Offline
Senior Newbie

Joined: Tue Feb 01, 2011 4:55 am
Posts: 12
On further research I've seen that disabling it might cause issues.

Am I better off leaving it active and just using ip6tables? I'd really prefer not to have something active on my Linode if it isn't being used, but I wonder if this is the best way.


Top
   
 Post subject:
PostPosted: Wed Feb 02, 2011 12:49 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Is there actually an IPV6 address assigned to your Linode?


Top
   
 Post subject:
PostPosted: Wed Feb 02, 2011 8:12 pm 
Offline
Senior Newbie

Joined: Tue Feb 01, 2011 4:55 am
Posts: 12
>> Is there actually an IPV6 address assigned to your Linode?

Not that I know of. I'm still new here so I'm not sure what goes on under the hood. But I just see the IPV4 address.

I've still heard that IPV6 should be deactivated if not in use...I'm no longer sure how true that is.

Thanks.


Top
   
 Post subject:
PostPosted: Thu Feb 03, 2011 1:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If it ain't broke don't fix it.

If ipv6 being enabled isn't causing you problems leave it alone.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Feb 03, 2011 2:26 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
Since you don't actually have any IPv6 connectivity, the only danger is from localhost. It'd be pretty easy to set up a couple firewall rules to kill all IPv6 traffic other than localhost, not that any exists in the first place.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Thu Feb 03, 2011 2:34 am 
Offline
Senior Newbie

Joined: Tue Feb 01, 2011 4:55 am
Posts: 12
Thanks to everyone!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group