all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH docs] network: ipv6: mention that all interfaces do slaac
@ 2026-11-27  9:05 Stoiko Ivanov
  2026-11-27 10:37 ` Gabriel Goller
  0 siblings, 1 reply; 5+ messages in thread
From: Stoiko Ivanov @ 2026-11-27  9:05 UTC (permalink / raw)
  To: pve-devel

Configuring a bridge with the mindset of it being a pure layer 2
device can lead to suprises when it suddenly gets a internet
connectivity (by the network announcing a prefix and router).

This holds even more for users not coming from a Linux background
(where this has been the default behavior for as long as I can
remember).

Adding a note to our documentation might help prevent surprises with
this.

This partially addresses https://bugzilla.proxmox.com/show_bug.cgi?id=1251

Adding a checkbox or similar to the options of a network interface to
set the sysctl's as post-up can happen independently of this change.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 pve-network.adoc | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/pve-network.adoc b/pve-network.adoc
index f8bfe2d..7a66e07 100644
--- a/pve-network.adoc
+++ b/pve-network.adoc
@@ -861,16 +861,37 @@ This means that packets arriving on vmbr0, that have VLAN Tag 49 set and
 destination MAC address aa:aa:aa:d8:36:7c will not be forwarded, but be
 terminated locally.
 
+IPv6 considerations
+~~~~~~~~~~~~~~~~~~~
+
+For IPv6 the Linux kernel defaults to having stateless autoconfiguration and
+accepting router advertisements enabled.
+
+All interfaces, including bridges, will configure addresses and routers
+if the network provides prefix and router information.
+
+To disable automatically configuring addresses and routers on an interface
+`$IFACE` you can use the proper
+https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]:
+
+----
+net.ipv6.conf.$IFACE.accept_ra = 0
+net.ipv6.conf.$IFACE.autoconf = 0
+----
+
+You can add this as `post-up` command in `/etc/network/interfaces`.
+
 Disabling IPv6 on the Node
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 {pve} works correctly in all environments, irrespective of whether IPv6 is
 deployed or not. We recommend leaving all settings at the provided defaults.
 
-Should you still need to disable support for IPv6 on your node, do so by
-creating an appropriate `sysctl.conf (5)` snippet file and setting the proper
-https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls],
-for example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
+Should you still need to disable support for IPv6 completely on for a node, do
+so by creating an appropriate `sysctl.conf (5)` snippet file and setting the
+proper
+https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], for
+example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
 
 ----
 net.ipv6.conf.all.disable_ipv6 = 1
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH docs] network: ipv6: mention that all interfaces do slaac
  2026-11-27  9:05 [PATCH docs] network: ipv6: mention that all interfaces do slaac Stoiko Ivanov
@ 2026-11-27 10:37 ` Gabriel Goller
  2026-11-27 11:28   ` Stoiko Ivanov
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Goller @ 2026-11-27 10:37 UTC (permalink / raw)
  To: Stoiko Ivanov; +Cc: pve-devel

On 27.11.2026 10:05, Stoiko Ivanov wrote:
> Configuring a bridge with the mindset of it being a pure layer 2
> device can lead to suprises when it suddenly gets a internet
> connectivity (by the network announcing a prefix and router).
> 
> This holds even more for users not coming from a Linux background
> (where this has been the default behavior for as long as I can
> remember).
> 
> Adding a note to our documentation might help prevent surprises with
> this.
> 
> This partially addresses https://bugzilla.proxmox.com/show_bug.cgi?id=1251
> 
> Adding a checkbox or similar to the options of a network interface to
> set the sysctl's as post-up can happen independently of this change.
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> ---
>  pve-network.adoc | 31 ++++++++++++++++++++++++++-----
>  1 file changed, 26 insertions(+), 5 deletions(-)
> 
> diff --git a/pve-network.adoc b/pve-network.adoc
> index f8bfe2d..7a66e07 100644
> --- a/pve-network.adoc
> +++ b/pve-network.adoc
> @@ -861,16 +861,37 @@ This means that packets arriving on vmbr0, that have VLAN Tag 49 set and
>  destination MAC address aa:aa:aa:d8:36:7c will not be forwarded, but be
>  terminated locally.
>  
> +IPv6 considerations
> +~~~~~~~~~~~~~~~~~~~
> +
> +For IPv6 the Linux kernel defaults to having stateless autoconfiguration and
> +accepting router advertisements enabled.
> +
> +All interfaces, including bridges, will configure addresses and routers

s/routers/routes

I think?

> +if the network provides prefix and router information.
> +
> +To disable automatically configuring addresses and routers on an interface
> +`$IFACE` you can use the proper
> +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]:

We have a bit of a mix between recommending `/etc/sysctl.d/` and post-up for
setting sysctls. I'd be in favor of `/etc/sysctl.d/`, but this is fine as well.

> +
> +----
> +net.ipv6.conf.$IFACE.accept_ra = 0
> +net.ipv6.conf.$IFACE.autoconf = 0
> +----

If we add this as post-up we need to add `sysctl` in front of these.

BUT AFAIK we also support:

	iface vmbr0 inet static
		accept-ra 0
		autoconf 0

No hard feelings which one we want...

> +
> +You can add this as `post-up` command in `/etc/network/interfaces`.
> +
>  Disabling IPv6 on the Node
> -~~~~~~~~~~~~~~~~~~~~~~~~~~
> +^^^^^^^^^^^^^^^^^^^^^^^^^^
>  
>  {pve} works correctly in all environments, irrespective of whether IPv6 is
>  deployed or not. We recommend leaving all settings at the provided defaults.
>  
> -Should you still need to disable support for IPv6 on your node, do so by
> -creating an appropriate `sysctl.conf (5)` snippet file and setting the proper
> -https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls],
> -for example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
> +Should you still need to disable support for IPv6 completely on for a node, do

s/on//

> +so by creating an appropriate `sysctl.conf (5)` snippet file and setting the
> +proper
> +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], for
> +example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
>  
>  ----
>  net.ipv6.conf.all.disable_ipv6 = 1
> -- 
> 2.47.3
> 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH docs] network: ipv6: mention that all interfaces do slaac
  2026-11-27 10:37 ` Gabriel Goller
@ 2026-11-27 11:28   ` Stoiko Ivanov
  2026-11-27 11:51     ` Gabriel Goller
  0 siblings, 1 reply; 5+ messages in thread
From: Stoiko Ivanov @ 2026-11-27 11:28 UTC (permalink / raw)
  To: Gabriel Goller; +Cc: pve-devel

Thanks for the quick feedback!


On Fri, 27 Nov 2026 11:37:23 +0100
Gabriel Goller <g.goller@proxmox.com> wrote:

> On 27.11.2026 10:05, Stoiko Ivanov wrote:
> > Configuring a bridge with the mindset of it being a pure layer 2
> > device can lead to suprises when it suddenly gets a internet
> > connectivity (by the network announcing a prefix and router).
> > 
> > This holds even more for users not coming from a Linux background
> > (where this has been the default behavior for as long as I can
> > remember).
> > 
> > Adding a note to our documentation might help prevent surprises with
> > this.
> > 
> > This partially addresses https://bugzilla.proxmox.com/show_bug.cgi?id=1251
> > 
> > Adding a checkbox or similar to the options of a network interface to
> > set the sysctl's as post-up can happen independently of this change.
> > 
> > Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> > ---
> >  pve-network.adoc | 31 ++++++++++++++++++++++++++-----
> >  1 file changed, 26 insertions(+), 5 deletions(-)
> > 
> > diff --git a/pve-network.adoc b/pve-network.adoc
> > index f8bfe2d..7a66e07 100644
> > --- a/pve-network.adoc
> > +++ b/pve-network.adoc
> > @@ -861,16 +861,37 @@ This means that packets arriving on vmbr0, that have VLAN Tag 49 set and
> >  destination MAC address aa:aa:aa:d8:36:7c will not be forwarded, but be
> >  terminated locally.
> >  
> > +IPv6 considerations
> > +~~~~~~~~~~~~~~~~~~~
> > +
> > +For IPv6 the Linux kernel defaults to having stateless autoconfiguration and
> > +accepting router advertisements enabled.
> > +
> > +All interfaces, including bridges, will configure addresses and routers  
> 
> s/routers/routes
> 
> I think?
Iterated between those 2 two times before sending (routes being technically
correct) - re-reading the sentence now - makes routes a far better choice
- thx!


