Hi All,
Scenario
I want check a single ipsec tunnel and if down, flush his sa
in this tunnel I can connect only in web server exposed over proxy and with system auth. (no login page)
my solutions
for check I used Telnet on web port 8080 (no fetch, no ping, … )
1st script
:global CHKAPI
:set CHKAPI “start”
/system telnet address=x.x.x.x port=8080;
/ip ipsec installed-sa flush;
:log warning “VPN API DOWN flush SA”
:set CHKAPI stop2nd script
:global CHKAPI
delay 10s
:if ($CHKAPI = “start”) do= {
delay 30s
/system script job remove [/system script job find script=“CHK_API”];
:set CHKAPI stop
}I tested It from terminal sys script run script_name
and are OK but when i scheduled or run by winbox task script RUN
the telnet don’t run … ![]()
I tested on rb2011, rb750, x86 on many routeros version from 5.15 -6.15
Help Me please
How can I solve for me is very important to check that the vpn and web server is ok
Ths
Senzatempo