store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 8:29 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Disabling ipv6
Unread postPosted: Mon Mar 22, 2010 5:39 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Hi,

I had ipv6 disabled but only via:
Code:
vi /etc/sysconfig/network
       NETWORKING_IPV6=no


Because of another thread Scotts post caught my attention and I disabled it via:

Code:
vi /etc/modprobe.conf
       install ipv6 /bin/true

vi /etc/sysconfig/network
       NETWORKING_IPV6=no
       IPV6INIT=no


and rebootet.
During boot this showed up:
Quote:
ip6t_REJECT: Unknown symbol ip6_local_out
ip6t_REJECT: Unknown symbol ip6_route_output
ip6t_REJECT: Unknown symbol icmpv6_send
nf_conntrack_ipv6: Unknown symbol ip6_frag_match
nf_conntrack_ipv6: Unknown symbol nf_ip6_checksum
nf_conntrack_ipv6: Unknown symbol ip6_frag_init
nf_conntrack_ipv6: Unknown symbol inet6_hash_frag


Anything I have to do or is it good like that?
Thanks a lot


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Sun Apr 11, 2010 9:33 am 
Offline
New Forum User
New Forum User

Joined: Sun Apr 11, 2010 5:54 am
Posts: 2
You didn't wrote which distro you are using. I'll assume it is RHEL or CentOS 8)

You can disable IPV6 easy on 2 locations:

first in /etc/sysconfig/network (as you did already):
NETWORKING_IPV6=no

and second in /etc/modprobe.conf:
alias net-pf-10 off
(that's doing the trick)

And don't forget disable ip6tables (for example run ntsysv command and uncheck it) - it wipes these errors during boot :wink:


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Sun Apr 11, 2010 9:41 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
thanks, I will give it a try the next time I need to boot.


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Sun Apr 11, 2010 3:30 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
You could check it now. If ip6tables (the IPv6-aware version of iptables) is configured to start on boot, but IPv6 is disabled, then yeah, that will throw some error messages. I'm pretty sure you don't want/expect ip6tables to start if you've disabled IPv6 networking.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Sun Apr 11, 2010 4:22 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Thanks breun.

I disabled ipv6tables first and made all the settings (except alias net-pf-10 off).
But the bootup ipv6 errors stayed the same. So that's not all that needs to be done.
According to arifas post I have searched trough the net and found a redhat KB:
http://kbase.redhat.com/faq/docs/DOC-8711

So the next time I have to boot I will give it a try.


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Thu Jun 10, 2010 12:40 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
Did you ever get a chance to try it?


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Thu Jun 10, 2010 3:18 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
yes, but since centos 5.5 I had to follow the wiki :
http://wiki.centos.org/FAQ/CentOS5#head-47912ebdae3b5ac10ff76053ef057c366b421dc4
Done that:

Edit /etc/sysconfig/network and set "NETWORKING_IPV6" to "no"
Add the following to /etc/modprobe.conf :

alias ipv6 off
alias net-pf-10 off

Run /sbin/chkconfig ip6tables off to disable the IPv6 firewall

touch /etc/modprobe.d/disable-ipv6
echo "install ipv6 /bin/true" >> /etc/modprobe.d/disable-ipv6

Reboot the system


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Thu Jun 10, 2010 3:33 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
I've done all of the above and still get
Code:
ip6t_REJECT: Unknown symbol ip6_local_out
ip6t_REJECT: Unknown symbol ip6_route_output
ip6t_REJECT: Unknown symbol icmpv6_send
nf_conntrack_ipv6: Unknown symbol ip6_frag_match
nf_conntrack_ipv6: Unknown symbol nf_ip6_checksum
nf_conntrack_ipv6: Unknown symbol ip6_frag_init
nf_conntrack_ipv6: Unknown symbol inet6_hash_frag


at startup with 2.6.32.13-2


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Thu Jun 10, 2010 3:48 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
hmm, I don't know. It works on my system but I'm stilll using kernel 2.6.32.8-1


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Wed Jun 16, 2010 12:01 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
I wonder if this mentioned auto loading of modules have anything to do with being unable to turn IPv6 off?


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Mon Jul 12, 2010 8:26 pm 
Offline
Forum Regular
Forum Regular

Joined: Thu Jan 17, 2008 5:48 pm
Posts: 124
I have read through the posts and get that IPV6 enabled presents issues for net-pf-10. I have done all of the suggestions to turn IPV6 off, however, I still get the following:

grsec: denied kernel module auto-load of net-pf-10 by /usr/bin/spamassassin[spamassassin:26971] uid/euid:506/506 gid/egid:503/503, parent /usr/bin/procmail[procmail:26970] uid/euid:506/506 gid/egid:503/503

Does this mean that spamassassin is checking IPV6?

There is an option of ---ipv4only when executing spamd in daemon mode but I am not sure what file I need to add it to.

Thanks folks.


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Wed Jul 21, 2010 9:10 am 
Offline
Forum Regular
Forum Regular
User avatar

Joined: Wed Jan 13, 2010 9:11 am
Posts: 180
Location: Bali
Is this an acceptible single-step solution?

http://www.g-loaded.eu/2008/05/12/how-t ... nd-centos/

_________________
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Wed Jul 21, 2010 1:49 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
webfeatus wrote:
Is this an acceptible single-step solution?

http://www.g-loaded.eu/2008/05/12/how-t ... nd-centos/


Well, it might be for you, but it doesn't work for me... Since the new kernel at least...


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Sun Jul 25, 2010 3:53 am 
Offline
Forum Regular
Forum Regular

Joined: Thu May 07, 2009 12:46 pm
Posts: 219
So anyone get the solution to disable IPv6 of centos 5.5 and kernel 2.6.32.16-2.art.i686.PAE???

to get ride off the error messages??

Code:
grsec: denied kernel module auto-load of net-pf-10.......


Greetz


Top
 Profile  
 
 Post subject: Re: Disabling ipv6
Unread postPosted: Thu Aug 05, 2010 10:47 am 
Offline
Forum Regular
Forum Regular
User avatar

Joined: Wed Jan 13, 2010 9:11 am
Posts: 180
Location: Bali
There does not seem to be reliable solution in this post.

I assume that one must be standing beside the console, anyway, in order to note some of the errors reported here. This is simply not possible for many of us. Am I incorrect in this understanding?

What are the options?

1. Receive OSSEC Notifications and wade through the huge number of warnings about this to discover the relevent security events?

2. Disable the ASL option to allow Kernel Module loading?

3. Somehow configure reporting to not send these warnings?

Obviously the best solution is to remove IPv6 if it is not required on the system, however I am not prepared to attempt any of the solutions offered here; not with my lack of knowledge and no onsite support.

_________________
They say that good intentions, pave the road to hell;
If a thing is not worth doing, it's not worth doing well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 27 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group