Script proxy

i want script to disable or enable nat when the internet stop..i have webserver..when the internet stop i enable nat to show to customer html page..
sory of my english..

I am not entirely sure what you are trying to do. Can you provide some more details? Network setup? etc.

with netwach tool you can does this.

in up, you can disable the rule
in down you can enable the rule

for enable/disable you can use find like this

ip firewall nat enable [find comment=webserver]

ip firewall nat disable [find comment=webserver]