On 2023-04-29 14:57, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-04-29 14:11, Per Jessen wrote:
Per Jessen wrote:
I don't know how easy those inotify tools are to use, but it ought to be fairly easy to monitor for a file called 'dhclient6.*ethX.lease' being written to '/var/lib/NetworkManager/'.
Something like this maybe - explicitly not intended as a ready-to-go solution, only as inspiration:
inotifywait -m /var/lib/NetworkManager/ |\ egrep 'dhclient6[^.]+\.lease$' |\ while read nmdir events nmfile do echo $events $nmfile do-your-stuff-here done
Thanks. But that machine is on wicked,
Let me remind you - "explicitly not intended as a ready-to-go solution, only as inspiration". With wicked, you need to look in "/var/lib/wicked/", for files named "lease.*ipv6.xml".
Ok, I see it. I may use your idea to monitor the main IPv6 in the log.
and I need learn the IPs of the machines different than the current one, that originate the packets banging on the firewall.
systemctl start crystalball
Precisely my point. Per, I have to allow packets incoming to DPT=5353 from other machines, whose IP change.
I don't remember where I got them from, probably "man NetworkManager".
You are sure you read a man page?? I would go consult my doctor. Soonest, before you might read another one.
Yes, I am sure I read manuals, when they are actually indicated :-P -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)