> 
> > +if the network provides prefix and router information.
> > +
> > +To disable automatically configuring addresses and routers on an interface
> > +`$IFACE` you can use the proper
> > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]:  
> 
> We have a bit of a mix between recommending `/etc/sysctl.d/` and post-up for
> setting sysctls. I'd be in favor of `/etc/sysctl.d/`, but this is fine as well.
I went with post-up here as that way the configuration of the interface is
in one place (had a few cases where people (including myself) were
wondering why slaac or other things were not working and it took them
quite long to find the sysct.conf.d file added years ago ...)
Also I assumed that post-up would be the place where we'd add it if
this gets added to the API/GUI - would you create/modify a sysctl snippet
for this in the API?

where do we have the mix of both? - from a very quick `git grep` in
pve-docs it looks like we use sysctl.conf for system-wide settings
and most post-up things for interface specific things?


> 
> > +
> > +----
> > +net.ipv6.conf.$IFACE.accept_ra = 0
> > +net.ipv6.conf.$IFACE.autoconf = 0
> > +----  
> 
> If we add this as post-up we need to add `sysctl` in front of these.
> 
> BUT AFAIK we also support:
> 
> 	iface vmbr0 inet static
> 		accept-ra 0
> 		autoconf 0
> 
> No hard feelings which one we want...
hm - missed that (only looked at the ifupdown-addons-interfaces(5))
as we carry this as patch - and it looks a bit nicer to me - I'd go with
that

-> will send a v2


