Netplan : WARNING **

Discussions sur les réseaux

Modérateur : alloja

Avatar du membre
Unix-Linux
Membre
Membre
Messages : 10073
Enregistré le : 10 nov. 2017, 21:50
Score de réactions : 43

Netplan : WARNING **

Message par Unix-Linux »

** (process:6430): WARNING **: 15:11:05.190: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.

** (generate:6432): WARNING **: 15:11:05.195: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

** (process:6430): WARNING **: 15:11:05.422: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:6430): WARNING **: 15:11:05.584: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:6430): WARNING **: 15:11:05.585: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.
Quel est le problème ? Problème de permissions ?
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Voo HFC (anciennement : EDPnet VDSL XL - Brutele - RealRoot - Scarlet)
Main O.S : Debian Bookworm / FreeBSD 14.2 aarch64
Raspberry Pi 4 + NAS / DietPi v9.11
Server : ubuntu Noble Numbat 24.04
Avatar du membre
cezame
Membre
Membre
Messages : 5287
Enregistré le : 09 avr. 2018, 12:29
Score de réactions : 51
Localisation : Triangle BFL
Âge : 75

Re: Netplan : WARNING **

Message par cezame »

Je ne connais pas Netplan, mais c'est ce qu'indiquent les logs. Il me semble que tu dois restreindre les permissions. Un petit chmod 600 ne serait pas mal.

___
CS
Avatar du membre
Unix-Linux
Membre
Membre
Messages : 10073
Enregistré le : 10 nov. 2017, 21:50
Score de réactions : 43

Re: Netplan : WARNING **

Message par Unix-Linux »

Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Voo HFC (anciennement : EDPnet VDSL XL - Brutele - RealRoot - Scarlet)
Main O.S : Debian Bookworm / FreeBSD 14.2 aarch64
Raspberry Pi 4 + NAS / DietPi v9.11
Server : ubuntu Noble Numbat 24.04
Avatar du membre
Mackguil
Modérateur en chef
Modérateur en chef
Messages : 19828
Enregistré le : 31 oct. 2017, 18:35
Score de réactions : 99
Localisation : Tx

Re: Netplan : WARNING **

Message par Mackguil »

cezame a écrit : 03 nov. 2023, 16:30 Je ne connais pas Netplan, mais c'est ce qu'indiquent les logs. Il me semble que tu dois restreindre les permissions. Un petit chmod 600 ne serait pas mal.
J'adore quand la solution est donnée dans le second post d'un topic.

Image
Internet: Fiber XS Edpnet 35.95, Fransat, Tél fixe OVH + Betamax 2.5 euros, Mobile orange 1.5 euros, MolotovTV bouquet Extended à l'année 8.33€ par mois.


+-48 euros/mois pour du quadruple play fibré, les alternatives existent, si l'on ajoute l'abonnement mobile Français avec 300 Gigas, minutes et sms illimités, on arrive à 58 euros.il faut juste oser !
Avatar du membre
Unix-Linux
Membre
Membre
Messages : 10073
Enregistré le : 10 nov. 2017, 21:50
Score de réactions : 43

Re: Netplan : WARNING **

Message par Unix-Linux »

En fait ce n'était pas tout à fait fini :smile:
Concernant le premier problème : si, effectivement :wink:

Mais est venu un deuxième problème :
En fait dur cette interface est associée un bloc IP
ping6 -c 4 2001:4860:4860::8888
Résultat :
ping6: connect: Network is unreachable
A cause de la mauvaise configuration du netplan...

Solution :

code : Tout sélectionner

network:
    version: 2
    ethernets:
        enp1s0:
            dhcp4: true
            match:
                macaddress: 00:00:00:00:00:00
            set-name: eth0
            addresses:
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - IPV6/IPv6_PREFIX
              - ...
            routes:
                - to: ::/0
                  via: IPv6_GATEWAY
                - to: IPv6_GATEWAY
                  scope: link

A nouveau : test :

code : Tout sélectionner

    ping6 -c 4 2001:4860:4860::8888
Résultat :
PING 2001:4860:4860::8888(2001:4860:4860::8888) 56 data bytes
64 bytes from 2001:4860:4860::8888: icmp_seq=1 ttl=113 time=1.46 ms
64 bytes from 2001:4860:4860::8888: icmp_seq=2 ttl=113 time=1.50 ms
64 bytes from 2001:4860:4860::8888: icmp_seq=3 ttl=113 time=1.56 ms
64 bytes from 2001:4860:4860::8888: icmp_seq=4 ttl=113 time=1.52 ms
...
Voila, enfin résolu :wink:
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Voo HFC (anciennement : EDPnet VDSL XL - Brutele - RealRoot - Scarlet)
Main O.S : Debian Bookworm / FreeBSD 14.2 aarch64
Raspberry Pi 4 + NAS / DietPi v9.11
Server : ubuntu Noble Numbat 24.04
Avatar du membre
Unix-Linux
Membre
Membre
Messages : 10073
Enregistré le : 10 nov. 2017, 21:50
Score de réactions : 43

