Beiträge von opennas

    please
    Debian GNU/Linux non viene fornita con ASSOLUTAMENTE ALCUNA GARANZIA, nella misura
    consentita dalla legge applicabile.
    Ultimo accesso: Fri Jan 26 10:57:16 2024 da 192.168.2.221
    root@nas:~# sudo systemctl status smbd.service● smbd.service - Samba SMB Daemon
    Loaded: loaded (/lib/systemd/system/smbd.service
    ; enabled; vendor preset: enabled
    ) Active: attivo (in esecuzione) dal Fri 2024-01-26 11:09:52 CET; 1min 44s fa
    Documenti: man:smbd(8) man:samba(7) man:smb.conf(5) Processo: 1037 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS) PID principale: 1053 (smbd) Stato: "smbd: connessioni pronte per servire..."
    Attività: 4 (limite: 9258)





    Memoria: 105.4M
    CGroup: /system.slice/smbd.service
    ├─1053 /usr/sbin/smbd --foreground -- no-process-group ├─1304 /usr/sbin/smbd --foreground --no-process-group ├─1305 /usr/sbin/smbd --foreground --no-process-group └─3231 /usr/sbin/smbd --foreground --no-process-group

    Jan 26 11:09:46 nas systemd[1]: Avvio di Samba SMB Daemon ...
    26 gen 11:09:52 nas systemd[1]: Avviato Samba SMB Daemon.
    Jan 26 11:09:52 nas smbd[1053]: [2024/01/26 11:09:52.195555, 0] .. /.. /lib/util/become_daemon.c:135(daemon_ready)
    Jan 26 11:09:52 nas smbd[1053]: daemon_ready: demone 'smbd' ha terminato l'avvio ed è pronto per servire le connessioni
    root@nas:~# systemctl status smbd● smbd.service - Demone
    SMB Samba Loaded: caricato (/lib/systemd/system/smbd.service
    ; abilitato; vendor preset: abilitato) Attivo: attivo (in esecuzione)
    dal Fri 2024-01-26 11:09:52 CET; 2min 11s fa
    Documenti: man:smbd(8) man:samba(7) man:smb.conf(5) Processo: 1037 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS) PID principale: 1053 (smbd) Stato: "smbd: connessioni pronte per servire..."
    Attività: 4 (limite: 9258)





    Memoria: 105.4M
    CGroup: /system.slice/smbd.service
    ├─1053 /usr/sbin/smbd --primo piano -- no-process-group ├─1304 /usr/sbin/smbd --foreground --no-process-group ├─1305 /usr/sbin/smbd --foreground --no-process-group └─3231 /usr/sbin/smbd --foreground --no-process-group

    Jan 26 11:09:46 nas systemd[1]: Avvio di Samba SMB Daemon ...
    26 gen 11:09:52 nas systemd[1]: Avviato Samba SMB Daemon.
    Jan 26 11:09:52 nas smbd[1053]: [2024/01/26 11:09:52.195555, 0] .. /.. /lib/util/become_daemon.c:135(daemon_ready)
    Jan 26 11:09:52 nas smbd[1053]: daemon_ready: demone 'smbd' ha terminato l'avvio ed è pronto per servire le connessioni
    root@nas:~# systemctl status smbd● smbd.service - Demone
    SMB Samba Loaded: caricato (/lib/systemd/system/smbd.service
    ; abilitato; vendor preset: abilitato) Attivo: attivo (in esecuzione)
    dal Fri 2024-01-26 11:09:52 CET; 2min 19s fa
    Documenti: man:smbd(8) man:samba(7) man:smb.conf(5) Processo: 1037 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS) PID principale: 1053 (smbd) Stato: "smbd: connessioni pronte per servire..."
    Attività: 4 (limite: 9258)





    Memoria: 105.4M
    CGroup: /system.slice/smbd.service
    ├─1053 /usr/sbin/smbd --primo piano -- no-process-group ├─1304 /usr/sbin/smbd --foreground --no-process-group ├─1305 /usr/sbin/smbd --foreground --no-process-group └─3231 /usr/sbin/smbd --foreground --no-process-group

    Jan 26 11:09:46 nas systemd[1]: Avvio di Samba SMB Daemon ...
    26 gen 11:09:52 nas systemd[1]: Avviato Samba SMB Daemon.
    Jan 26 11:09:52 nas smbd[1053]: [2024/01/26 11:09:52.195555, 0] .. /.. /lib/util/become_daemon.c:135(daemon_ready)
    Jan 26 11:09:52 nas smbd[1053]: daemon_ready: demone 'smbd' ha terminato l'avvio ed è pronto per servire le connessioni
    root@nas:~# systemctl status nmbd.service● nmbd.service - Demone
    Samba NMB Loaded: caricato (/lib/systemd/system/nmbd.service
    ; disabilitato; preset fornitore: abilitato) Attivo: inattivo (morto)
    Documenti: man:nmbd(8) man:samba(7) man:smb.conf(5)


    no, è necessario configurare il server DHCP per servire l'IP pihole come un server DNS.


    PD: Non puoi avere 2 server dhcp, quindi devi decidere se usare il tuo router o pihole come server dhcp.


    e ricorda che OMV non può avere PIHOLE IP come DNS perché è un servizio in OMV, quindi puoi usare 8.8.8.8 su OMV e PIHOLE IP su altre macchine.

    Ok

    thank you very much now after your precious help everything works... now the only thing I want to do is that all the clients of the local network pass through pihole... do I have to set something on pihole??

    si prega di creare prima il macvlan su compose webGUI e poi utilizzare il mio pihole.yml come riferimento


    si chiama MyMacVlan nel mio esempio.

    Ho provato a eseguire pihole senza un MacVLan o un bridge (in una VM) e non si legava alla porta 53, quindi non funzionava. Non ho esaminato il problema fino a fondo, ho solo eseguito un MacVLan con docker e un bridge con una VM. Lo svantaggio di un MacVLan è che la macchina che esegue il docker non può connettersi a pihole. C'è un modo per configurarlo in modo che possa collegarsi al foro MacVLan per DNS, l'ho configurato una volta ma da allora non l'ho più fatto. Se si esegue pihole in una macchina virtuale con un bridge (br0), l'host può usarlo. In realtà preferisco eseguirlo in una piccola VM, Debian 12 e installato direttamente (non in docker), lo trovo più resiliente alle disconnessioni di rete. La macchina virtuale si adatta a un'immagine da 3 GB e utilizza meno di 300 MB di RAM durante l'esecuzione senza quasi alcun impatto sull'utilizzo della CPU.

    Ok

    Under Services/Compose/Network you create a macVLAN and map it in the compose file of pihole. Here's an example of a pihole yml using a macvlan network called "pinet".


    How to set up a vlan interface is described here (below): https://wiki.omv-extras.org/do…v6_plugins:docker_compose

    thanks... I'll try it and see what happens

    I've given up using Pihole on Docker in OMV. Because of my solar system, I wanted to have internet available at all times. But the NAS doesn't. Due to power consumption, OMV should only be available when it is needed. Nobody needs that at night. In the summer, there are also many periods when no one accesses the NAS. I outsourced Pihole/Unbound to a Dell Wyse 3040, consuming about 24 Wh per day (about 9kWh per year). The consumption is more than sufficiently compensated by the autoshutdown of the OMV server or you save electricity. If you use a Pi Zero 2 instead of a Dell Wyse 3040, the power consumption is even lower. So I'm satisfied. Pihole does not affect the local network.

    so it's fine... thanks... but do I have to create a virtual network in the compose file to avoid having problems?? also because I use qbittorent a lot and then I have a Wireguard VPN that I use with OMV

    being on topic... I would also like to install pihole with docker compose... but I have doubts!!

    1 I have a router inside my house that connects to a manager modem

    2 I have services on my Nas Omv in my home network such as Qbitorrent Jellyfin etc...

    3 I want all the devices connected to my local network to have no connection problems... on the contrary

    4 I also have home assistants in my network who manage my home automation..

    Could someone help me get pihole without making my life impossible on the internet?? sorry I'm inexperienced

    scusate per la mia ignoranza. Ma a cosa serve Fail2Ban?