Linuxmuster-import-subnets wirft Fehler, wenn OPNsense auf 26.7

Hallo,

ich hab hier in meiner virtuallen Umgebung lmn 7.4 und OPNsense 26.7

Updates des Servers auf Heuteigem Stand: linuxmuster-base ist 7.4.23

Wenn ich linuxmuster-import-subnets

aufrufe, kommt

checking firewall version

und dann:


Connection / Authentication issue, response received:

{„status“:401,„message“:„Authetication Failed“}

Failed to retrieve firewall firmware info.

Please upgrade your OPNsense at least to Version >=26.1


.. ich hab 26.7

Ist das nur bei mir so, oder auch bei euch, wenn ihr OPNsense >26.1 habt?

Vorsicht: ich merke gerade, dass nach dem Lauf dann der isc-dhcp nicht mehr läuft.

Ein linuxmuster-import-devices

später, läuft er wieder …

LG
Holger

Hallo Holger,

ich vermute mal, dass der Firewall-API-Key nicht mehr stimmt. Evtl. sind die Snapshots von Firewall und Server auseinandergelaufen. linuxmuster-opnsense-reset sollte das reparieren, wobei das natürlich mit Kanonen auf Spatzen geschossen ist. Schöner wäre ein Skript, mit dem sich einfach ein neuer API-Key ausrollen lässt. Ich veranlasse das und liefere es im nächsten Release mit.

VG, Thomas

Hallo Thomas,

ich hab die VMs auf den aktuellen Stand gebracht.

ein linuxmuster-import-subnets wirft nun diese Meldungen raus:

root@server:~# linuxmuster-import-subnets 
#### linuxmuster-import-subnets                                           ####
------------------------------------------------------------------------------
#### Checking firewall version:                                           ####
#### * Firewall API authentication failed (HTTP 401): {"status":401,"message":"Authentication Failed"} ####
#### * The firewall API key is invalid or missing on the firewall.        ####
#### * Run linuxmuster-opnsense-apikey --deploy to deploy a new one.      ####
------------------------------------------------------------------------------
root@server:~# 

also hab ich das in der Meldung angemahnte gemacht:

root@server:~# linuxmuster-opnsense-apikey --deploy
#### linuxmuster-opnsense-apikey                                          ####
#### * Creating new API key on firewall 10.32.0.254                       ####
#### * New credentials saved to /etc/linuxmuster/.secret/firewall.api.ini. ####
#### * Firewall API accepts the new key.                                  ####

sieht gut aus.

Ein erneuter import der subnetze sieht nun so aus:

root@server:~# linuxmuster-import-subnets 
#### linuxmuster-import-subnets                                           ####
------------------------------------------------------------------------------
#### Checking firewall version:                                           ####
#### * Firewall version 26.7.1_1 OK.                                      ####
#### Setup values:                                                        ####
#### * Server address: 10.32.0.1                                          ####
#### * Server network: 10.32.0.0/16                                       ####
#### Reading subnets:                                                     ####
#### * 1 subnet(s) total, 0 extra subnet(s).                              ####
#### Writing DHCP configuration:                                          ####
#### * 10.32.0.0/16                                                       ####
#### Restarting isc-dhcp-server ..................................... OK! ####
#### Updating netplan configuration:                                      ####
#### * Removed old routes.                                                ####
#### * New netplan configuration applied.                                 ####
#### Updating NTP configuration:                                          ####
#### Updating ntpsec configuration:                                       ####
#### * Creating backup /etc/ntpsec/ntp.conf-20261015150844.               ####
#### * Processing subnets                                                 ####
####   -  10.32.0.0/16                                                    ####
#### * Writing /etc/ntpsec/ntp.conf.                                      ####
#### * Restarting ntpsec service.                                         ####
#### Updating LAN gateway on firewall:                                    ####
#### * Legacy gateway GW_LAN found - replacing.                           ####
#### * Gateway GW_LAN deleted.                                            ####
#### * No LAN gateway present, nothing to remove.                         ####
#### Updating static routes on firewall:                                  ####
#### Updating outbound NAT rules on firewall:                             ####
------------------------------------------------------------------------------

Du bist der Beste :slight_smile:

LG
Holger