nemke
1
Hello
Can someone tell why this script don;t work ? Hex S v6.48.3
:if ([/interface sstp-client get “VPN1” running]=true) do={ /interface l2tp-client set disabled=yes “VPN2”} else={:log warning “VPN1 NOT running…starting VPN2 connection”; :/interface l2tp-client set disabled=no “VPN2”;};
Yes, it does not work because without good layout you do not understand a star about what is written inside.
cleaning from useless, superfluous and errors:
/interface
:if ([get "VPN1" running]) do={
:log warning "SSTP VPN1 running again, L2TP VPN2 is disactivating"
disable "VPN2"
} else={
:log error "SSTP VPN1 not running, L2TP VPN2 is activating"
enable "VPN2"
}