Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Disabilitare IPV6
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Mon Jul 31, 2017 4:24 pm    Post subject: [RISOLTO] Disabilitare IPV6 Reply with quote

Ciao a tutti,
come da titolo avrei bisogno di disabilitare Ipv6.
Ho trovato questo, in cui alla fine si dice di ricompilare il kernel con ipv6 disabilitato.
Prima di provare a ricompilare il kernel mi farebbe piacere avere alcune conferme.

Grazie in anticipo


Last edited by Maxxx on Tue Aug 01, 2017 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21341
Location: here

PostPosted: Mon Jul 31, 2017 4:51 pm    Post subject: Reply with quote

Non funziona aggiungendo ipv6.disable=1 nella variabile GRUB_CMDLINE_LINUX_DEFAULT nel file /etc/default/grub?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Mon Jul 31, 2017 4:56 pm    Post subject: Reply with quote

Ciao e grazie per la risposta.
Proverò così e ti farò sapere.

L'ho fatto su android ed è una cosa molto simile a questa che dici tu (la stringa "ipv6.disable=1" è sempre quella ma è su un altro file).
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Tue Aug 01, 2017 6:54 am    Post subject: Reply with quote

Prima di effettuare la disabilitazione ho dato il comando "ifconfig" e il risultato è stato che avevo sia "inet" (ipv4) che "inet6" (ipv6) impostati.
A questo punto ho decommentato la riga GRUB_CMDLINE_LINUX_DEFAULT del file /etc/default/grub e l'ho modificata così:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"


poi ho riavviato il pc.
Ho ridato il comando "ifconfig" per vedere l'effettività della disabilitazione ma mi appare ancora "inet6".

Ho forse saltato qualche passaggio?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21341
Location: here

PostPosted: Tue Aug 01, 2017 8:23 am    Post subject: Reply with quote

ipv6 e' compilato come modulo o built in? Se come modulo basta che lo metti in blacklist
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Tue Aug 01, 2017 8:50 am    Post subject: Reply with quote

Ok, grazie, appena posso controllo...
quindi, se fosse come built in l'unica soluzione sarebbe ricompilare il kernel?
E a questo punto, nel ricompilarlo, mi conviene impostare ipv6 come modulo, così lo metto in blacklist (almeno se un domani volessi riattivarlo non necessiterei di ricompilare il kernel)?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21341
Location: here

PostPosted: Tue Aug 01, 2017 8:56 am    Post subject: Reply with quote

Maxxx wrote:
quindi, se fosse come built in l'unica soluzione sarebbe ricompilare il kernel?

Teoricamente quello che hai messo in GRUB_CMDLINE_LINUX_DEFAULT e' per disabilitarlo se e' compilato come built-in, mentre blacklist e' per i moduli (se non ricordo male)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Tue Aug 01, 2017 12:17 pm    Post subject: Reply with quote

Ho ricompilato il kernel senza ipv6 (prima era built in) e quando do il comando "ifconfig" mi esce questo:

Code:
francesco default # ifconfig
enp0s31f6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.246  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 4c:cc:6a:4d:c6:a5  txqueuelen 1000  (Ethernet)
        RX packets 10680  bytes 9460206 (9.0 MiB)
        RX errors 0  dropped 13  overruns 0  frame 0
        TX packets 9564  bytes 1285067 (1.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xdf200000-df220000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

francesco default #


Quindi, non essendoci più inet6, ipv6 è disabilitato, giusto?
E cosa significa questa riga:

Code:
...
ether 4c:cc:6a:4d:c6:a5  txqueuelen 1000  (Ethernet)
...


La cosa strana, a questo punto, è che visto che era built in in toeria bastava fare come dicevi tu (editare il file /etc/default/grub)...
Questo è il file "grub" in questione, magari ho sbagliato qualche cosa:

Code:
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
#     'grub2-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

# Default menu entry
#GRUB_DEFAULT=0

# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu

# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"

# Append parameters to the linux kernel command line for non-recovery entries
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480

# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y

# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1"
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21341
Location: here

PostPosted: Tue Aug 01, 2017 12:47 pm    Post subject: Reply with quote

Maxxx wrote:
Quindi, non essendoci più inet6, ipv6 è disabilitato, giusto?
E cosa significa questa riga:

Code:
...
ether 4c:cc:6a:4d:c6:a5  txqueuelen 1000  (Ethernet)
...

Questo e' il MAC address ed e' univoco per ogni scheda, non centra nulla con ipv6.
Se fosse attivo ipv6 dovresti vedere qualcosa del genere
Code:
inet6 fd67::6543:d354:9980:7031  prefixlen 64  scopeid 0x20<link>

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 515
Location: Italia

PostPosted: Tue Aug 01, 2017 1:25 pm    Post subject: Reply with quote

Perfetto, grazie mille dell'aiuto.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum