Alekxsandr Posted February 8, 2022 Posted February 8, 2022 (edited) Hi! I need dynamical manipulation of ip static - checking link to some peer (if no ping, change peer) for example, I have web server on 192.168.1.2 Router check ping every minute (cron?) if ping fails, i need to reconfigure port forwarding (no ip static tcp ... , ip static tcp ..) My question: 1. Is it possible to use cron (or some else) to run my shell script periodically? 2. How to call CLI configuration commands from Shell script? Edited February 8, 2022 by Alekxsandr adding tags Quote
0 Alekxsandr Posted February 11, 2022 Author Posted February 11, 2022 Hi! Everything else looks easy. Just one problem: ndmq -p "ip static ..." not works because no ndmq installed How can it be installed? Help me please Quote
0 sergeyk Posted February 11, 2022 Posted February 11, 2022 2 минуты назад, Alekxsandr сказал: How can it be installed? https://forum.keenetic.com/topic/4002-ad-blocking/#comment-140238 Quote
0 Alekxsandr Posted February 11, 2022 Author Posted February 11, 2022 (edited) Wow! Thank you! Works well! Edited February 11, 2022 by Alekxsandr add/ remove works well with REST API !!!!!! 1 Quote
Question
Alekxsandr
Hi!
I need dynamical manipulation of ip static - checking link to some peer (if no ping, change peer)
for example, I have web server on 192.168.1.2
Router check ping every minute (cron?)
if ping fails, i need to reconfigure port forwarding (no ip static tcp ... , ip static tcp ..)
My question:
1. Is it possible to use cron (or some else) to run my shell script periodically?
2. How to call CLI configuration commands from Shell script?
adding tags
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.