Hi there!
i’d like to have a script that alert me when lt2p is down, and disable my NAT masquerade rule. Plus is to alert me by email
i had try with this:
name="test" owner="admin" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon last-started=aug/28/1970 04:46:16 run-count=4 source=
:if ( [/interface l2tp-server get number=0 running] = true ) do={
ip firewall nat set 0 disabled=yes
ip firewall nat set 1 disabled=yes
/tool e-mail send \
to="somemail@example.com" from=somemail@example.com \
subject=([/system identity get name] . "alert l2tp") \
server=myserveripaddress
}
}
when try to run, nothing happens and any error happens
any idea?