Sorry guys, I was busy when I was typing up that post and forgot to include the build info. Don't laugh. This is an old Buffalo WZR-HP-G450H which was using an old Buffalo build of dd-wrt 20025. If this is a build with the cron issue is there a workaround?
Sorry guys, I was busy when I was typing up that post and forgot to include the build info. Don't laugh. This is an old Buffalo WZR-HP-G450H which was using an old Buffalo build of dd-wrt 20025. If this is a build with the cron issue is there a workaround?
Well normally yes, but it's located far away and I cannot easily upgrade it. I was hoping to keep this version until I can do a hardware refresh with a R7800 and the latest build.
Posted: Fri Jan 28, 2022 18:41 Post subject: iptables additions not taking affect when updated via cron
Curious if you figured this out. Doing something similar...
If my script is run manually, it makes iptables additions as expected. The script when run via cron is running and is executing the commands, but the changes do not actually get applied. Seems similar to what you are facing.
I just tried it using a recent build (47911) and had no problem.
Once you add the cronjob, use ssh/telnet to check the file and make sure it's there and looks correct. Sometimes it's easy to make a typo in the GUI and not notice.
Code:
cat /tmp/cron.d/cron_jobs
I would use the "every minute" schedule during testing.