Posted: Wed Jun 22, 2022 15:35 Post subject: Script for MAC whitelist/static ips
Did a little searching and looked at the Wiki for scripts, but didn't find anything...
Anyone have a script that can read a text/csv on boot from usb/jffs2 and auto populate a MAC white list (and any any static reservations)?
i.e.
Hostname,MAC,IPAddress(optional),Comment(optional)?
Having added several wifi devices, it'd be nice to not have to manange backup/restore of static_leases any time I upgrade firmware, and nice to have known host names for any active clients under the Lan status page (most are *).
I guess it specifically depends on how much nvram usage you have, whether a reset is required or not. There are only specific nvram variables to worry about if a reset is actually warranted during troubleshooting. _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
I guess it specifically depends on how much nvram usage you have, whether a reset is required or not. There are only specific nvram variables to worry about if a reset is actually warranted during troubleshooting.
As the title says, I'm looking for a script. I know how to set static IPS manually and have a MAC address whitelist. It'd be nice to have a single source to populate all this...