> 
> > +
> > +You can add this as `post-up` command in `/etc/network/interfaces`.
> > +
> >  Disabling IPv6 on the Node
> > -~~~~~~~~~~~~~~~~~~~~~~~~~~
> > +^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  
> >  {pve} works correctly in all environments, irrespective of whether IPv6 is
> >  deployed or not. We recommend leaving all settings at the provided defaults.
> >  
> > -Should you still need to disable support for IPv6 on your node, do so by
> > -creating an appropriate `sysctl.conf (5)` snippet file and setting the proper
> > -https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls],
> > -for example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
> > +Should you still need to disable support for IPv6 completely on for a node, do  
> 
> s/on//
> 
> > +so by creating an appropriate `sysctl.conf (5)` snippet file and setting the
> > +proper
> > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], for
> > +example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
> >  
> >  ----
> >  net.ipv6.conf.all.disable_ipv6 = 1
> > -- 
> > 2.47.3
> > 
> > 
> > 
> > 
> >   





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH docs] network: ipv6: mention that all interfaces do slaac
  2026-11-27 11:28   ` Stoiko Ivanov
@ 2026-11-27 11:51     ` Gabriel Goller
  2026-11-27 17:51       ` superseded: " Stoiko Ivanov
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Goller @ 2026-11-27 11:51 UTC (permalink / raw)
  To: Stoiko Ivanov; +Cc: pve-devel

On 27.11.2026 12:28, Stoiko Ivanov wrote:
> Thanks for the quick feedback!
> 
> 
> On Fri, 27 Nov 2026 11:37:23 +0100
> Gabriel Goller <g.goller@proxmox.com> wrote:
> 
> > On 27.11.2026 10:05, Stoiko Ivanov wrote:
> > > Configuring a bridge with the mindset of it being a pure layer 2
> > > device can lead to suprises when it suddenly gets a internet
> > > connectivity (by the network announcing a prefix and router).
> > > 
> > > This holds even more for users not coming from a Linux background
> > > (where this has been the default behavior for as long as I can
> > > remember).
> > > 
> > > Adding a note to our documentation might help prevent surprises with
> > > this.
> > > 
> > > This partially addresses https://bugzilla.proxmox.com/show_bug.cgi?id=1251
> > > 
> > > Adding a checkbox or similar to the options of a network interface to
> > > set the sysctl's as post-up can happen independently of this change.
> > > 
> > > Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
> > > ---
> > >  pve-network.adoc | 31 ++++++++++++++++++++++++++-----
> > >  1 file changed, 26 insertions(+), 5 deletions(-)
> > > 
> > > diff --git a/pve-network.adoc b/pve-network.adoc
> > > index f8bfe2d..7a66e07 100644
> > > --- a/pve-network.adoc
> > > +++ b/pve-network.adoc
> > > @@ -861,16 +861,37 @@ This means that packets arriving on vmbr0, that have VLAN Tag 49 set and
> > >  destination MAC address aa:aa:aa:d8:36:7c will not be forwarded, but be
> > >  terminated locally.
> > >  
> > > +IPv6 considerations
> > > +~~~~~~~~~~~~~~~~~~~
> > > +
> > > +For IPv6 the Linux kernel defaults to having stateless autoconfiguration and
> > > +accepting router advertisements enabled.
> > > +
> > > +All interfaces, including bridges, will configure addresses and routers  
> > 
> > s/routers/routes
> > 
> > I think?
> 
> Iterated between those 2 two times before sending (routes being technically
> correct) - re-reading the sentence now - makes routes a far better choice
> - thx!
>
> > > +if the network provides prefix and router information.
> > > +
> > > +To disable automatically configuring addresses and routers on an interface
> > > +`$IFACE` you can use the proper
> > > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]:  
> > 
> > We have a bit of a mix between recommending `/etc/sysctl.d/` and post-up for
> > setting sysctls. I'd be in favor of `/etc/sysctl.d/`, but this is fine as well.
>
> I went with post-up here as that way the configuration of the interface is
> in one place (had a few cases where people (including myself) were
> wondering why slaac or other things were not working and it took them
> quite long to find the sysct.conf.d file added years ago ...)
> Also I assumed that post-up would be the place where we'd add it if
> this gets added to the API/GUI - would you create/modify a sysctl snippet
> for this in the API?

Hmm yeah, but we probably want a ui for that in the near future, maybe with the
interface expert options and/or offloading stuff?

> where do we have the mix of both? - from a very quick `git grep` in
> pve-docs it looks like we use sysctl.conf for system-wide settings
> and most post-up things for interface specific things?

Not a mix on one property, but we recommend setting forwarding with post-up and
rp_filter with sysctl...

> > > +
> > > +----
> > > +net.ipv6.conf.$IFACE.accept_ra = 0
> > > +net.ipv6.conf.$IFACE.autoconf = 0
> > > +----  
> > 
> > If we add this as post-up we need to add `sysctl` in front of these.
> > 
> > BUT AFAIK we also support:
> > 
> > 	iface vmbr0 inet static
> > 		accept-ra 0
> > 		autoconf 0
> > 
> > No hard feelings which one we want...
>
> hm - missed that (only looked at the ifupdown-addons-interfaces(5))
> as we carry this as patch - and it looks a bit nicer to me - I'd go with
> that
> 
> -> will send a v2

Sounds good!

> > > +You can add this as `post-up` command in `/etc/network/interfaces`.
> > > +
> > >  Disabling IPv6 on the Node
> > > -~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > +^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >  
> > >  {pve} works correctly in all environments, irrespective of whether IPv6 is
> > >  deployed or not. We recommend leaving all settings at the provided defaults.
> > >  
> > > -Should you still need to disable support for IPv6 on your node, do so by
> > > -creating an appropriate `sysctl.conf (5)` snippet file and setting the proper
> > > -https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls],
> > > -for example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
> > > +Should you still need to disable support for IPv6 completely on for a node, do  
> > 
> > s/on//
> > 
> > > +so by creating an appropriate `sysctl.conf (5)` snippet file and setting the
> > > +proper
> > > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], for
> > > +example adding `/etc/sysctl.d/disable-ipv6.conf` with content:
> > >  
> > >  ----
> > >  net.ipv6.conf.all.disable_ipv6 = 1
> > > -- 
> > > 2.47.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

* superseded: [PATCH docs] network: ipv6: mention that all interfaces do slaac
  2026-11-27 11:51     ` Gabriel Goller
@ 2026-11-27 17:51       ` Stoiko Ivanov
  0 siblings, 0 replies; 5+ messages in thread
From: Stoiko Ivanov @ 2026-11-27 17:51 UTC (permalink / raw)
  To: Gabriel Goller; +Cc: pve-devel

superseded by:
https://lore.proxmox.com/pve-devel/20261127175006.2528172-1-s.ivanov@proxmox.com/T/#u

On Fri, 27 Nov 2026 12:51:44 +0100
Gabriel Goller <g.goller@proxmox.com> wrote:

>..snip..




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-27 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  9:05 [PATCH docs] network: ipv6: mention that all interfaces do slaac Stoiko Ivanov
2026-11-27 10:37 ` Gabriel Goller
2026-11-27 11:28   ` Stoiko Ivanov
2026-11-27 11:51     ` Gabriel Goller
2026-11-27 17:51       ` superseded: " Stoiko Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal