Community discussions

MikroTik App
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

NTP do not work - (ex: How do I download previous versions of WINBOX?)

Tue Sep 06, 2022 1:03 pm

Sirs,
How do I download previous versions of WINBOX?
Thanks for your help.



EL DONCITO.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5478
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 1:25 pm

Why would you want to use an older version ?

AFAIK there is no download archive for winbox, for packages/ROS there is.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 1:37 pm

Use search function on forum, someone have already reply...

viewtopic.php?p=946278&hilit=old+winbox+version#p946278
 
holvoetn
Forum Guru
Forum Guru
Posts: 5478
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 3:07 pm

Damn ... and I replied to that one ... :shock:
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 4:46 pm

I want to downgrade my RB and leave it in version 6.40,

What is the version of winbox to use?




EL DONCITO.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 4:50 pm

I would agree with the "Why?" question.
For future reference, there is no reason that you can't keep older versions as new ones come out. In my case, when a new one comes out, I rename the previous version and then download the new version. I just looked, on this computer, I have 3.31, 3.32. 3.34, 3.35, 3.36, and the current 3.37. Since each version is a simple .exe file as opposed to an installer, having multiple versions is not a problem. Once in a while, I delete some of the older versions.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 9:30 pm

Friends, what version of WINBOX should I use to be able to downgrade to V 6.40 of my Roterboard?





EL DONCITO.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5478
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 10:23 pm

Latest.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 10:33 pm

And why in the world using the old and outdated 6.40 ?
If you need 6.x, go for latest Long Term version 6.48.6
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Tue Sep 06, 2022 11:02 pm

My RB has problems synchronizing the time in the NTP server, that's why I want to downgrade to another version, do you understand me?




EL DONCITO.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5478
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 1:42 am

And what makes you think downgrading will solve that ??
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 2:23 am

And how do i solve it?



EL DONCITO.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 2:38 am

And how do i solve it?
How about telling us what it's actually doing - or not doing. Second is include your configuration so we're not guessing what you did to screw it up. To export and paste your configuration (and I'm assuming you are using WebFig or Winbox), open a terminal window, and type (without the quotes) "/export hide-sensitive file=any-filename-you-wish". Then open the files section and right click on the filename you created and select download in order to download the file to your computer. It will be a text file with whatever name you saved to with an extension of .rsc. Suggest you then open the .rsc file in your favorite text editor and redact any sensitive information. Then in your message here, click the code display icon in the toolbar above the text entry (the code display icon is the 7th one from the left and looks like a square with a blob in the middle). Then paste the text from the file in between the two code words in brackets.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 4:19 am

This is my configuration

# sep/06/2022 21:15:47 by RouterOS 6.48.6
# software id = F6M9-CKU1
#
# model = 750GL
# serial number = 3B0502AB4175
/interface bridge
add comment="ETHERT 3 - 5" fast-forward=no name=PUENTE
/interface ethernet
set [ find default-name=ether1 ] name="ETHERT 1"
set [ find default-name=ether2 ] name="ETHERT 2"
set [ find default-name=ether3 ] name="ETHERT 3"
set [ find default-name=ether4 ] name="ETHERT 4"
set [ find default-name=ether5 ] name="ETHERT 5"
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip firewall layer7-protocol
add comment=str name=currentIP regexp=190.78.178.156
/ip hotspot profile
add dns-name=cyberenkas.com hotspot-address=192.168.20.1 \
    http-cookie-lifetime=6h name=hsprof1
/ip pool
add name=dhcp_pool0 ranges=192.168.20.2-192.168.20.14
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface="ETHERT 2" name=dhcp1
/ip hotspot
add address-pool=dhcp_pool0 addresses-per-mac=1 disabled=no interface=\
    "ETHERT 2" name=hotspot1 profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] address-pool=dhcp_pool0 mac-cookie-timeout=10s
add address-pool=dhcp_pool0 keepalive-timeout=5s mac-cookie-timeout=1h30m \
    name=30min on-login=":local comment \"CONECTADO\"\r\
    \n:local userprofile [ip hotspot user get [find where name=\"\$user\"] pro\
    file]\r\
    \n\r\
    \n:if ([/ip hotspot user get \$user comment]=\"\") do={[/ip hotspot user s\
    et \$user comment=\$comment]}\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove \\\
    \"\$user\\\" \\r\\\r\
    \n  \\n/ip hotspot cookie remove [find where user=\\\"\$user\\\"] \\r\\\r\
    \n  \\n/system scheduler remove [find where name=\\\"\$user\\\"] \\r\\\r\
    \n  \\n\\r\\\r\
    \n\" interval= [/ip hotspot user profile get [find where name=\"\$userprof\
    ile\"] mac-cookie-timeout]]" rate-limit=256k/768k
add address-pool=dhcp_pool0 keepalive-timeout=5s mac-cookie-timeout=3h name=\
    1hora on-login=":local comment \"CONECTADO\"\r\
    \n:local userprofile [ip hotspot user get [find where name=\"\$user\"] pro\
    file]\r\
    \n\r\
    \n:if ([/ip hotspot user get \$user comment]=\"\") do={[/ip hotspot user s\
    et \$user comment=\$comment]}\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove \\\
    \"\$user\\\" \\r\\\r\
    \n  \\n/ip hotspot cookie remove [find where user=\\\"\$user\\\"] \\r\\\r\
    \n  \\n/system scheduler remove [find where name=\\\"\$user\\\"] \\r\\\r\
    \n  \\n\\r\\\r\
    \n\" interval= [/ip hotspot user profile get [find where name=\"\$userprof\
    ile\"] mac-cookie-timeout]]" rate-limit=256k/768k
add address-pool=dhcp_pool0 keepalive-timeout=5s mac-cookie-timeout=6m name=\
    5min on-login=":local comment \"CONECTADO\"\r\
    \n:local userprofile [ip hotspot user get [find where name=\"\$user\"] pro\
    file]\r\
    \n\r\
    \n:if ([/ip hotspot user get \$user comment]=\"\") do={[/ip hotspot user s\
    et \$user comment=\$comment]}\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove \\\
    \"\$user\\\" \\r\\\r\
    \n  \\n/ip hotspot cookie remove [find where user=\\\"\$user\\\"] \\r\\\r\
    \n  \\n/system scheduler remove [find where name=\\\"\$user\\\"] \\r\\\r\
    \n  \\n\\r\\\r\
    \n\" interval= [/ip hotspot user profile get [find where name=\"\$userprof\
    ile\"] mac-cookie-timeout]]" rate-limit=256k/768k
add address-pool=dhcp_pool0 keepalive-timeout=5s mac-cookie-timeout=6m name=\
    TEST on-login=":local comment \"CONECTADO\"\r\
    \n:local userprofile [ip hotspot user get [find where name=\"\$user\"] pro\
    file]\r\
    \n\r\
    \n:if ([/ip hotspot user get \$user comment]=\"\") do={[/ip hotspot user s\
    et \$user comment=\$comment]}\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove \\\
    \"\$user\\\" \\r\\\r\
    \n  \\n/ip hotspot cookie remove [find where user=\\\"\$user\\\"] \\r\\\r\
    \n  \\n/system scheduler remove [find where name=\\\"\$user\\\"] \\r\\\r\
    \n  \\n\\r\\\r\
    \n\" interval= [/ip hotspot user profile get [find where name=\"\$userprof\
    ile\"] mac-cookie-timeout]]" rate-limit=256k/768k
/queue simple
add burst-limit=512k/3M burst-threshold=256k/1M burst-time=16s/16s name=\
    SERVIDOR target=192.168.1.100/32
add burst-limit=512k/3M burst-threshold=256k/1M burst-time=16s/16s name=WI-FI \
    target=192.168.1.254/32
add max-limit=768k/3072k name="PC 01" target=192.168.1.101/32
add max-limit=768k/3072k name="PC 02" target=192.168.1.102/32
add max-limit=768k/3072k name="PC 03" target=192.168.1.103/32
add max-limit=768k/3072k name="PC 06" target=192.168.1.106/32
add max-limit=768k/3072k name="PC 04" target=192.168.1.104/32
add max-limit=768k/3072k name="PC 05" target=192.168.1.105/32
add max-limit=768k/3072k name="PC 07" target=192.168.1.107/32
add max-limit=768k/3072k name="PC 10" target=192.168.1.110/32
/interface bridge port
add bridge=PUENTE interface="ETHERT 3"
add bridge=PUENTE interface="ETHERT 5"
/ip settings
set accept-source-route=yes secure-redirects=no
/ip address
add address=192.168.1.1/24 interface=PUENTE network=192.168.1.0
add address=192.168.20.1/28 comment=FICHAS interface="ETHERT 2" network=\
    192.168.20.0
/ip cloud
set update-time=no
/ip dhcp-client
add disabled=no interface="ETHERT 1" use-peer-dns=no use-peer-ntp=no
/ip dhcp-server config
set store-leases-disk=6h
/ip dhcp-server network
add address=192.168.20.0/28 gateway=192.168.20.1
/ip dns
set allow-remote-requests=yes cache-size=512KiB servers=1.1.1.1,1.0.0.1
/ip firewall address-list
add address=192.168.1.101-192.168.1.111 list="BLOQUEO CYBER"
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=drop chain=input comment="BLOQUEAR CONECCIONES INVALIDAS" \
    connection-state=invalid
add action=accept chain=input comment="PERMITIR CONECCIONES ESTABILIZADAS" \
    connection-state=established
add action=accept chain=input comment="PERMITIR CONECCIONES RELACIONADAS" \
    connection-state=established,related
/ip firewall mangle
add action=accept chain=prerouting comment="Cadena Bancos" dst-port=\
    443,8000-9000 protocol=tcp
add action=change-ttl chain=postrouting comment="BLOQUEO DE BLUETOOTH" \
    dst-address=192.168.20.0/28 new-ttl=set:1 passthrough=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat out-interface="ETHERT 1"
add action=dst-nat chain=dstnat comment="BLOQUEAR PORNO" dst-port=53 \
    protocol=udp src-address-list="BLOQUEO CYBER" to-addresses=208.67.222.123 \
    to-ports=53
add action=redirect chain=dstnat comment="DNS CACHE" dst-port=53 protocol=udp \
    to-ports=53
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=192.168.20.0/28
/ip hotspot user
add limit-uptime=30m name=thall profile=30min server=hotspot1
add limit-uptime=30m name=catch profile=30min server=hotspot1
add limit-uptime=30m name=tione profile=30min server=hotspot1
add limit-uptime=30m name=nefol profile=30min server=hotspot1
add limit-uptime=30m name=intsm profile=30min server=hotspot1
add limit-uptime=30m name=riblu profile=30min server=hotspot1
add limit-uptime=30m name=nsuck profile=30min server=hotspot1
add limit-uptime=30m name=oging profile=30min server=hotspot1
add limit-uptime=30m name=nclop profile=30min server=hotspot1
add limit-uptime=30m name=inght profile=30min server=hotspot1
add limit-uptime=30m name=sleet profile=30min server=hotspot1
add limit-uptime=30m name=erier profile=30min server=hotspot1
add limit-uptime=30m name=teran profile=30min server=hotspot1
add limit-uptime=30m name=epali profile=30min server=hotspot1
add limit-uptime=1h name=tiono profile=1hora server=hotspot1
add limit-uptime=1h name=urnme profile=1hora server=hotspot1
add limit-uptime=1h name=riate profile=1hora server=hotspot1
add limit-uptime=1h name=screp profile=1hora server=hotspot1
add limit-uptime=1h name=ypere profile=1hora server=hotspot1
add limit-uptime=1h name=lotea profile=1hora server=hotspot1
add limit-uptime=1h name=ingst profile=1hora server=hotspot1
add limit-uptime=1h name=vende profile=1hora server=hotspot1
add limit-uptime=1h name=rpalc profile=1hora server=hotspot1
add limit-uptime=1h name=ownes profile=1hora server=hotspot1
add limit-uptime=1h name=dmass profile=1hora server=hotspot1
/ip proxy
set max-fresh-time=10s
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=America/Caracas
/system identity
set name="CYBER ENK\B4AS"
/system note
set show-at-login=no
/system ntp client
set enabled=yes primary-ntp=186.118.171.88 secondary-ntp=177.91.160.90
/system scheduler
add interval=1d name="LIMPIAR LOG DIARIAMENTE" on-event="/system logging actio\
    n\r\
    \nset [find where target=memory] memory-lines=1\r\
    \n:delay 1s\r\
    \nset [find where target=memory] memory-lines=1000" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=dec/01/2018 start-time=00:00:00
add disabled=yes name=PRUEBA on-event=":local Run false\r\
    \n\r\
    \n:do {\r\
    \n\r\
    \n    :local time [/system clock get time]\r\
    \n    :local message (\"\$time PREPARATE PARA ALMORZAR\")\r\
    \n    :if (\$time >= 10:55:00 and \$time <= 10:55:10) do={:set message (\"\
    \$time ES HORA DE ALMORZAR\")}\r\
    \n    :if (\$time > 10:55:10) do={:set message (\"\$time ES HORA DE REPOSA\
    R EL ALMUERZO\")}\r\
    \n    :put \$message\r\
    \n\r\
    \n    :delay 10ms\r\
    \n\r\
    \n} while=(!\$Run)\r\
    \n" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=may/26/2022 start-time=15:20:30
add disabled=yes interval=10s name=SESIONES-5-MINUTOS on-event="/ip hotspot us\
    er remove [find where uptime=00:05:00 and limit-uptime=00:05:00]\r\
    \n" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=dec/01/2018 start-time=00:00:00
add interval=10s name="(LIBERAR IP)" on-event=\
    ":if ([/ping 1.1.1.1 count=6] = 0) do={/ip dhcp-client release [find]}" \
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=dec/01/2018 start-time=00:00:00
add name=firtsstartup.txt on-event=":delay 15m\r\
    \n\r\
    \n:local file \"firtsstartup.txt\"\r\
    \n:local intGoff [:tonum [/system clock get gmt-offset]]\r\
    \n:if (\$intGoff > 86400) do={:set intGoff ((4294967296 - \$intGoff) * -1)\
    }\r\
    \n:local epochNow (([/tool fetch url=\"https://helloacm.com/api/unix-timestamp-converter/\\3Fs=now\" as-value output=user])->\"data\")\r\
    \n:local upTime [/system resource get uptime]\r\
    \n:local wPos   [:find \$upTime \"w\" -1]\r\
    \n:local dPos   [:find \$upTime \"d\" -1]\r\
    \n:local utLen  [:len \$upTime]\r\
    \n:local utSec  [:pick \$upTime (\$utLen - 2) \$utLen]\r\
    \n:local utMin  [:pick \$upTime (\$utLen - 5) (\$utLen - 3)]\r\
    \n:local utHou  [:pick \$upTime (\$utLen - 8) (\$utLen - 6)]\r\
    \n:local utDay  0\r\
    \n:local utWee  0\r\
    \n:if (([:typeof \$wPos] = \"nil\") and ([:typeof \$dPos] = \"num\")) do={\
    :set utDay [:pick \$upTime 0 \$dPos] }\r\
    \n:if (([:typeof \$wPos] = \"num\") and ([:typeof \$dPos] = \"num\")) do={\
    :set utDay [:pick \$upTime (\$wPos + 1) \$dPos] }\r\
    \n:if ([:typeof \$wPos] = \"num\") do={:set utWee [:pick \$upTime 0 \$wPos\
    ] }\r\
    \n:local totUtSec (\$utSec + (60 * \$utMin) + (60 * 60 * \$utHou) + (60 * \
    60 * 24 * \$utDay) + (60 * 60 * 24 * 7 * \$utWee))\r\
    \n:local epochStart (\$epochNow - \$totUtSec + \$intGoff)\r\
    \n:local datetimeStart (([/tool fetch url=\"https://helloacm.com/api/unix-timestamp-converter/\\3Fs=\$epochStart\" as-value output=use\
    r])->\"data\")\r\
    \n:set datetimeStart [:pick \$datetimeStart 1 ([:len \$datetimeStart] - 1)\
    ]\r\
    \n:local year   [:pick \$datetimeStart 0 4]\r\
    \n:local month  [:pick \$datetimeStart 5 7]\r\
    \n:local day    [:pick \$datetimeStart 8 10]\r\
    \n:local hms    [:pick \$datetimeStart 11 19]\r\
    \n:local mhours [:tonum [:pick \$hms 0 2]]\r\
    \n:local minsec [:pick \$hms 2 8]\r\
    \n:local msymbl \"am\"\r\
    \n:if (\$mhours > 11) do={:set msymbl \"pm\"}\r\
    \n:set mhours (\$mhours % 12)\r\
    \n:if (\$mhours = 0) do={:set mhours 12}\r\
    \n:if (\$mhours < 10) do={:set mhours \"0\$mhours\"}\r\
    \n:local date \"\$day/\$month/\$year\"\r\
    \n:local time \"\$mhours\$minsec \$msymbl\"\r\
    \n:local started \"****************************\\r\\n LA LUZ LLEGO EL: \$d\
    ate\\r\\n     A LAS: \$time\\r\\n ELABORADO POR  FRANK MU\D1OZ\\r\\n******\
    **********************\"\r\
    \n/file\r\
    \n:if ([:len [find where name=\$file]] = 0) do={print file=\$file; :delay \
    5; set \$file contents=\"\"}\r\
    \nset \$file contents=\$started" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-time=startup
