The officially official Devuan Forum!

You are not logged in.

#1 2023-10-15 18:44:55

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

How to disable IPv6?

Hi guys,

I have some issues with dropbear and I believe is because ipv6 and therefore I want to disable it.
I didn't find specific documentation on the Debian wiki but this arguable tutorial I found didn't work either:

# Disabling the IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

updated initramfs and rebooted, but still ipv6.

Any suggestions?

Thanks! 🙏

Last edited by Danielsan (2023-10-15 18:45:52)

Offline

#2 2023-10-15 20:09:50

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 590  

Re: How to disable IPv6?

Hi, I add a  ipv6.disable=1 line to grub... the vpn I have only uses ipv4

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# GlennsPref 20230920 ipv6

GRUB_DEFAULT=0
GRUB_TIMEOUT=4
GRUB_DISTRIBUTOR=`lsb_release -i -s`
GRUB_CMDLINE_LINUX_DEFAULT="console=tty12 vga=794 modeset.nouveau=0 nokmsboot ipv6.disable=1"

# discover other os's
GRUB_DISABLE_OS_PROBER=false

GRUB_GFXMODE=1920x1080

GRUB_INIT_TUNE="400 440 1"
# resume=uuid errors... noresume "we don't susspend"
GRUB_CMDLINE_LINUX="noresume idle=nomwait"

GRUB_THEME=/usr/share/desktop-base/grub-themes/desktop-grub-theme/theme.txt

run update-grub as root, and reboot.

all the best


pic from 1993, new guitar day.

Offline

#3 2023-10-17 06:01:42

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

Re: How to disable IPv6?

@GlennW that worked, thanks!

Although it says: "ipv6 loaded but administratively disabled" ; it would be cool understand how to prevent ipv6 to be loaded.
Anyway it was enough to let dropbear able to listen in fact I was able to drop the bear into the other pc! 😁

Offline

#4 2023-10-17 14:39:20

steve_v
Member
Registered: 2018-01-11
Posts: 343  

Re: How to disable IPv6?

Danielsan wrote:

it would be cool understand how to prevent ipv6 to be loaded.

If you don't want ipv6 support, recompile your kernel without ipv6 support, obviously.
Otherwise, disable it as already explained.


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

Board footer