Community discussions

MikroTik App
 
atheros
just joined
Topic Author
Posts: 22
Joined: Thu Feb 23, 2006 10:23 am
Location: BALI - INDONESIA

Disabling NAT when ping or pppoe client is not respon

Wed Aug 06, 2008 5:41 am

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
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26822
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Disabling NAT when ping or pppoe client is not respon

Wed Aug 06, 2008 1:16 pm

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

Who is online

Users browsing this forum: No registered users and 6 guests