add interval=1m name="HISTORIAL DE IPs" on-event="         /system clock\r\
    \n         :local itime  [get time]\r\
    \n         :local hours  [:pick \$itime 0 2]\r\
    \n         :local minsec [:pick \$itime 2 8]\r\
    \n         :local mhours [:tonum \$hours]\r\
    \n         :local msymbl \"am\"\r\
    \n         :if (\$mhours > 11) do={:set msymbl \"pm\"}\r\
    \n         :set mhours (\$mhours % 12)\r\
    \n         :if (\$mhours = 0) do={:set mhours 12}\r\
    \n         :if (\$mhours < 10) do={:set mhours \"0\$mhours\"}\r\
    \n         :local mtime \"\$mhours\$minsec \$msymbl\"\r\
    \n         :local data   [get date]\r\
    \n         :local day    [:pick \$data 4 7]\r\
    \n         :local arrMonths {jan=\"01\";feb=\"02\";mar=\"03\";apr=\"04\";m\
    ay=\"05\";jun=\"06\";jul=\"07\";aug=\"08\";sep=\"09\";oct=\"10\";nov=\"11\
    \";dec=\"12\"}\r\
    \n         :local months (\$arrMonths->[:pick \$data 0 3])\r\
    \n         :local year   [:pick \$data 6 11] \r\
    \n         :local adata \"\$day\$months\$year\"\r\
    \n         :local now \"HORA:\$mtime   FECHA: \$adata\"\r\
    \n         :local filenameIP \"iphistory.txt\"\r\
    \n         \r\
    \n    /file\r\
    \n    :if ([:len [find where name=\"flash\" and type=\"disk\"]] = 1) do={:\
    set filenameIP \"flash/\$filenameIP\"}\r\
    \n    :if ([:len [find where name=\$filenameIP]] = 0) do={print file=\"\$f\
    ilenameIP\"; :delay 5s; set \$filenameIP contents=\"\"}\r\
    \n\r\
    \n    :global currentIP\r\
    \n    :local newIP [/ip address get [find where interface=\"ETHERT 1\"] ad\
    dress]\r\
    \n    :set newIP [:pick \$newIP 0 [:find \$newIP \"/\" -1]]\r\
    \n    :if (\$newIP != \$currentIP) do={\r\
    \n\r\
    \n    /file\r\
    \n    :delay 4s\r\
    \n    :local filecontent [get \$filenameIP contents]\r\
    \n    :local newfilecontent \"********************************************\
    ************************\\r\\nNUEVA IP:     \$newIP\\t\$now\\r\\n\$filecon\
    tent\"\r\
    \n    set \$filenameIP contents=\$newfilecontent\r\
    \n    :set currentIP \$newIP\r\
    \n    \r\
    \n#PARA GUARDAR VARIABLES GLOBALES\r\
    \n\r\
    \n/system script environment\r\
    \n:foreach item in=[find] do={\r\
    \n    :local vname  [get \$item name]\r\
    \n    :local vvalue [get \$item value]\r\
    \n    :if (\$vvalue~\"^\\\\*\")           do={:set vvalue \"ID\$vvalue\"}\
    \r\
    \n    :if (\$vvalue~\"\\\\(eval|evl) \")  do={:set vvalue \"(function)\"}\
    \r\
    \n    /ip firewall layer7\r\
    \n    remove [find where name=\$vname]\r\
    \n    add name=\$vname regex=\"\$vvalue\"\r\
    \n    :delay 10ms\r\
    \n    :execute \"/ip firewall layer7 set [find where name=\$vname] comment\
    =[:typeof \\\$\$vname]\"\r\
    \n    :if (\$vvalue=\"(code)\")     do={:delay 10ms ; set [find where name\
    =\$vname] comment=\"code\"}\r\
    \n    :if (\$vvalue=\"(function)\") do={:delay 10ms ; set [find where name\
    =\$vname] comment=\"function\"}\r\
    \n}\r\
    \n\r\
    \n}" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=dec/01/2018 start-time=00:00:00
