Webmin 2.303 in Debian12: ERROR - Networking > Network configuration

SYSTEM INFORMATION
OS type and version Debian Linux 12
Usermin version 2.203
Virtualmin version 7.30.8 Pro
Theme version 23.03
Apache version 2.4.62
Linux 6.1.0-31-amd64 on x86_64

SERVER:
Debian12
Using “systemd-networkd” with “netplan”

PROBLEM:
Webmin can’t handle correctly the configuration of netplan
Can not read correctly
Can not save correctly
If “apply” the server lost connectivity due to bad network configuration

CONFIGURATION:
“/etc/netplan/50-cloud-init.yaml”

network:
  version: 2
  ethernets:
    enp10s0f0:
      addresses: ['XX.XX.XX.XX/32', 'YYY:YYY:YYYY:YYYY::1/128']  
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1, '2001:4860:4860::8888', '2001:4860:4860::8844']
      routes:
        - to: default
          via: 100.64.0.1
          on-link: true
          metric: 100
        - to: default
          via: fe80::1
          on-link: true
          metric: 100
      accept-ra: false
      match:
        macaddress: d8:43:ae:8a:0d:76
      set-name: enp10s0f0
 

IMPORTANT:
The options “on-link:true” and “metric: 100” are absolutely necessary both
If one of them is missing, then configuration does not work

APPLY:
$netplan generate
$netplan apply

RESULT:
All is absolutely correct
But only if the configuration is set correctly with all the required params (as I have said)

PROBLEM WITH WEBMIN:
Can not read this configuracion
And if you make same change of network in webmin and “save”, then does not write the necessary options, and “destroy” the network configuration of the server

ISSUE:
Obviously the issue is with webmin, that cannot read-write this kind of configuration

1 Like

I have the same issue with the last version of Debian running in my Raspberrry 4. I tried to find a workaround. Finally, I used the Raspberry GUI set all the parameters and avoid to use webmin in network settings because the server get brick.

@Jamie, could you double-check what is causing this?

Hi
Well, this is very simple:
(1) You can write the configuration file that I have posted
(2) Then open WebMin and use it
(3) Then read the configuration file and see the changes that WebMin do in it (and this is the problem: If you make changes, then does not work in Debian12)