Firewall objects only partially shown


(Istvan) #1

NethServer Version: 7.4.1708

I changed the LAN IP class and I realized that at the Firewall Objects only a few hosts are shown. I have forward rules with hosts that are not shown in the Firewall Objects section.
What should i do to be able to see all the defined hosts in the Firewall Objects section.


(Marc) #2

Check if any error message was logged in /var/log/messages at the time the IP class changed.
Lookup for missing host objects (or malformed entries) in the db:

db hosts show

(Istvan) #3

returns the correct results but in the web gui only a few are shown.

(Marc) #4

Anything in logs?
Do you mind sharing your /var/lib/nethserver/db/hosts file (either publicly or by PM)?

(Istvan) #5

Thanks for the tip!

I seen in the /var/lib/nethserver/db/hosts file the entries which started with “local”(NAS=local|Description||IpAddress||MacAddress|FC:F5:28:30:0C:56) were not shown in the web gui. The last four entries started with “host”(softone=host|Description|Softone Server|IpAddress| were there.
I replaced the “local” with “host” in the /var/lib/nethserver/db/hosts file and now the hosts are visible in the web gui too.