add name="CORTE ELECTRICO" on-event=":delay 15m\r\
    \n\r\
    \n:local stopRouterRun false\r\
    \n\r\
    \n/system clock\r\
    \n:local time       [get time]\r\
    \n:local hours      [:pick \$time 0 2]\r\
    \n:local min        [:pick \$time 3 5]\r\
    \n:local sec        [:pick \$time 6 8] \r\
    \n:local data       [get date]\r\
    \n:local day        [:pick \$data 4 6]\r\
    \n:local arrMonths  {jan=\"01\";feb=\"02\";mar=\"03\";apr=\"04\";may=\"05\
    \";jun=\"06\";jul=\"07\";aug=\"08\";sep=\"09\";oct=\"10\";nov=\"11\";dec=\
    \"12\"}\r\
    \n:local month      (\$arrMonths->[:pick \$data 0 3])\r\
    \n:local year       [:pick \$data 7 11]\r\
    \n:local file       \"electric-cut_\$hours-\$min-\$sec_\$day-\$month-\$yea\
    r.txt\"\r\
    \n\r\
    \n:do {\r\
    \n    /system clock\r\
    \n    :local itime  [get time]\r\
    \n    :local hours  [:pick \$itime 0 2]\r\
    \n    :local minsec [:pick \$itime 2 8]\r\
    \n    :local mhours [:tonum \$hours]\r\
    \n    :local msymbl \"am\"\r\
    \n    :if (\$mhours > 11) do={:set msymbl \"pm\"}\r\
    \n    :set mhours (\$mhours % 12)\r\
    \n    :if (\$mhours = 0) do={:set mhours 12}\r\
    \n    :if (\$mhours < 10) do={:set mhours \"0\$mhours\"}\r\
    \n    :local mtime \"\$mhours\$minsec \$msymbl\"\r\
    \n    :local data   [get date]\r\
    \n    :local day    [:pick \$data 4 6]\r\
    \n    :local month  (\$arrMonths->[:pick \$data 0 3])\r\
    \n    :local year   [:pick \$data 7 11]\r\
    \n    :local date   \"\$day/\$month/\$year\"\r\
    \n    \r\
    \n    :local data1 \"****************************\\r\\n      CORTE:\$date\
    \\r\\n     A LAS: \$mtime\\r\\n ELABORADO POR  FRANK MU\D1OZ\\r\\n********\
    ********************\"\r\
    \n    /file\r\
    \n    :if ([:len [find where name=\$file]] = 0) do={print file=\$file; :de\
    lay 5; set \$file contents=\"\"}\r\
    \n    set \$file contents=\$data1\r\
    \n\r\
    \n    :delay 60s\r\
    \n} while=(!\$stopRouterRun)" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-time=startup