Re: Netplan : WARNING **

Message par Unix-Linux »

Ajout au problème : après :
** (generate:1376): WARNING **: 18:15:31.454: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.

** (process:1374): WARNING **: 18:15:31.693: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:1374): WARNING **: 18:15:31.838: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.

** (process:1374): WARNING **: 18:15:31.839: Permissions for /etc/netplan/50-cloud-init.yaml are too open. Netplan configuration should NOT be accessible by others.
La solution étant :

code : Tout sélectionner

chmod 600 /etc/netplan/cloud-init.yaml
Vient ensuite :

code : Tout sélectionner

netplan apply
WARNING:root:Cannot call Open vSwitch: ovsdb-server.service is not running.
Solution :

code : Tout sélectionner

apt-get install openvswitch-switch-dpdk
The following additional packages will be installed:
dpdk ibverbs-providers libevent-2.1-7 libfdt1 libibverbs1 libnl-route-3-200
librte-bus-auxiliary22 librte-bus-pci22 librte-bus-vdev22 librte-bus-vmbus22
librte-common-mlx5-22 librte-cryptodev22 librte-eal22 librte-ethdev22
librte-gso22 librte-hash22 librte-ip-frag22 librte-kni22 librte-kvargs22
librte-mbuf22 librte-mempool-ring22 librte-mempool22 librte-meter22
librte-net-af-packet22 librte-net-bond22 librte-net-e1000-22
librte-net-fm10k22 librte-net-i40e22 librte-net-ixgbe22 librte-net-kni22
librte-net-mlx4-22 librte-net-mlx5-22 librte-net-netvsc22 librte-net-pcap22
librte-net-tap22 librte-net-thunderx22 librte-net-vdev-netvsc22
librte-net-vhost22 librte-net-virtio22 librte-net-vmxnet3-22 librte-net22
librte-pci22 librte-rcu22 librte-ring22 librte-sched22 librte-security22
librte-telemetry22 librte-vhost22 libunbound8 openvswitch-common
openvswitch-switch python3-openvswitch python3-pyelftools
python3-sortedcontainers rdma-core
Suggested packages:
dpdk-doc dpdk-kmods-dkms librte-meta-baseband librte-meta-bus
librte-meta-compress librte-meta-crypto librte-meta-dma librte-meta-event
librte-meta-mempool librte-meta-net librte-meta-raw librte-meta-allpmds
openvswitch-doc python-sortedcontainers-doc
The following NEW packages will be installed:
dpdk ibverbs-providers libevent-2.1-7 libfdt1 libibverbs1 libnl-route-3-200
librte-bus-auxiliary22 librte-bus-pci22 librte-bus-vdev22 librte-bus-vmbus22
librte-common-mlx5-22 librte-cryptodev22 librte-eal22 librte-ethdev22
librte-gso22 librte-hash22 librte-ip-frag22 librte-kni22 librte-kvargs22
librte-mbuf22 librte-mempool-ring22 librte-mempool22 librte-meter22
librte-net-af-packet22 librte-net-bond22 librte-net-e1000-22
librte-net-fm10k22 librte-net-i40e22 librte-net-ixgbe22 librte-net-kni22
librte-net-mlx4-22 librte-net-mlx5-22 librte-net-netvsc22 librte-net-pcap22
librte-net-tap22 librte-net-thunderx22 librte-net-vdev-netvsc22
librte-net-vhost22 librte-net-virtio22 librte-net-vmxnet3-22 librte-net22
librte-pci22 librte-rcu22 librte-ring22 librte-sched22 librte-security22
librte-telemetry22 librte-vhost22 libunbound8 openvswitch-common
openvswitch-switch openvswitch-switch-dpdk python3-openvswitch
python3-pyelftools python3-sortedcontainers rdma-core
0 upgraded, 56 newly installed, 0 to remove and 0 not upgraded.
Need to get 7226 kB of archives.
After this operation, 24.2 MB of additional disk space will be used.

Et après, un

code : Tout sélectionner

netplan apply
Sans soucis
:oui:
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Voo HFC (anciennement : EDPnet VDSL XL - Brutele - RealRoot - Scarlet)
Main O.S : Debian Bookworm / FreeBSD 14.2 aarch64
Raspberry Pi 4 + NAS / DietPi v9.11
Server : ubuntu Noble Numbat 24.04