1

ipset add temp_hosts 192.168.2.123 timeout 3600
ipset add temp_hosts 192.168.1.0/24 timeout 3600
This accomplishes your first goal, but you need to have a save and load in place if you want this to persist across reboots.
If you had systemd installed
create afile named "/usr/lib/systemd/syste...