Hello. I have an Asus GS-AX3000 and connected to it I have a device that insists upon having an internet connection (don't know why) about every 30 days. If it does not, it simply stops functioning and starts beeping all the time. Otherwise, I have no reason at all to allow this device to have internet access. So using the AsusWRT UI I can block it. But after about 30 days, I have to unblock it (and seemingly restart the firewall as well) in order to make it function and stop its infernal beeping and then block it again after that.
This is all rather a PIA to do manually and if I am not around, the device is useless until I get back and do all of this. So I want to try and do this via the command line on a schedule somehow. I have seen other discussions of this on the web but I have failed to location a really clear solution. I know now that when the device is blocked I can see the following using iptables -L for the device (no such entry exists when the device is unblocked):
DROP all -- anywhere anywhere MAC <<mac address here in ALL CAPS>>
So I am thinking that using iptables somehow I can drop this, restart the firewall, and re-add it. And perhaps I can use cron to schedule this every 29 days.
But I am such a newbie - especially to iptables - I have no idea how to accomplish this. So any help is appreciated greatly. Thanks!
This is all rather a PIA to do manually and if I am not around, the device is useless until I get back and do all of this. So I want to try and do this via the command line on a schedule somehow. I have seen other discussions of this on the web but I have failed to location a really clear solution. I know now that when the device is blocked I can see the following using iptables -L for the device (no such entry exists when the device is unblocked):
DROP all -- anywhere anywhere MAC <<mac address here in ALL CAPS>>
So I am thinking that using iptables somehow I can drop this, restart the firewall, and re-add it. And perhaps I can use cron to schedule this every 29 days.
But I am such a newbie - especially to iptables - I have no idea how to accomplish this. So any help is appreciated greatly. Thanks!