Scripting on RouterOS For fun and $profit - MUM - MikroTik
Scripting on RouterOS For fun and $profit - MUM - MikroTik
Scripting on RouterOS For fun and $profit - MUM - MikroTik
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Advanced <str<strong>on</strong>g>Scripting</str<strong>on</strong>g> Example:<br />
breakdown 5/5<br />
Compare the current <strong>and</strong> the new address.<br />
If they d<strong>on</strong>'t match, the interface address needs to be<br />
updated to c<strong>on</strong>nect to the new server.<br />
:if ($currentvpnip != $newvpnip) do={/interface pptp-client<br />
set [find name=$vpninterface] c<strong>on</strong>nect-to=$newvpnip}<br />
...