add name="DESABILITAR HISTORIAL DE IPS" on-event=":delay 10ms \r\
    \n/system scheduler disable [find where name=\"HISTORIAL DE IPs\"]\r\
    \n\r\
    \n# PARA DEVOLVER VARIALBES GLOBALES GUARDADAS\r\
    \n\r\
    \n/ip firewall layer7\r\
    \n:foreach item in=[find where comment~\"^(array|bool|code|function|id|ip|\
    ip-prefix|ip6|ip6-prefix|nil|nothing|num|str|time)\\\$\"] do={\r\
    \n    :local vname  [get \$item name]\r\
    \n    :local vvalue [get \$item regexp]\r\
    \n    :local vtype  [get \$item comment]\r\
    \n    /system script environment\r\
    \n    remove [find where name=\$vname]\r\
    \n    :if (\$vtype~\"^(array|ip|ip6|num|str|time)\\\$\") do={\r\
    \n        :execute \":global \$vname [:to\$vtype [/ip firewall layer7 get \
    [find where name=\$vname] regexp]]\"\r\
    \n    } else={\r\
    \n        :if (\$vtype~\"^(bool|id|ip-prefix|ip6-prefix|nil|nothing)\\\$\"\
    ) do={\r\
    \n            :if (\$vtype=\"id\")           do={:execute \":global \$vnam\
    e [:toid \$[:pick \$vvalue [:find \$vvalue \"*\" -1] [:len \$vvalue]]]\"}\
    \r\
    \n            :if (\$vtype=\"bool\")         do={:execute \":global \$vnam\
    e [:tobool \$vvalue]\"}\r\
    \n            :if ((\$vtype=\"ip-prefix\") or \\\r\
    \n                 (\$vtype=\"ip6-prefix\")) do={:execute \":global \$vnam\
    e [[:parse \\\":return \$vvalue\\\"]]\"}\r\
    \n            :if (\$vtype=\"nil\")          do={:execute \":global \$vnam\
    e\"}\r\
    \n            :if (\$vtype=\"nothing\")      do={:execute \":global \$vnam\
    e [:nothing]\"}\r\
    \n        } else={\r\
    \n            # vtype=\"code\" and vtype=\"function\"\r\
    \n            :log error \"Unknow variable >\$vname< of type >\$vtype<\"\r\
    \n            :execute \":global \$vname [/ip firewall layer7 get [find wh\
    ere name=\$vname] regexp]\"\r\
    \n        }\r\
    \n    }\r\
    \n    :delay 10ms\r\
    \n}\r\
    \n" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-time=startup
