Disabling NAT when ping or pppoe client is not respon
Posted: Wed Aug 06, 2008 5:41 am
by atheros
Anyone can help how to scripting to disabling one of nat rule, when the ping not respon or the pppoe client is not running...
tx
Re: Disabling NAT when ping or pppoe client is not respon
Posted: Wed Aug 06, 2008 1:16 pm
by normis
should be very easy.
1. make a script that contains "/ip firewall nat disable "comment" and save it into system scripts. also make a script that will enable the same rule
2. then make a new "tool netwatch" rule. it will ping a certain IP, and when it will go down, will execute the new script (down-script). also specify the up-script - this one will enable your rule when that IP is up