Posts by fredfred

    Hello - beginner here - have I done this right?

    Everything works as expected but I'm not sure I have done this right?


    I have multiple gateways on my network, today my clients that uses another gateway than the default uses static ip settings and that gets cumbersome to maintain.

    My ASUS routers DHCP server does not allow the option to set different gateways on static leases...

    Enter OMV and Docker.



    So I created a stack in portainer like this for ISC DHCP server

    ---

    version: "2.1"

    services:

    dhcpd:

    image: networkboot/dhcpd

    container_name: dhcpd

    network_mode: host

    environment:

    - PUID=123

    - PGID=456

    - TZ=Europe/Stockholm

    volumes:

    - /srv/dev-disk-by-uuid-bla-bla-bla/config/dhcpd:/data

    restart: always



    I then created the definitionfile for it here /srv/dev-disk-by-uuid-bla-bla-bla/config/dhcpd/dhcpd.conf

    With this content:

    # option definitions common to all supported networks...

    option domain-name "workgroup";

    option domain-name-servers 192.168.1.199;

    default-lease-time 432000;

    max-lease-time 432001;

    authoritative;

    ddns-update-style none;


    subnet 192.168.1.0 netmask 255.255.255.0 {

    range 192.168.1.100 192.168.1.189;

    option subnet-mask 255.255.255.0;

    option routers 192.168.1.1;

    option broadcast-address 192.168.1.255;

    }


    host Static-IP-Sample {

    hardware ethernet 00:01:02:03:04:05;

    fixed-address 192.168.1.99;

    option routers 192.168.1.254;

    }

    # EOF

    I created a scheduled job in omv that runs weekly that runs the command: omv-update

    Been like this for a while now with no issues.


    I also run watchtower weekly to update my containers and that have been working just fine.


    I think lots of ppl are overthinking how to update and when, keep it simple and you will do just fine.


    Make sure you align a backup/restore strategy that that work in tandem with you updates so that IF something really bad happens there is a way out. Like I do a full backup of everything Monday night and let updates run Tuesday morning.