add name="HABILITAR HISTORIAL DE IPS" on-event=":delay 15m\r\
    \n/system scheduler enable [find where name=\"HISTORIAL DE IPs\"]" \
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-time=startup
/system watchdog
set watchdog-timer=no




EL DONCITO.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 8:22 am

What do you get from this command in v6 and v7
/system ntp client print
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 11:36 am

Venezuela do not have public ntp server, neither private ntp server on ntp.org
Your IP are outdated, or unstable.
Refresh IPs with this:
/system ntp client
set enabled=no
:delay 2s;
set primary-ntp=[:resolve "0.south-america.pool.ntp.org"] secondary-ntp=[:resolve "1.south-america.pool.ntp.org"]
:delay 2s;
set enabled=yes
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11592
Joined: Thu Mar 03, 2016 10:23 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 11:56 am

The NTP server set as primary server (186.118.171.88) indeed seems to be dead (from Europe at least), while secondary NTP server (177.91.160.90) seems to work just fine from here.

Note to @rextended: around here ISPs normally run a NTP server or three, some even synchronized to primary time source (making them stratum 1). At the same time not many are in NTP pool. So using NTP server which is not part of pool.ntp.org is not wrong. In any case one has to verify that NTP server(s) used are actually accessible before panicking.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 12:49 pm

What do you get from this command in v6 and v7
/system ntp client print



/system ntp client> /system ntp client print
enabled: yes
primary-ntp: 177.91.160.90
secondary-ntp: 200.160.7.186
server-dns-names:
mode: unicast
poll-interval: 16s
active-server: 200.160.7.186




EL DONCITO.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 1:24 pm

Try my script,

and again do
/system ntp client print
must appear at the end:
last-update-from: xxx.xxx.xxx.xxx
last-update-before: xxxxxxxxxxxx
last-adjustment: xxxxxxxxxxxx
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 3:54 pm

I did what you told me and this appears




enabled: yes
primary-ntp: 201.217.3.85
secondary-ntp: 190.15.135.40
server-dns-names:
mode: unicast
poll-interval: 16s
active-server: 190.15.135.40




EL DONCITO.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 4:17 pm

RouterOS version???

Check if your main router do not block NTP and also if your internet provider do not block NTP like some other ISP on you area do...
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 4:45 pm

V 6.48.6 (long-term)

Behind the RB750GL I have a TP-LINK router which uses as primary NTP server 190.64.134.53 and secondary 190.15.128.72 and if it synchronizes the time normally

A question how do I post a screenshot in the thread.


EL DONCITO.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 4:51 pm

click on "Attachments" / "Add files" tab when you create (or modify) a post
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 5:01 pm

Logging could show something useful:
/system logging
add topics=ntp
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 5:57 pm

Ok


EL DONCITO.
Last edited by eldoncito2019 on Wed Sep 07, 2022 6:06 pm, edited 1 time in total.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 6:05 pm

NTP.jpg

Here is what appears in my RB



El DONCITO.
You do not have the required permissions to view the files attached to this post.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 6:14 pm

TP-LINK.jpg

and this is the TP-LINK.




EL DONCITO.
You do not have the required permissions to view the files attached to this post.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 11:50 pm

Any solution to my problem




EL DONCITO.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How do I download previous versions of WINBOX?

Wed Sep 07, 2022 11:57 pm

Have you tried trivially to put the IPs that the tp-link uses in the ntp client settings?
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I download previous versions of WINBOX?

Thu Sep 08, 2022 1:25 am

Of course I have used them and without any satisfactory answer.

What will happen?




EL DONCITO.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: How do I download previous versions of WINBOX?

Thu Sep 08, 2022 8:25 am

Do other devices get NTP? It may be that your ISP block port UDP 123. Than it will not help anything you do with your MirkoTik Router

Who is online

Users browsing this forum: elhiilkpym, waeel and 56 guests