Community discussions

MikroTik App
 
seguis
just joined
Topic Author
Posts: 7
Joined: Sun Sep 10, 2023 3:23 pm

VPN Site to site ?

Wed Dec 04, 2024 2:41 pm

Hello, good day everyone, sorry for the inconvenience, but can anyone guide me on the right path? My situation is the following, I live in Spain, but I am from Venezuela, when trying to enter my bank in Venezuela it causes problems, in addition I have my computer in Venezuela that has information and literally a VPN network is the solution, I know it is the solution, because I can pretend that I am connected from Venezuela when I actually live in Spain and I can additionally view the devices that I have connected to my network in Venezuela, the main problem is because the internet provider in Venezuela has me behind NAT, here In Spain I am with Digi and I am no longer there behind NAT, I have a public IP, my big problem arises because I understand that in order to simulate the connection as if it were in Venezuela, the "Server" must be created in Venezuela, but due to the CG-NAT problem, it does not I can, so currently I can make a connection from Venezuela (Client) to Spain (Server), in Venezuela I have a Hap AC3 device, but here in Spain I was thinking about buying a Hap AC2, and then configure so that although the server is located in Spain, me I can navigate the internet through the client (Venezuela), forgive the testament I just wrote, and I don't even know if you can understand what I want to explain, or if I am explaining myself poorly, but grateful for the help you can give me 👍

Finally, I would like to add that I thought about using Wireguard, which is the most used, fast and easy, or maybe there is a better method, I'm not sure yet.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6752
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: VPN Site to site ?

Wed Dec 04, 2024 2:50 pm

For wireguard you only need one public IP, as long as that is present, there is no problem to setup a VPN tunnel which you then can cross from the other side, there are plenty of examples how this should be done, do you have by now also the idea that use of proper interpunction and line breaks is a lot easier for anyone to read ? Please ?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VPN Site to site ?

Wed Dec 04, 2024 3:41 pm

What model of mikrotik routers do you have in Venezuela and Espana?
 
holvoetn
Forum Guru
Forum Guru
Posts: 6752
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: VPN Site to site ?

Wed Dec 04, 2024 3:53 pm

What model of mikrotik routers do you have in Venezuela and Espana?
It's hidden in the wall of text :lol:

AC3 in Venezuela, already present.
Planned to buy AC2 for Spain.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VPN Site to site ?

Wed Dec 04, 2024 4:00 pm

AX3 is much better value IMHO, but of course its your budget.
Both are capable of hosting wireguard.
Since you require the opposite from normal, need internet out of client peer router, what I would do is create two wireguard tunnels.
ONE JUST for the internet, for users on spain LAN to go out internet in venezula or just single user??
SECOND one to allow
a. lan users in spain to reach lan in venezula ( if needed )
b. lan users in venezuela to reach lan in spain ( if needed )
c. admin when at either location to reach lans of the remote site
d. admin when at either loation to reach the router for config purposes at the remote site
d. admin to reach either router from remote sites ( cafe, beach, etc from laptop/smartphone

It may be possible to simplify as how many IP addresses at spain router will need access to venezuela internet??
 
seguis
just joined
Topic Author
Posts: 7
Joined: Sun Sep 10, 2023 3:23 pm

Re: VPN Site to site ?

Wed Dec 04, 2024 5:00 pm

Thank you very much for your answers. Let me explain a little better: Here in Spain it would be for certain devices that I can choose, both Android and Windows, allowing you to connect to Venezuela and navigate as if you were in Venezuela and at the same time be able to see the devices that are connected in Venezuela, I carried out tests here in Spain with the mikrotik hap lite, but when restoring that configuration in the mikrotik hap ac3 in Venezuela it caused chaos, I suppose that not having the same version of the operating system there were problems Answering the question: I only need certain devices (Android and Laptops) to connect when I decide, I was thinking of 2 WiFi networks here in Spain, one called, for example, InternetVenezuela and the other would be InternetEspaña, which I can easily change, perhaps it is a solution or perhaps they propose a better solution? Additionally, I want the devices that are connected in Venezuela to navigate in Venezuela, I do not want them to use the Internet in Spain, or if I can select which devices and which not, much better, I am a programmer, but I do know a little about networks.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VPN Site to site ?

Wed Dec 04, 2024 5:02 pm

Hola,
That is a very good plan.
I often suggest the same, as its very easy for users to decide which country they want to access internet from ( or remote LAN devices ) by use of SSID ( different wlans ).

Very easy to setup!, once you get the device setup in spain, I can assist via skype/discord/team viewer etc..........if you run into any problems.
We should be able to handle it all here via changes to your config at both ends.
Last edited by anav on Wed Dec 04, 2024 11:26 pm, edited 1 time in total.
 
seguis
just joined
Topic Author
Posts: 7
Joined: Sun Sep 10, 2023 3:23 pm

Re: VPN Site to site ?

Wed Dec 04, 2024 9:28 pm

Hola,
That is a very good plan.
I often suggest the same, as its very easy for users to decide which country they want to access internet from ( or remote LAN devices ) by use of SSID ( different wlans ).

Very easy to setup!
You can check my name out on discord, once you get the device setup in spain, I can assist via skype/discord/team viewer etc..........if you run into any problems.
We should be able to handle it all here via changes to your config at both ends.
I tried to look for you, but I couldn't find you. Additionally, can I ask how the Mikrotik Hap Lite router could work for me? I have several units, and I am about to sell them, several times I have noticed that the processor when used at 100% heats up and also disconnects me while using Winbox, I suppose it must be the fact that it only has one core and it is no longer Good speed, let's say, in addition to the amount of RAM it has, would at least those units be useful for using Capsman only?
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: VPN Site to site ?

Wed Dec 04, 2024 9:49 pm

I understand that in order to simulate the connection as if it were in Venezuela, the "Server" must be created in Venezuela
No. The roles of the two routers in the initial negotiation of the VPN tunnel have no effect on how you will use the tunnel.

The device in Venezuela must indeed be the initiator of the VPN connection because it does not have a public address so it cannot be a responder, but then it can receive traffic from clients connected to a dedicated LAN interface of the router in Spain inside the tunnel and forward that traffic via its WAN, so the recipients will see that traffic as coming from the public address of that Venezuelan ISP.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: VPN Site to site ?

Wed Dec 04, 2024 10:18 pm

when restoring that configuration in the mikrotik hap ac3 in Venezuela it caused chaos
You cannot use backup save and backup restore to copy configurations from one device to another. You can restore a backup file only on a device of the same model like the one where you saved it, otherwise many things may break under the hood. So you may have to reset the Venezuelan ac3 to defaults and start from scratch if you did that and haven't saved a backup before starting to modify the configuration. What were the steps, and what is the current state?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21893
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VPN Site to site ?

Wed Dec 04, 2024 10:40 pm

edit, no l onger requred
 
seguis
just joined
Topic Author
Posts: 7
Joined: Sun Sep 10, 2023 3:23 pm

Re: VPN Site to site ?

Fri Dec 06, 2024 7:44 pm

This is my configuration on a router located in Spain
/interface bridge
add admin-mac=18:FD:74:2B:A7:0E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether5 ] name=OffBridge5
/interface wireguard
add listen-port=13231 mtu=1412 name=servidorWIRE
/interface vlan
add interface=ether1 name=vlan1 vlan-id=20
/interface pppoe-client
add add-default-route=yes disabled=no interface=vlan1 name=Digi user=\
    983891999@digi
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk mode=dynamic-keys name=general \
    supplicant-identity=""
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
    disabled=no distance=indoors frequency=auto installation=indoor mode=\
    ap-bridge security-profile=general ssid=GPM2.4 wireless-protocol=802.11 \
    wps-mode=disabled
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX \
    country=venezuela disabled=no distance=indoors frequency=auto installation=\
    indoor mode=ap-bridge security-profile=general ssid=GMP wireless-protocol=\
    802.11 wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=1A:FD:74:2B:A7:13 \
    master-interface=wlan2 multicast-buffering=disabled name=wlan3 ssid=\
    VpnVnzla vlan-id=50 wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=poolVnzla ranges=190.1.1.10-190.1.1.250
/ip dhcp-server
add address-pool=default-dhcp interface=bridge name=defconf
add address-pool=poolVnzla interface=wlan3 name=dhcp1
/routing table
add disabled=no fib name=To-ES-AN
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=Digi list=WAN
add interface=vlan1 list=WAN
add interface=OffBridge5 list=LAN
/interface wireguard peers
add allowed-address=::/0 endpoint-address=186.14.120.136 endpoint-port=13231 \
    interface=servidorWIRE public-key=\
    "lk17UL/5fcG3K5NYAgZT0EOOOqddtiQZrq7cJ8BZ8Ws="
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
add address=192.168.77.1/30 interface=OffBridge5 network=192.168.77.0
add address=10.0.0.1/24 comment="Direccion asignada al servidor WireGuard" \
    interface=servidorWIRE network=10.0.0.0
add address=190.1.1.1/24 comment="Direcciones IP para conectarse a Venezuela" \
    interface=wlan3 network=190.1.1.0
/ip dhcp-server network
add address=190.1.1.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=190.1.1.1
add address=192.168.88.0/24 comment=defconf dns-server=8.8.8.8,8.8.4.4 gateway=\
    192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=accept chain=input dst-port=13231 protocol=udp
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
    "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=input comment="allow LAN" in-interface-list=LAN
add action=drop chain=input comment="drop all else"
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=forward comment="internet traffic" in-interface-list=\
    LAN out-interface-list=WAN
add action=accept chain=forwrd comment="allow lan to lan for now" \
    in-interface-list=LAN out-interface-list=LAN
add action=drop chain=forward comment="drop all else"
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=!190.1.1.0/24 \
    new-routing-mark=To-ES-AN passthrough=no src-address=190.1.1.5-190.1.1.100
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
    out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="Acceso de internet a wire" \
    out-interface=servidorWIRE
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set h323 disabled=yes
set sip disabled=yes
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=servidorWIRE routing-table=\
    To-ES-AN suppress-hw-offload=no
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
    33434-33534 protocol=udp
add action=accept chain=input comment=\
    "defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
    udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
    protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
    ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
    ipsec-esp
add action=accept chain=input comment=\
    "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
    "defconf: drop everything else not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
    invalid
add action=drop chain=forward comment="defconf: drop packets with bad src ipv6" \
    src-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: drop packets with bad dst ipv6" \
    dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
    hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
    icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=500,4500 \
    protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
    ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
    ipsec-esp
add action=accept chain=forward comment=\
    "defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
    "defconf: drop everything else not coming from LAN" in-interface-list=!LAN
/system identity
set name=EspGomper
/system note
set show-at-login=no
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=LAN
This is my configuration of the router located in Venezuela, I was looking at the routes, so that people connected to the SSID (VpnVzla) can browse the internet with the Venezuelan IP, I am still trying
# dec/06/2024 13:40:15 by RouterOS 7.6
# software id = GLC9-DJ8Q
#
# model = RBD53iG-5HacD2HnD
# serial number = HDD08ABFNRT
/caps-man channel
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=XX \
    frequency=2417 name="Canal 1 2.5G"
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=XX \
    frequency=2437 name="Canal 6 2.5G"
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=XX \
    frequency=2462 name="Canal 11 2.5G"
add band=5ghz-a/n/ac extension-channel=XXXX name=5G
/caps-man datapath
add client-to-client-forwarding=yes l2mtu=1600 local-forwarding=yes mtu=1500 \
    name=LOCAL
/caps-man configuration
add channel="Canal 1 2.5G" channel.extension-channel=disabled country=\
    venezuela datapath=LOCAL hw-retries=4 installation=indoor mode=ap \
    multicast-helper=full name=2.5G ssid=VeshAccesorios
add channel=5G country="korea republic" datapath=LOCAL hw-retries=4 mode=ap \
    multicast-helper=full name=5G rates.ht-basic-mcs="" ssid=VeshAccesorios5G
/interface bridge
add name=puente
/interface ethernet
set [ find default-name=ether2 ] mac-address=74:4D:28:E5:FA:FE name=LaN2 \
    speed=100Mbps
set [ find default-name=ether3 ] mac-address=74:4D:28:E5:FA:FF name=LaN3 \
    speed=100Mbps
set [ find default-name=ether4 ] mac-address=74:4D:28:E5:FB:00 name=LaN4 \
    speed=100Mbps
set [ find default-name=ether5 ] mac-address=74:4D:28:E5:FB:01 name=LaN5 \
    speed=100Mbps
set [ find default-name=ether1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full mac-address=CC:2D:E0:B9:1D:7B name=\
    WAN speed=100Mbps
/interface wireless
# managed by CAPsMAN
# channel: 2437/20-Ce/gn(27dBm), SSID: VeshAccesorios, local forwarding
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge \
    name=wlan2.5G ssid=MikroTik
# managed by CAPsMAN
# channel: 5765/20-eCee/ac/P(24dBm), SSID: VeshAccesorios5G, local forwarding
set [ find default-name=wlan2 ] band=5ghz-onlyac channel-width=\
    20/40/80mhz-Ceee disabled=no mode=ap-bridge name=wlan5G ssid=MikroTik
/caps-man interface
add channel="Canal 6 2.5G" channel.frequency=2437 configuration=2.5G \
    datapath=LOCAL disabled=no l2mtu=1600 mac-address=18:FD:74:F4:7A:88 \
    master-interface=none mtu=1500 name=CapGomper2.5 radio-mac=\
    18:FD:74:F4:7A:88 radio-name=18FD74F47A88
add channel=5G configuration=5G datapath=LOCAL disabled=no l2mtu=1600 \
    mac-address=18:FD:74:F4:7A:89 master-interface=none mtu=1500 name=\
    CapGomper5 radio-mac=18:FD:74:F4:7A:89 radio-name=18FD74F47A89
add channel="Canal 11 2.5G" channel.band=2ghz-b/g/n .control-channel-width=\
    20mhz .frequency=2417 configuration.mode=ap .ssid=VeshAccesorios \
    datapath=LOCAL disabled=no l2mtu=1600 mac-address=64:D1:54:77:E7:74 \
    master-interface=none mtu=0 name="SALA 2.5G" radio-mac=64:D1:54:77:E7:74 \
    radio-name=64D15477E774
add channel=5G configuration=5G datapath=LOCAL disabled=no l2mtu=1600 \
    mac-address=64:D1:54:77:E7:73 master-interface=none mtu=0 name="Sala 5G" \
    radio-mac=64:D1:54:77:E7:73 radio-name=64D15477E773
add channel="Canal 11 2.5G" channel.frequency=2462 configuration=2.5G \
    configuration.hw-retries=4 .mode=ap .multicast-helper=full .ssid=\
    VeshAccesorios datapath=LOCAL disabled=no l2mtu=1600 mac-address=\
    CC:2D:E0:B9:1D:7C master-interface=none mtu=1500 name=cap2 radio-mac=\
    CC:2D:E0:B9:1D:7C radio-name=CC2DE0B91D7C
/interface wireguard
add listen-port=13231 mtu=1412 name=clienteWIRE
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] login-by=""
add hotspot-address=192.168.5.1 login-by=http-chap,http-pap,mac-cookie name=\
    hsprof1
/ip hotspot user profile
set [ find default=yes ] keepalive-timeout=4w2d mac-cookie-timeout=4w2d \
    shared-users=2
add keepalive-timeout=1h mac-cookie-timeout=1h name="1 HORA" on-login="{\
    \n:local tdias 0\
    \n:local atime [ /system clock get time ]\
    \n:local adate [ /system clock get date ]\
    \n:local temp1 [:pick \$adate 0 3] \
    \n:local temp2 [:pick \$adate 4 6]\
    \n:local temp3 [:pick \$atime 0 5]\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\
    \n:local thoras 1\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\
    \n\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x1Hora \";\
    \n\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\
    \n:local day [:pick \$adate 4 6]\
    \n:local monthtxt [:pick \$adate 0 3]\
    \n:local year [:pick \$adate 7 11]\
    \n:local months ([:find \$mesarray \$monthtxt])\
    \n:local dia ([:pick \$diaarray \$months])\
    \n:local fhora [:pick \$atime 0 2]\
    \n:local fminutos [:pick \$atime 3 5]\
    \n:local fsegundos [:pick \$atime 6 9]\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \
    \n\
    \n :if ((\$fhora+\$thoras)>23) do={\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\
    \n\t :set \$tdias (\$tdias+1);\
    \n\t} else={\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \n }\
    \n\
    \n\
    \n :if ((\$day+\$tdias)>\$dia) do={\
    \n    :if (\$months=11) do={\
    \n\
    \n     :set months 0;\
    \n\
    \n     :set year (\$year+1);\
    \n\
    \n     :set day ((\$day+\$tdias)-\$dia);\
    \n\
    \n     :local mes ([:pick \$mesarray \$months]);\
    \n\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\
    \n\
    \n     } else={\
    \n\
    \n       :set months (\$months+1);\
    \n\
    \n       :set day ((\$day+\$tdias)-\$dia);\
    \n\
    \n       :local mes ([:pick \$mesarray \$months]);\
    \n\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\
    \n\
    \n       }\
    \n\
    \n        } else={\
    \n\
    \n          :set day (\$day+\$tdias);\
    \n\
    \n          :local mes ([:pick \$mesarray \$months]);\
    \n\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\
    \n\
    \n     }\
    \n\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\
    \n   \\n/\\r\\\
    \n\" start-date=\$adate start-time=\$atime\
    \n\
    \n/sy sch\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\
    \n    \\n:local J [/system clock get date]\\r\\\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\
    \n    \\n} else={\\r\\\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\
    \n    \\n/\\r\\\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\
    \n   } \
    \n" rate-limit=4M/4M status-autorefresh=3m
add keepalive-timeout=2h mac-cookie-timeout=2h name="2 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 2\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x2Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n\r\
    \n     :set months 0;\r\
    \n\r\
    \n     :set year (\$year+1);\r\
    \n\r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     } else={\r\
    \n\r\
    \n       :set months (\$months+1);\r\
    \n\r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n       }\r\
    \n\r\
    \n        } else={\r\
    \n\r\
    \n          :set day (\$day+\$tdias);\r\
    \n\r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   }\r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=3h mac-cookie-timeout=3h name="3 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 3\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x3Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n\r\
    \n     :set months 0;\r\
    \n\r\
    \n     :set year (\$year+1);\r\
    \n\r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     } else={\r\
    \n\r\
    \n       :set months (\$months+1);\r\
    \n\r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n       }\r\
    \n\r\
    \n        } else={\r\
    \n\r\
    \n          :set day (\$day+\$tdias);\r\
    \n\r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=4h mac-cookie-timeout=4h name="4 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 4\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x4Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n\r\
    \n     :set months 0;\r\
    \n\r\
    \n     :set year (\$year+1);\r\
    \n\r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     } else={\r\
    \n\r\
    \n       :set months (\$months+1);\r\
    \n\r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n\r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n       }\r\
    \n\r\
    \n        } else={\r\
    \n\r\
    \n          :set day (\$day+\$tdias);\r\
    \n\r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n\r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n\r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=5h mac-cookie-timeout=5h name="5 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 5\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x5Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n \r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0;\r\
    \n        \r\
    \n     :set year (\$year+1);\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1);\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias);\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n    \r\
    \n     }\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=6h mac-cookie-timeout=6h name="6 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 6\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x6Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n \r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0;\r\
    \n        \r\
    \n     :set year (\$year+1);\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1);\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias);\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=11h mac-cookie-timeout=11h name="11 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 11\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x11Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n \r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0;\r\
    \n        \r\
    \n     :set year (\$year+1);\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1);\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias);\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=1d mac-cookie-timeout=1d name="1 DIA" on-login="{\r\
    \n\r\
    \n:local tdias 1\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3]\r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_1Dia \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n\r\
    \n     :set months 0\r\
    \n\r\
    \n     :set year (\$year+1)\r\
    \n\r\
    \n      :set day ((\$day+\$tdias)-\$dia)\r\
    \n\r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n\r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n\r\
    \n     } else={\r\
    \n\r\
    \n       :set months (\$months+1)\r\
    \n\r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n\r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n\r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n\r\
    \n       }\r\
    \n\r\
    \n        } else={\r\
    \n\r\
    \n          :set day (\$day+\$tdias)\r\
    \n\r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n\r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n\r\
    \n     }\r\
    \n\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   }\r\
    \n" rate-limit=2M/2M
add keepalive-timeout=2d mac-cookie-timeout=2d name="2 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 2\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_2Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=3d name="3 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 3\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_3Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=4d mac-cookie-timeout=4d name="4 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 4\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_4Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=5d mac-cookie-timeout=5d name="5 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 5\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_5Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=6d mac-cookie-timeout=6d name="6 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 6\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_6Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=1w mac-cookie-timeout=1w name="7 DIAS" on-login="{\r\
    \n\r\
    \n:local tdias 7\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_7Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=2w1d mac-cookie-timeout=2w1d name="15 DIAS" on-login="{\
    \r\
    \n\r\
    \n:local tdias 15\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_15Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add keepalive-timeout=4w2d mac-cookie-timeout=4w2d name="30 DIAS" on-login="{\
    \r\
    \n\r\
    \n:local tdias 30\r\
    \n:local atime [ /system clock get time ]\r\
    \n\r\
    \n:local adate [ /system clock get date ]\r\
    \n\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n\r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n# Agrego un registro en el LOG del usuario\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_30Dias \";\r\
    \n\r\
    \n\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0\r\
    \n        \r\
    \n     :set year (\$year+1)\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia)\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1)\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia)\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months])\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias)\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months])\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year)\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M
add add-mac-cookie=no keepalive-timeout=15m !mac-cookie-timeout name=\
    "15 MINUTOS" on-login="{\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n[/system scheduler add name=\$user interval=00:15:00 comment=\"2. Ficha \
    15min\"\\\r\
    \non-event=\"\\\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n/ip hotspot user remove \\\"\$user\\\"\r\
    \n/ip hotspot active remove [find user=\\\"\$user\\\"]\r\
    \n/ip hotspot cookie remove [find user=\\\"\$user\\\"]\r\
    \n/system scheduler remove [find name=\\\"\$user\\\"]\r\
    \n\"]\r\
    \n}" rate-limit=2M/2M session-timeout=15m
add add-mac-cookie=no keepalive-timeout=30m !mac-cookie-timeout name=\
    "30 MINUTOS" on-login="{\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n[/system scheduler add name=\$user interval=00:30:00 comment=\"3. Ficha \
    30min\"\\\r\
    \non-event=\"\\\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n/ip hotspot user remove \\\"\$user\\\"\r\
    \n/ip hotspot active remove [find user=\\\"\$user\\\"]\r\
    \n/ip hotspot cookie remove [find user=\\\"\$user\\\"]\r\
    \n/system scheduler remove [find name=\\\"\$user\\\"]\r\
    \n\"]\r\
    \n}" rate-limit=2M/2M session-timeout=30m
add keepalive-timeout=8h mac-cookie-timeout=8h name="8 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 8\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x8Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n \r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0;\r\
    \n        \r\
    \n     :set year (\$year+1);\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1);\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias);\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add keepalive-timeout=9h name="9 HORAS" on-login="{\r\
    \n:local tdias 0\r\
    \n:local atime [ /system clock get time ]\r\
    \n:local adate [ /system clock get date ]\r\
    \n:local temp1 [:pick \$adate 0 3] \r\
    \n:local temp2 [:pick \$adate 4 6]\r\
    \n:local temp3 [:pick \$atime 0 5]\r\
    \n:local temp4 (\$temp2.\"/\".\$temp1.\" - \".\$temp3.\"  Dias: \".\$tdias\
    );\r\
    \n:local thoras 9\r\
    \n:if ([ /ip hotspot user get \$user comment ]=\"\") do={ [ /ip hotspot us\
    er set \$user comment=\$temp4 ] }\r\
    \n\r\
    \n /log info \"Usuario= \$user fecha=\$adate hora=\$atime Dias=\$tdias Pla\
    n=Plan_x9Horas \";\r\
    \n\r\
    \n:local mesarray (\"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\"\
    ,\"aug\",\"sep\",\"oct\",\"nov\",\"dec\")\r\
    \n:local diaarray (\"31\",\"28\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\"\
    ,\"30\",\"31\",\"30\",\"31\")\r\
    \n:local day [:pick \$adate 4 6]\r\
    \n:local monthtxt [:pick \$adate 0 3]\r\
    \n:local year [:pick \$adate 7 11]\r\
    \n:local months ([:find \$mesarray \$monthtxt])\r\
    \n:local dia ([:pick \$diaarray \$months])\r\
    \n:local fhora [:pick \$atime 0 2]\r\
    \n:local fminutos [:pick \$atime 3 5]\r\
    \n:local fsegundos [:pick \$atime 6 9]\r\
    \n:local mayorhora ((\$fhora+\$thoras)-24) \r\
    \n\r\
    \n :if ((\$fhora+\$thoras)>23) do={\r\
    \n     :set atime (\"0\".\$mayorhora.\":\".\$fminutos.\":\".fsegundos);\r\
    \n\t :set \$tdias (\$tdias+1);\r\
    \n\t} else={\r\
    \n     :set atime ((\$fhora+\$thoras).\":\".\$fminutos.\":\".fsegundos) ;\
    \r\
    \n }\r\
    \n \r\
    \n\r\
    \n :if ((\$day+\$tdias)>\$dia) do={\r\
    \n    :if (\$months=11) do={\r\
    \n        \r\
    \n     :set months 0;\r\
    \n        \r\
    \n     :set year (\$year+1);\r\
    \n        \r\
    \n     :set day ((\$day+\$tdias)-\$dia);\r\
    \n        \r\
    \n     :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n     :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n     } else={\r\
    \n           \r\
    \n       :set months (\$months+1);\r\
    \n           \r\
    \n       :set day ((\$day+\$tdias)-\$dia);\r\
    \n           \r\
    \n       :local mes ([:pick \$mesarray \$months]);\r\
    \n           \r\
    \n       :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n        \r\
    \n       }\r\
    \n    \r\
    \n        } else={\r\
    \n        \r\
    \n          :set day (\$day+\$tdias);\r\
    \n        \r\
    \n          :local mes ([:pick \$mesarray \$months]);\r\
    \n        \r\
    \n          :set adate (\$mes.\"/\".\$day.\"/\".\$year);\r\
    \n    \r\
    \n     }\r\
    \n\r\
    \n[/system scheduler add name=\$user on-event=\"/ip hotspot user remove [f\
    ind name=\$user] \\r\\\r\
    \n \\n/ip hotspot active remove [find user=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n  \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n   \\n/\\r\\\r\
    \n\" start-date=\$adate start-time=\$atime\r\
    \n\r\
    \n/sy sch\r\
    \nadd interval=10s name=\"Finder:\$user\" on-event=\":local atime [ /syste\
    m clock get time ]\\r\\\r\
    \n    \\n:local J [/system clock get date]\\r\\\r\
    \n    \\n:local o [ :pick \\\$J 4 6 ]\\r\\\r\
    \n    \\n:local s [ :pick \\\$J 0 3 ]\\r\\\r\
    \n    \\n:local e [ :pick \\\$J 7 11 ]\\r\\\r\
    \n    \\n:local spin \\\"A las \\\$atime el \\\$o/\\\$s/\\\$e\\\"\\r\\\r\
    \n    \\n:global next [/system scheduler get [find name=\\\"\$user\\\"] ne\
    xt-run];\\r\\\r\
    \n    \\n:if ([:len \\\$next] <= 0) do={\\r\\\r\
    \n    \\n      :log warning \\\"Ficha INFINITA Encontrada:\$user\\\"\\r\\\
    \r\
    \n    \\n      :log warning \\\"Removiendo: \$user \\\$spin\\\"\\r\\\r\
    \n    \\n/ip hotspot user remove [find name=\$user] \\r\\\r\
    \n    \\n/ip hotspot active remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=\$user] \\r\\\r\
    \n    \\n/system scheduler remove [find name=Finder:\$user] \\r\\\r\
    \n    \\n} else={\\r\\\r\
    \n    \\n    :log warning \\\"Ficha:\$user Vigente\\\"\\r\\\r\
    \n    \\n/\\r\\\r\
    \n    \\n}\" start-d=\$adate start-t=(\$atime + 00:00:10)]\r\
    \n   } \r\
    \n" rate-limit=2M/2M status-autorefresh=3m
add add-mac-cookie=no keepalive-timeout=10s !mac-cookie-timeout name=\
    "10 Segundos" on-login="{\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n[/system scheduler add name=\$user interval=00:00:10 comment=\"2. Ficha \
    10Seg\"\\\r\
    \non-event=\"\\\r\
    \n# ..:: Improved By Carlos Suarez ::..\r\
    \n/ip hotspot user disable \\\"\$user\\\"\r\
    \n/ip hotspot active remove [find user=\\\"\$user\\\"]\r\
    \n/ip hotspot cookie remove [find user=\\\"\$user\\\"]\r\
    \n/system scheduler remove [find name=\\\"\$user\\\"]\r\
    \n\"]\r\
    \n}" session-timeout=10s
add add-mac-cookie=no !mac-cookie-timeout name=trial rate-limit=3M/3M
add !keepalive-timeout mac-cookie-timeout=4w2d name=Comun rate-limit=9M/9M
add add-mac-cookie=no !keepalive-timeout !mac-cookie-timeout name=Comun2 \
    rate-limit=9M/9M shared-users=4
/ip pool
add name=dhcp_pool0 ranges=192.168.5.2-192.168.5.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=puente lease-time=1d10m name=dhcp1
/ip hotspot
add address-pool=dhcp_pool0 addresses-per-mac=unlimited disabled=no \
    idle-timeout=none interface=puente name=hotspot1 profile=hsprof1
/zerotier
set zt1 comment="ZeroTier Central controller - https://my.zerotier.com/" \
    identity="047869a0eb:0:c205136c9e93a82fc21920f320d5d2ef7f27d3acaba0d486702\
    d60e105606b460be12db475fbbdd38e5d3af070b34ab3b4176eee22c054c619661d5c50aa2\
    78a:80d9910e8b46f4f702f80895cadd9a099d972758967cd29f38c58ccff4887b85c803ce\
    c84813f6dad79c70f3b80a99608c64ee7a8466e129a06a6c67d7973756" name=zt1 \
    port=9993
/zerotier interface
add allow-default=yes allow-global=yes allow-managed=yes disabled=no \
    instance=zt1 name=zerotier1 network=ebe7fbd44521fff5
/caps-man access-list
add action=accept allow-signal-out-of-range=10s comment="Pendrive Wifi 5G" \
    disabled=no mac-address=E0:AD:86:30:05:AC ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="PC master" disabled=\
    no mac-address=94:C6:91:6C:D3:BE ssid-regexp=""
/caps-man manager
set ca-certificate=auto certificate=auto enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled disabled=yes master-configuration=2.5G \
    name-format=identity
add action=create-dynamic-enabled disabled=yes master-configuration=5G
/interface bridge port
add bridge=puente ingress-filtering=no interface=LaN3
add bridge=puente ingress-filtering=no interface=LaN4
add bridge=puente interface=LaN2
add bridge=puente interface=LaN5
add bridge=puente interface=wlan5G
add bridge=puente interface=wlan2.5G
add bridge=puente interface=CapGomper2.5
add bridge=puente interface=CapGomper5
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface ovpn-server server
set auth=sha1,md5
/interface wireguard peers
add allowed-address=::/0 endpoint-address=79.116.6.78 endpoint-port=13231 \
    interface=clienteWIRE persistent-keepalive=30s public-key=\
    "e7WUtN5jKKdGXPc/FV1eeJHTYQpxLRmCLFtEabVuZHg="
/interface wireless cap
# 
set bridge=puente discovery-interfaces=puente enabled=yes interfaces=\
    wlan2.5G,wlan5G
/ip address
add address=192.168.5.1/24 interface=puente network=192.168.5.0
add address=10.0.0.2/24 interface=clienteWIRE network=10.0.0.0
/ip dhcp-client
add interface=WAN use-peer-dns=no use-peer-ntp=no
/ip dhcp-server lease
add address=192.168.5.102 client-id=1:b4:b7:42:43:d6:ae comment=Alexa \
    mac-address=B4:B7:42:43:D6:AE server=dhcp1
add address=192.168.5.103 client-id=1:48:55:19:74:bb:38 comment=\
    "SonOff Smart Switch Wifi" mac-address=48:55:19:74:BB:38 server=dhcp1
add address=192.168.5.104 client-id=1:00:16:78:26:db:7c comment="Extensor Blan\
    co, Desactivado por defecto, ya que no es probable que se use" \
    mac-address=00:16:78:26:DB:7C server=dhcp1
add address=192.168.5.105 client-id=1:a0:f3:c1:65:21:b6 comment=\
    "Extensor TPLINK" mac-address=A0:F3:C1:65:21:B6 server=dhcp1
add address=192.168.5.106 client-id=1:18:de:50:5e:57:03 comment=\
    "Sensor de Movimiento" mac-address=18:DE:50:5E:57:03 server=dhcp1
add address=192.168.5.107 client-id=1:18:de:50:4f:70:41 comment=\
    "Sensor de puerta abierta o cerrada" mac-address=18:DE:50:4F:70:41 \
    server=dhcp1
add address=192.168.5.108 client-id=1:18:de:50:4a:1f:28 comment=\
    "sMART IR CAMBIADOR CANALES" mac-address=18:DE:50:4A:1F:28 server=dhcp1
add address=192.168.5.109 client-id=1:50:8b:b9:49:99:6b comment=\
    "Interruptor complicado 3 vias" mac-address=50:8B:B9:49:99:6B server=\
    dhcp1
add address=192.168.5.110 client-id=1:2c:05:47:d4:70:5e comment=\
    "Camara Ip Pro 1" mac-address=2C:05:47:D4:70:5E server=dhcp1
add address=192.168.5.111 client-id=1:2c:05:47:d3:eb:f5 comment=\
    "Camara Ip Pro 2" mac-address=2C:05:47:D3:EB:F5 server=dhcp1
add address=192.168.5.112 client-id=1:30:4a:9e:7c:c0:51 comment=\
    "Camara Ip Basica" mac-address=30:4A:9E:7C:C0:51 server=dhcp1
add address=192.168.5.113 client-id=1:e0:ad:86:30:05:ac comment=\
    "WIFI 5G GOMPER" mac-address=E0:AD:86:30:05:AC server=dhcp1
/ip dhcp-server network
add address=192.168.5.0/24 dns-server=8.8.4.4,8.8.8.8 gateway=192.168.5.1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall address-list
add address=157.240.18.15 list=JO
add address=157.240.18.10 list=JO
add address=157.240.18.35 list=JO
add address=157.240.19.19 list=JO
add address=157.240.19.41 list=JO
add address=157.240.17.14 list=JO
add address=157.240.17.52 list=JO
add address=157.240.17.36 list=JO
add address=157.240.3.35 list=JO
add address=157.240.17.32 list=JO
add address=31.13.66.34 list=JO
add address=157.240.17.10 list=JO
add address=31.13.66.3 list=JO
add address=157.240.17.35 list=JO
add address=69.171.252.252 list=JO
add address=31.13.66.36 list=JO
add address=157.240.3.19 list=JO
add address=157.240.3.15 list=JO
add address=157.240.3.36 list=JO
add address=157.240.3.32 list=JO
add address=157.240.3.52 list=JO
add address=189.247.227.18 list=JO
add address=189.247.227.32 list=JO
add address=189.247.227.33 list=JO
add address=157.240.19.51 list=JO
add address=189.247.227.17 list=JO
add address=157.240.19.26 list=JO
add address=157.240.14.32 list=JO
add address=157.240.14.36 list=JO
add address=157.240.14.15 list=JO
add address=157.240.14.10 list=JO
add address=74.119.0.0/16 list=JO
add address=69.63.0.0/16 list=JO
add address=69.171.0.0/16 list=JO
add address=66.220.0.0/16 list=JO
add address=31.13.0.0/16 list=JO
add address=31.13.24.0/21 list=JO
add address=31.13.72.12 list=JO
add address=31.13.64.0/18 list=JO
add address=31.13.64.0/19 list=JO
add address=31.13.64.0/24 list=JO
add address=31.13.65.0/24 list=JO
add address=31.13.66.0/24 list=JO
add address=31.13.68.0/24 list=JO
add address=31.13.69.0/24 list=JO
add address=31.13.70.0/24 list=JO
add address=31.13.71.0/24 list=JO
add address=31.13.73.0/24 list=JO
add address=31.13.74.0/24 list=JO
add address=31.13.75.0/24 list=JO
add address=31.13.76.0/24 list=JO
add address=31.13.77.0/24 list=JO
add address=31.13.78.0/24 list=JO
add address=31.13.79.0/24 list=JO
add address=31.13.82.0/24 list=JO
add address=31.13.83.0/24 list=JO
add address=31.13.84.0/24 list=JO
add address=31.13.85.0/24 list=JO
add address=31.13.86.0/24 list=JO
add address=31.13.87.0/24 list=JO
add address=31.13.90.0/24 list=JO
add address=31.13.91.0/24 list=JO
add address=31.13.93.0/24 list=JO
add address=31.13.95.0/24 list=JO
add address=31.13.96.0/19 list=JO
add address=66.220.144.0/20 list=JO
add address=66.220.144.0/21 list=JO
add address=66.220.152.0/21 list=JO
add address=69.63.176.0/20 list=JO
add address=69.63.176.0/21 list=JO
add address=69.63.184.0/21 list=JO
add address=69.171.224.0/19 list=JO
add address=69.171.224.0/20 list=JO
add address=69.171.239.0/24 list=JO
add address=69.171.240.0/20 list=JO
add address=69.171.255.0/24 list=JO
add address=74.119.76.0/22 list=JO
add address=103.4.96.0/22 list=JO
add address=173.252.0.0/16 list=JO
add address=204.15.0.0/16 list=JO
add address=173.252.64.0/19 list=JO
add address=173.252.96.0/19 list=JO
add address=179.60.192.0/22 list=JO
add address=179.60.192.0/24 list=JO
add address=179.60.193.0/24 list=JO
add address=157.240.18.19 list=JO
add address=189.247.227.30 list=JO
add address=157.240.17.13 list=JO
add address=157.240.2.50 list=JO
add address=157.240.17.50 list=JO
add address=157.240.19.12 list=JO
add address=157.240.19.32 list=JO
add address=157.240.19.35 list=JO
add address=157.240.19.33 list=JO
add address=157.240.14.35 list=JO
add address=157.240.19.36 list=JO
add address=50.22.0.0/16 list=JO
add address=82.0.0.0/8 list="disabled=yes"
add address=184.173.0.0/16 list=JO
add address=184.172.0.0/16 list=JO
add address=173.192.0.0/16 list=JO
add address=173.193.0.0/16 list=JO
add address=108.168.0.0/16 list=JO
add address=208.43.0.0/16 list=JO
add address=174.36.0.0/16 list=JO
add address=169.54.0.0/16 list=JO
add address=169.55.0.0/16 list=JO
add address=158.85.0.0/16 list=JO
add address=179.60.0.0/16 list=JO
add address=8.8.8.8 list="disabled=yes"
add address=8.8.4.4 list="disabled=yes"
add address=158.85.61.206 list=JO
add address=169.45.219.245 list=JO
add address=169.47.40.140 list=JO
add address=169.45.219.233 list=JO
add address=108.168.177.25 list=JO
add address=158.85.58.113 list=JO
add address=169.45.248.171 list=JO
add address=169.55.67.230 list=JO
add address=169.47.5.232 list=JO
add address=174.36.210.49 list=JO
add address=108.168.176.218 list=JO
add address=169.47.42.238 list=JO
add address=174.36.210.46 list=JO
add address=169.45.214.240 list=JO
add address=169.47.5.199 list=JO
add address=169.47.5.214 list=JO
add address=108.168.177.14 list=JO
add address=158.85.58.58 list=JO
add address=108.168.180.107 list=JO
add address=158.85.224.183 list=JO
add address=108.168.176.239 list=JO
add address=169.47.42.163 list=JO
add address=169.45.210.78 list=JO
add address=169.47.40.137 list=JO
add address=169.45.248.115 list=JO
add address=169.55.75.106 list=JO
add address=169.55.67.245 list=JO
add address=169.45.219.253 list=JO
add address=50.22.240.176 list=JO
add address=108.168.176.205 list=JO
add address=50.22.240.183 list=JO
add address=169.47.35.61 list=JO
add address=169.47.42.227 list=JO
add address=169.45.248.120 list=JO
add address=158.85.224.184 list=JO
add address=174.36.210.48 list=JO
add address=169.47.42.102 list=JO
add address=169.45.210.77 list=JO
add address=169.47.5.233 list=JO
add address=169.47.42.203 list=JO
add address=198.11.251.47 list=JO
add address=169.55.75.119 list=JO
add address=169.55.67.253 list=JO
add address=169.47.42.196 list=JO
add address=158.85.224.189 list=JO
add address=158.85.233.52 list=JO
add address=158.85.58.121 list=JO
add address=169.55.67.235 list=JO
add address=169.47.42.220 list=JO
add address=169.45.219.231 list=JO
add address=108.168.176.243 list=JO
add address=169.53.71.232 list=JO
add address=169.45.210.84 list=JO
add address=169.47.42.243 list=JO
add address=169.55.67.248 list=JO
add address=169.47.42.112 list=JO
add address=174.36.210.44 list=JO
add address=169.55.75.110 list=JO
add address=108.168.180.109 list=JO
add address=169.55.67.227 list=JO
add address=169.45.248.188 list=JO
add address=158.85.58.114 list=JO
add address=50.22.240.186 list=JO
add address=169.47.40.147 list=JO
add address=158.85.48.238 list=JO
add address=169.47.42.107 list=JO
add address=169.45.238.54 list=JO
add address=169.45.248.164 list=JO
add address=169.45.214.248 list=JO
add address=108.168.176.253 list=JO
add address=169.45.214.234 list=JO
add address=158.85.58.117 list=JO
add address=108.168.176.221 list=JO
add address=169.47.40.144 list=JO
add address=169.45.219.232 list=JO
add address=50.22.240.173 list=JO
add address=169.55.67.232 list=JO
add address=158.85.58.39 list=JO
add address=169.47.5.231 list=JO
add address=169.47.5.201 list=JO
add address=169.55.67.233 list=JO
add address=169.45.248.121 list=JO
add address=169.45.248.114 list=JO
add address=108.168.180.114 list=JO
add address=169.53.71.233 list=JO
add address=169.45.214.242 list=JO
add address=169.45.210.82 list=JO
add address=169.47.42.124 list=JO
add address=169.47.5.220 list=JO
add address=174.36.210.38 list=JO
add address=169.47.5.249 list=JO
add address=108.168.180.123 list=JO
add address=158.85.58.55 list=JO
add address=169.47.42.254 list=JO
add address=169.53.71.248 list=JO
add address=169.47.42.247 list=JO
add address=50.22.240.182 list=JO
add address=169.55.67.234 list=JO
add address=169.55.67.240 list=JO
add address=158.85.48.245 list=JO
add address=169.45.210.80 list=JO
add address=169.45.219.236 list=JO
add address=169.47.40.150 list=JO
add address=169.47.42.198 list=JO
add address=198.11.251.41 list=JO
add address=169.53.71.250 list=JO
add address=169.47.42.197 list=JO
add address=169.45.238.39 list=JO
add address=169.47.5.244 list=JO
add address=169.47.42.113 list=JO
add address=169.55.67.241 list=JO
add address=169.47.40.134 list=JO
add address=108.168.176.198 list=JO
add address=169.45.248.167 list=JO
add address=169.47.42.205 list=JO
add address=158.85.48.234 list=JO
add address=158.85.58.45 list=JO
add address=169.45.214.241 list=JO
add address=108.168.176.247 list=JO
add address=169.47.40.145 list=JO
add address=174.36.210.56 list=JO
add address=169.47.5.242 list=JO
add address=169.45.214.230 list=JO
add address=174.36.210.54 list=JO
add address=169.45.214.250 list=JO
add address=169.47.5.247 list=JO
add address=108.168.176.203 list=JO
add address=169.45.248.181 list=JO
add address=108.168.176.226 list=JO
add address=158.85.48.230 list=JO
add address=158.85.58.119 list=JO
add address=169.45.214.243 list=JO
add address=169.53.71.254 list=JO
add address=108.168.176.195 list=JO
add address=174.36.210.41 list=JO
add address=169.47.5.237 list=JO
add address=169.53.71.244 list=JO
add address=198.11.251.57 list=JO
add address=169.55.67.242 list=JO
add address=169.47.40.131 list=JO
add address=169.45.219.248 list=JO
add address=169.45.219.240 list=JO
add address=169.53.71.253 list=JO
add address=169.45.214.252 list=JO
add address=169.47.5.198 list=JO
add address=169.45.210.94 list=JO
add address=158.85.58.60 list=JO
add address=169.55.67.231 list=JO
add address=169.47.42.250 list=JO
add address=158.85.48.237 list=JO
add address=169.47.42.105 list=JO
add address=169.47.42.252 list=JO
add address=169.45.248.180 list=JO
add address=169.45.219.235 list=JO
add address=169.47.42.210 list=JO
add address=169.47.42.199 list=JO
add address=169.45.248.119 list=JO
add address=158.85.58.125 list=JO
add address=169.47.40.154 list=JO
add address=108.168.176.236 list=JO
add address=169.45.210.85 list=JO
add address=50.22.240.174 list=JO
add address=158.85.48.246 list=JO
add address=169.47.42.248 list=JO
add address=108.168.176.207 list=JO
add address=169.45.219.228 list=JO
add address=108.168.180.119 list=JO
add address=169.45.210.93 list=JO
add address=169.45.214.254 list=JO
add address=108.168.176.242 list=JO
add address=169.47.42.123 list=JO
add address=198.11.251.58 list=JO
add address=158.85.58.111 list=JO
add address=108.168.180.121 list=JO
add address=169.47.42.106 list=JO
add address=169.45.248.124 list=JO
add address=169.47.5.228 list=JO
add address=108.168.177.26 list=JO
add address=108.168.176.230 list=JO
add address=169.47.42.233 list=JO
add address=169.45.248.183 list=JO
add address=174.36.210.36 list=JO
add address=169.45.238.55 list=JO
add address=169.47.42.226 list=JO
add address=158.85.58.43 list=JO
add address=169.47.5.241 list=JO
add address=169.45.248.176 list=JO
add address=158.85.58.100 list=JO
add address=169.45.214.233 list=JO
add address=169.55.67.249 list=JO
add address=158.85.48.236 list=JO
add address=169.47.5.254 list=JO
add address=169.45.219.229 list=JO
add address=169.55.75.105 list=JO
add address=169.45.219.230 list=JO
add address=158.85.58.101 list=JO
add address=169.45.210.73 list=JO
add address=108.168.180.106 list=JO
add address=169.53.71.234 list=JO
add address=158.85.58.38 list=JO
add address=169.45.219.234 list=JO
add address=158.85.48.251 list=JO
add address=108.168.177.12 list=JO
add address=169.45.248.118 list=JO
add address=169.45.238.48 list=JO
add address=169.44.84.178 list=JO
add address=184.173.147.39 list=JO
add address=169.44.82.102 list=JO
add address=184.173.147.38 list=JO
add address=192.155.212.202 list=JO
add address=192.155.212.203 list=JO
add address=158.85.48.241 list=JO
add address=169.47.40.133 list=JO
add address=169.47.5.215 list=JO
add address=169.45.214.229 list=JO
add address=169.45.219.243 list=JO
add address=169.45.248.173 list=JO
add address=169.45.87.185 list=JO
add address=169.54.222.138 list=JO
add address=169.45.87.184 list=JO
add address=169.55.235.182 list=JO
add address=169.53.29.145 list=JO
add address=169.45.71.122 list=JO
add address=169.45.87.165 list=JO
add address=169.45.71.118 list=JO
add address=158.85.58.61 list=JO
add address=169.45.248.189 list=JO
add address=169.53.81.79 list=JO
add address=198.11.251.46 list=JO
add address=169.47.40.142 list=JO
add address=158.85.58.103 list=JO
add address=169.47.42.221 list=JO
add address=108.168.176.240 list=JO
add address=169.47.42.211 list=JO
add address=108.168.176.232 list=JO
add address=50.22.240.169 list=JO
add address=169.47.40.151 list=JO
add address=169.45.214.238 list=JO
add address=169.47.42.234 list=JO
add address=108.168.177.15 list=JO
add address=158.85.58.115 list=JO
add address=169.47.5.196 list=JO
add address=169.55.67.254 list=JO
add address=158.85.224.187 list=JO
add address=50.22.240.181 list=JO
add address=169.45.210.90 list=JO
add address=169.45.219.247 list=JO
add address=169.45.214.239 list=JO
add address=108.168.180.112 list=JO
add address=169.47.42.245 list=JO
add address=169.45.248.100 list=JO
add address=158.85.58.106 list=JO
add address=169.47.42.200 list=JO
add address=169.53.71.246 list=JO
add address=158.85.48.239 list=JO
add address=108.168.176.217 list=JO
add address=108.168.177.18 list=JO
add address=169.55.67.238 list=JO
add address=169.47.42.241 list=JO
add address=169.47.5.217 list=JO
add address=169.45.210.68 list=JO
add address=169.55.67.251 list=JO
add address=169.47.42.236 list=JO
add address=169.45.210.69 list=JO
add address=169.47.40.156 list=JO
add address=169.45.248.170 list=JO
add address=198.11.251.62 list=JO
add address=169.55.67.236 list=JO
add address=158.85.58.102 list=JO
add address=169.47.5.213 list=JO
add address=108.168.176.208 list=JO
add address=198.11.251.43 list=JO
add address=158.85.48.232 list=JO
add address=169.47.40.135 list=JO
add address=108.168.176.237 list=JO
add address=169.45.248.178 list=JO
add address=169.45.214.247 list=JO
add address=169.47.42.109 list=JO
add address=169.47.5.245 list=JO
add address=158.85.48.228 list=JO
add address=169.45.248.110 list=JO
add address=169.45.210.87 list=JO
add address=169.53.71.247 list=JO
add address=169.47.42.230 list=JO
add address=169.45.248.122 list=JO
add address=158.85.58.120 list=JO
add address=169.47.42.176 list=JO
add address=169.53.71.242 list=JO
add address=169.47.35.49 list=JO
add address=50.22.240.179 list=JO
add address=169.55.75.115 list=JO
add address=169.45.210.92 list=JO
add address=169.47.5.243 list=JO
add address=108.168.176.244 list=JO
add address=169.47.5.204 list=JO
add address=169.45.248.165 list=JO
add address=108.168.176.206 list=JO
add address=169.47.5.230 list=JO
add address=169.47.35.54 list=JO
add address=108.168.176.233 list=JO
add address=169.45.248.172 list=JO
add address=174.36.210.45 list=JO
add address=169.45.210.81 list=JO
add address=169.47.42.120 list=JO
add address=169.47.42.195 list=JO
add address=169.47.5.236 list=JO
add address=158.85.58.44 list=JO
add address=108.168.177.10 list=JO
add address=108.168.176.210 list=JO
add address=169.54.55.206 list=JO
add address=169.45.214.244 list=JO
add address=169.45.210.86 list=JO
add address=169.45.248.103 list=JO
add address=169.47.42.212 list=JO
add address=158.85.61.217 list=JO
add address=169.45.210.91 list=JO
add address=108.168.180.116 list=JO
add address=158.85.58.109 list=JO
add address=169.45.210.74 list=JO
add address=169.45.248.112 list=JO
add address=169.45.248.168 list=JO
add address=169.47.5.206 list=JO
add address=169.47.5.240 list=JO
add address=169.47.5.250 list=JO
add address=158.85.58.40 list=JO
add address=169.47.42.119 list=JO
add address=108.168.176.196 list=JO
add address=108.168.176.254 list=JO
add address=169.55.67.239 list=JO
add address=169.45.214.253 list=JO
add address=158.85.58.104 list=JO
add address=158.85.58.122 list=JO
add address=169.55.75.120 list=JO
add address=169.47.42.121 list=JO
add address=108.168.180.122 list=JO
add address=169.45.248.107 list=JO
add address=158.85.58.123 list=JO
add address=158.85.58.116 list=JO
add address=169.47.40.148 list=JO
add address=169.45.248.182 list=JO
add address=169.55.67.246 list=JO
add address=169.47.42.251 list=JO
add address=169.47.5.239 list=JO
add address=158.85.58.50 list=JO
add address=169.47.40.143 list=JO
add address=169.53.71.249 list=JO
add address=158.85.48.235 list=JO
add address=108.168.180.118 list=JO
add address=158.85.58.46 list=JO
add address=108.168.176.201 list=JO
add address=169.55.67.247 list=JO
add address=174.36.210.34 list=JO
add address=158.85.48.253 list=JO
add address=169.47.40.149 list=JO
add address=169.45.248.175 list=JO
add address=169.45.248.101 list=JO
add address=169.47.42.240 list=JO
add address=169.53.71.229 list=JO
add address=169.45.219.246 list=JO
add address=169.45.248.108 list=JO
add address=198.11.251.60 list=JO
add address=158.85.58.53 list=JO
add address=169.45.219.237 list=JO
add address=198.11.251.59 list=JO
add address=169.55.67.243 list=JO
add address=169.53.71.251 list=JO
add address=169.47.42.215 list=JO
add address=169.45.238.58 list=JO
add address=108.168.180.100 list=JO
add address=169.47.42.239 list=JO
add address=158.85.48.240 list=JO
add address=158.85.58.37 list=JO
add address=169.45.214.228 list=JO
add address=169.55.67.229 list=JO
add address=169.45.248.166 list=JO
add address=108.168.180.104 list=JO
add address=158.85.58.41 list=JO
add address=169.47.40.158 list=JO
add address=108.168.180.126 list=JO
add address=169.55.67.244 list=JO
add address=169.47.35.51 list=JO
add address=169.53.71.243 list=JO
add address=108.168.180.101 list=JO
add address=169.54.222.158 list=JO
add address=169.45.87.189 list=JO
add address=169.45.87.140 list=JO
add address=169.45.219.239 list=JO
add address=50.22.240.187 list=JO
add address=169.47.42.242 list=JO
add address=158.85.48.247 list=JO
add address=169.47.42.235 list=JO
add address=169.47.40.141 list=JO
add address=158.85.58.110 list=JO
add address=169.53.29.151 list=JO
add address=169.53.71.239 list=JO
add address=169.47.42.114 list=JO
add address=158.85.48.254 list=JO
add address=169.45.248.111 list=JO
add address=169.55.75.113 list=JO
add address=169.47.40.139 list=JO
add address=169.47.5.229 list=JO
add address=158.85.48.242 list=JO
add address=169.45.210.88 list=JO
add address=169.45.214.231 list=JO
add address=169.47.42.237 list=JO
add address=169.45.214.249 list=JO
add address=169.55.67.252 list=JO
add address=169.47.5.252 list=JO
add address=169.47.40.146 list=JO
add address=108.168.176.215 list=JO
add address=169.45.210.72 list=JO
add address=174.36.210.51 list=JO
add address=169.53.71.231 list=JO
add address=169.47.42.202 list=JO
add address=169.47.42.246 list=JO
add address=169.47.40.157 list=JO
add address=108.168.176.213 list=JO
add address=169.45.219.241 list=JO
add address=169.55.67.250 list=JO
add address=169.47.42.231 list=JO
add address=169.55.67.226 list=JO
add address=158.85.224.188 list=JO
add address=169.47.42.229 list=JO
add address=174.36.210.52 list=JO
add address=50.22.240.177 list=JO
add address=169.53.71.252 list=JO
add address=158.85.48.243 list=JO
add address=31.13.66.49 list=JO
add address=50.22.240.178 list=JO
add address=169.55.210.105 list=JO
add address=169.45.71.120 list=JO
add address=169.55.210.111 list=JO
add address=169.54.222.136 list=JO
add address=169.55.210.124 list=JO
add address=169.55.235.179 list=JO
add address=169.54.222.134 list=JO
add address=169.45.71.59 list=JO
add address=169.45.248.187 list=JO
add address=158.85.58.42 list=JO
add address=169.45.248.184 list=JO
add address=169.45.248.113 list=JO
add address=169.45.214.246 list=JO
add address=169.45.210.83 list=JO
add address=169.54.210.14 list=JO
add address=108.168.176.197 list=JO
add address=169.47.40.130 list=JO
add address=174.36.210.37 list=JO
add address=169.47.42.253 list=JO
add address=169.45.210.71 list=JO
add address=174.36.210.53 list=JO
add address=169.53.71.235 list=JO
add address=169.47.5.253 list=JO
add address=169.45.248.109 list=JO
add address=169.47.42.98 list=JO
add address=169.47.40.155 list=JO
add address=158.85.58.49 list=JO
add address=169.45.219.251 list=JO
add address=108.168.180.124 list=JO
add address=169.47.42.201 list=JO
add address=108.168.176.231 list=JO
add address=169.55.67.237 list=JO
add address=108.168.176.235 list=JO
add address=169.47.42.214 list=JO
add address=169.45.248.116 list=JO
add address=108.168.176.204 list=JO
add address=169.55.67.228 list=JO
add address=169.47.40.132 list=JO
add address=169.45.214.245 list=JO
add address=169.47.35.45 list=JO
add address=169.45.248.117 list=JO
add address=169.45.219.249 list=JO
add address=169.47.5.248 list=JO
add address=169.45.214.251 list=JO
add address=169.53.71.237 list=JO
add address=169.47.42.204 list=JO
add address=169.45.219.242 list=JO
add address=169.47.42.232 list=JO
add address=169.45.214.237 list=JO
add address=169.47.35.60 list=JO
add address=169.45.71.58 list=JO
add address=169.47.42.244 list=JO
add address=169.47.5.234 list=JO
add address=169.45.214.232 list=JO
add address=169.47.42.249 list=JO
add address=169.47.40.152 list=JO
add address=169.47.35.36 list=JO
add address=158.85.58.52 list=JO
add address=169.53.71.236 list=JO
add address=108.168.176.227 list=JO
add address=169.47.42.228 list=JO
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
/ip firewall mangle
add action=change-ttl chain=postrouting comment=\
    "Regla de bloqueo de bluetooth" dst-address=192.168.5.0/24 new-ttl=set:1 \
    passthrough=yes
/ip firewall nat
add action=dst-nat chain=dstnat dst-port=135 in-interface=WAN protocol=tcp \
    to-addresses=192.168.5.205 to-ports=135
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=192.168.5.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=192.168.5.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=192.168.5.0/24
add action=dst-nat chain=dstnat dst-port=80 protocol=tcp to-addresses=\
    192.168.5.205 to-ports=0-65535
/ip hotspot ip-binding
add address=192.168.5.102 comment=Alexa mac-address=B4:B7:42:43:D6:AE server=\
    hotspot1 to-address=192.168.5.102 type=bypassed
add address=192.168.5.103 comment="SonOff Smart Switch Wifi" mac-address=\
    48:55:19:74:BB:38 server=hotspot1 to-address=192.168.5.103 type=bypassed
add address=192.168.5.104 comment="Extensor Blanco, Desactivado por defecto, y\
    a que no es probable que se use" mac-address=00:16:78:26:DB:7C server=\
    hotspot1 to-address=192.168.5.104 type=bypassed
add address=192.168.5.105 comment="Extensor TPLINK" mac-address=\
    A0:F3:C1:65:21:B6 server=hotspot1 to-address=192.168.5.105 type=bypassed
add address=192.168.5.106 comment="Sensor de Movimiento" mac-address=\
    18:DE:50:5E:57:03 server=hotspot1 to-address=192.168.5.106 type=bypassed
add address=192.168.5.107 comment="Sensor de puerta abierta o cerrada" \
    mac-address=18:DE:50:4F:70:41 server=hotspot1 to-address=192.168.5.107 \
    type=bypassed
add address=192.168.5.108 comment="sMART IR CAMBIADOR CANALES" mac-address=\
    18:DE:50:4A:1F:28 server=hotspot1 to-address=192.168.5.108 type=bypassed
add address=192.168.5.109 comment="Interruptor complicado 3 vias" \
    mac-address=50:8B:B9:49:99:6B server=hotspot1 to-address=192.168.5.109 \
    type=bypassed
add address=192.168.5.110 comment="Camara Ip Pro 1 - Frente 1" mac-address=\
    2C:05:47:D4:70:5E server=hotspot1 to-address=192.168.5.110 type=bypassed
add address=192.168.5.111 comment="Camara Ip Pro 2" mac-address=\
    2C:05:47:D3:EB:F5 server=hotspot1 to-address=192.168.5.111 type=bypassed
add address=192.168.5.112 comment="Camara Ip Basica" mac-address=\
    30:4A:9E:7C:C0:51 server=hotspot1 to-address=192.168.5.112 type=bypassed
add address=192.168.5.113 comment="WIFI 5G GOMPER" mac-address=\
    E0:AD:86:30:05:AC to-address=192.168.5.113 type=bypassed
add address=192.168.5.114 comment="ETHERNET GOMPER" mac-address=\
    94:C6:91:6C:D3:BE to-address=192.168.5.114 type=bypassed
add address=192.168.5.115 comment=Gocha mac-address=B8:3B:CC:C3:B8:58 \
    to-address=192.168.5.115 type=bypassed
add address=192.168.5.48 comment=SmartTV mac-address=A8:43:A4:CC:38:4B \
    server=hotspot1 to-address=192.168.5.48 type=bypassed
add comment="Borrar CAP1" disabled=yes mac-address=CC:2D:E0:08:C8:DC type=\
    bypassed
add comment="Pc mia" mac-address=94:C6:91:6C:D3:BE type=bypassed
/ip hotspot service-port
set ftp disabled=yes
/ip hotspot user
add disabled=yes name=ss profile="10 Segundos"
add name=gocha
add name=gabito profile=Comun2
add name=alvarito profile=Comun2
add name=marisol profile=Comun2
add name=jumi profile=Comun2
add name=jumigli profile=Comun
add name=gochita
add name=alvarito2 profile=Comun
add name=Usuariogocha
add name=Usuarioalvaro profile=Comun2
add disabled=yes name=manrique profile=trial
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set allow-none-crypto=yes forwarding-enabled=remote
/system clock
set time-zone-name=America/Caracas
/system identity
set name=Gomper
/system leds
set 0 interface=LaN2 leds=led2 type=interface-activity
set 1 interface=LaN3 leds=led3
set 2 interface=LaN4 leds=led4
set 3 interface=LaN5 leds=led5
set 4 interface=WAN leds=led1
set 5 disabled=yes interface=LaN2 leds=poe-led
/system note
set note="Ultimo backup es el BACKupFINAL" show-at-login=no
/system resource irq rps
set LaN2 disabled=no
set LaN3 disabled=no
set LaN4 disabled=no
set LaN5 disabled=no
/system script
add dont-require-permissions=no name=mkt_sp_login_1 owner=admin policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\
    \_:local P6oHA7pLvicrO8ub2fa2 [/ip hotspot user get \$user comment]; :loca\
    l t1x3SUqugohIpoc4o3En ([:find \$P6oHA7pLvicrO8ub2fa2 \"Mikroticket\"]);  \
    :if ([:typeof \$t1x3SUqugohIpoc4o3En]!=\"nil\") do={  :local BuPRup63sWlju\
    fuZa4rE ([ :find \$P6oHA7pLvicrO8ub2fa2 \"-da\"]);  :if ([:typeof \$BuPRup\
    63sWljufuZa4rE]=\"nil\") do={ :local St92heguPowumastumlw [/system clock g\
    et date]; :local SpipHeb5xis0iBr4gevu [/system clock get time]; :local is0\
    iBr4gevu \$\"mac-address\"; [/ip hotspot user set \$user comment=(\$P6oHA7\
    pLvicrO8ub2fa2 . \"-da:\" . \$St92heguPowumastumlw . \" \" . \$SpipHeb5xis\
    0iBr4gevu . \"-mc:\" . \$is0iBr4gevu)];  :local serial [/system routerboar\
    d get serial-number];  :local dateAct (\$St92heguPowumastumlw . \" \" . \$\
    SpipHeb5xis0iBr4gevu);  :local url https://fcm.googleapis.com/fcm/send; :l\
    ocal headers \"Authorization:key=AAAAhbL_5Zo:APA91bE5V5EPAnUsD7FNNOqeEIQ9K\
    UTkLTfADIeC-M-m10vEn4jsKAR8Lzsgcp2iZqZeQf3Ij0bFZPzXbgLRt7XxEBVCDV-FgQivVhC\
    1cXHwYZ_rtOQGRM5oxgVHVRxiNx4djBBRkIQR,Content-Type:application/json\";  :l\
    ocal data \"{\\\"registration_ids\\\":[\\\"cx-pPZUImiM:APA91bEajCMmdhs6wqy\
    INYxfB7xazAIaB7bHLp1RnLrvnz5hFfLG6VKsv4kLV2A5Nky-hujRv-Ei5AnFepLHbiDtvli_k\
    fmVF2gHUaOD4gX4ktUMl6jdmJlKEEbpHmqqfN0BOtgy4Alq\\\"],\\\"data\\\":{\\\"TIT\
    LE\\\":\\\"MikroTicket\\\",\\\"USER\\\":\\\"\$username\\\",\\\"DATE\\\":\\\
    \"\$dateAct\\\",\\\"TYPE\\\":\\\"MIKROTIK_ONLOGIN\\\",\\\"ROUTER_SERIAL\\\
    \":\\\"\$serial\\\",\\\"MAC\\\":\\\"\$is0iBr4gevu\\\"}}\";  :do {  /tool f\
    etch url=\$url http-method=post http-data=\$data http-header-field=\$heade\
    rs keep-result=no;  :log info \"Fetch OK\";  } on-error={ :log info \"Fetc\
    h ERROR\"};  }}}"
add dont-require-permissions=no name=mkt_sp_core_1 owner=admin policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\
    \_ :local Cris09nIpuQAso [ /system clock get date ];  :local 5uCheyl3rEQAs\
    o [ /system clock get time ];  :local crU7ipHubunoj5 (\$Cris09nIpuQAso . \
    \" \" . \$5uCheyl3rEQAso);  :foreach rAH1wRe2lGaJOs in [ /ip hotspot user \
    find where disabled=no ] do={ :do { :local q1KUvi2rUpRaDr [ /ip hotspot us\
    er get \$rAH1wRe2lGaJOs comment ]; :local name [ /ip hotspot user get \$rA\
    H1wRe2lGaJOs name ]; :local posDatetime ([ :find \$q1KUvi2rUpRaDr \"da:\"]\
    ); :if ( [ :typeof \$posDatetime ] != \"nil\") do={  :local posType ([ :fi\
    nd \$q1KUvi2rUpRaDr \"tp:\"]); :if ( [ :typeof \$posType ] != \"nil\") do=\
    {  :set posType (\$posType + 3);  :local type [:pick \$q1KUvi2rUpRaDr \$po\
    sType (\$posType + 1)]; :if ( \$type = 2 ) do={  :local posStart (\$posDat\
    etime + 3);  :local pRobRAhOj5vAfE [:pick \$q1KUvi2rUpRaDr \$posStart (\$p\
    osStart + 20)]; :local date1 \$pRobRAhOj5vAfE; :local date2 \$crU7ipHubuno\
    j5; :local date1month [:pick \$date1 0 3]; :local date1day [:pick \$date1 \
    4 6]; :local date1year [:pick \$date1 7 11]; :local date1hours [:pick \$da\
    te1 12 14]; :local date1minutes [:pick \$date1 15 17]; :local date1seconds\
    \_[:pick \$date1 18 20]; :local date2month [:pick \$date2 0 3]; :local dat\
    e2day [:pick \$date2 4 6]; :local date2year [:pick \$date2 7 11]; :local d\
    ate2hours [:pick \$date2 12 14]; :local date2minutes [:pick \$date2 15 17]\
    ; :local date2seconds [:pick \$date2 18 20]; :local months (\"jan\",\"feb\
    \",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\"nov\"\
    ,\"dec\"); :set date1month ([:find \$months \$date1month -1 ] + 1); :set d\
    ate2month ([:find \$months \$date2month -1 ] + 1); :local globalDiff; :loc\
    al yearDiff (\$date2year - \$date1year); :local monthDiff (\$date2month - \
    \$date1month); :local dayDiff (\$date2day - \$date1day); :local hoursDiff \
    (\$date2hours - \$date1hours); :local minutesDiff (\$date2minutes - \$date\
    1minutes); :local secondsDiff (\$date2seconds - \$date1seconds); :local se\
    condsGlobalDiff; :set secondsGlobalDiff ((\$dayDiff * 86400) + (\$hoursDif\
    f * 3600) + (\$minutesDiff *60) + \$secondsDiff); :set dayDiff (\$secondsG\
    lobalDiff / 86400); :set secondsGlobalDiff (\$secondsGlobalDiff - (\$dayDi\
    ff * 86400)); :set hoursDiff (\$secondsGlobalDiff / 3600); :set secondsGlo\
    balDiff (\$secondsGlobalDiff - (\$hoursDiff * 3600)); :set minutesDiff (\$\
    secondsGlobalDiff / 60); :set secondsGlobalDiff (\$secondsGlobalDiff - (\$\
    minutesDiff * 60)); :set secondsDiff \$secondsGlobalDiff; if (\$yearDiff <\
    \_0) do={ } else={  if (\$yearDiff = 0) do={  if (\$monthDiff <0) do={  } \
    else={ if (\$monthDiff = 0) do={ if (\$dayDiff < 0) do={ } else={ if (\$da\
    yDiff = 0) do={ if (\$hoursDiff < 0) do={ } else={ if (\$hoursDiff = 0) do\
    ={  if (\$minutesDiff < 0) do={  } else={  if (\$minutesDiff = 0) do={ if \
    (\$secondsDiff < 0) do={ };  };  }; }; }; }; }; };  };  }; }; :local isYea\
    r1Leap 0; :local isYear2Leap 0; if (((\$date1year / 4) * 4) = \$date1year)\
    \_do={  :set isYear1Leap 1; }; if (((\$date2year / 4) * 4) = \$date2year) \
    do={;  :set isYear2Leap 1; }; :if (\$hoursDiff < 0) do={ :set hoursDiff (\
    \$hoursDiff * -1); }; :if (\$minutesDiff < 0) do={ :set minutesDiff (\$min\
    utesDiff * -1); }; :if (\$secondsDiff < 0) do={ :set secondsDiff (\$second\
    sDiff * -1); }; :local daysInEachMonth (\"31\",\"28\",\"31\",\"30\",\"31\"\
    ,\"30\",\"31\",\"31\",\"30\",\"31\",\"30\",\"31\"); :local daysInEachMonth\
    LeapYear (\"31\",\"29\",\"31\",\"30\",\"31\",\"30\",\"31\",\"31\",\"30\",\
    \"31\",\"30\",\"31\"); :local totalDaysBetweenMonths; if (\$yearDiff = 0 a\
    nd \$monthDiff >= 1) do={  if (\$isYear1Leap = 0) do={  for month from=(\$\
    date1month - 1) to=((\$date2month - 1) - 1) step=1 do={ :set totalDaysBetw\
    eenMonths (\$totalDaysBetweenMonths + [:pick \$daysInEachMonth \$month]); \
    \_};  };  if (\$isYear1Leap = 1) do={  for month from=(\$date1month - 1) t\
    o=((\$date2month - 1) - 1) step=1 do={ :set totalDaysBetweenMonths (\$tota\
    lDaysBetweenMonths + [:pick \$daysInEachMonthLeapYear \$month]);  };  }; }\
    ; :local daysInEachMonthConcatenatedYears; if (\$yearDiff >= 1) do={  for \
    year from=\$date1year to=\$date2year step=1 do={  if (((\$year / 4) * 4) =\
    \_\$year) do={ :set daysInEachMonthConcatenatedYears (\$daysInEachMonthCon\
    catenatedYears, \$daysInEachMonthLeapYear);  } else={ :set daysInEachMonth\
    ConcatenatedYears (\$daysInEachMonthConcatenatedYears, \$daysInEachMonth);\
    \_ }; };  for month from=(\$date1month - 1) to=((\$date2month - 1)+ ((\$ye\
    arDiff * 12) - 1)) step=1 do={  :set totalDaysBetweenMonths (\$totalDaysBe\
    tweenMonths + [:pick \$daysInEachMonthConcatenatedYears \$month]);  }; }; \
    :local globalDaysDiff (\$totalDaysBetweenMonths + \$dayDiff); :if (\$hours\
    Diff < 10) do={  :set hoursDiff (\"0\" . \$hoursDiff); }; :if (\$minutesDi\
    ff < 10) do={  :set minutesDiff (\"0\" . \$minutesDiff); }; :if (\$seconds\
    Diff < 10) do={  :set secondsDiff (\"0\" . \$secondsDiff); }; :set globalD\
    iff (\$globalDaysDiff . \"d\$hoursDiff:\$minutesDiff:\$secondsDiff\"); :lo\
    cal posDay ([ :find \$globalDiff \"d\"]); :local dateDiffDay [:pick \$glob\
    alDiff 0 (\$posDay)]; :local posTime (\$posDay +1); :local dateDiffHours [\
    :pick \$globalDiff \$posTime (\$posTime + 2)]; :local dateDiffMinutes [:pi\
    ck \$globalDiff (\$posTime + 3) (\$posTime + 5)]; :local dateDiffSeconds [\
    :pick \$globalDiff (\$posTime + 6) (\$posTime + 8)]; :local totalSecondsDa\
    teDiff; :set totalSecondsDateDiff ((\$dateDiffDay * 86400) + (\$dateDiffHo\
    urs * 3600) + (\$dateDiffMinutes * 60) + \$dateDiffSeconds); :local limitU\
    ptime [ /ip hotspot user get \$rAH1wRe2lGaJOs limit-uptime ]; :if ( [ :typ\
    eof \$limitUptime ] != \"nil\") do={ :local posDays ([ :find \$limitUptime\
    \_\"d\"]); :local posWeeks ([ :find \$limitUptime \"w\"]); :local days 0; \
    :local posTime 0; :if ( [ :typeof \$posDays ] != \"nil\" && [ :typeof \$po\
    sWeeks ] != \"nil\") do={ :local numWeeks [:pick \$limitUptime 0 \$posWeek\
    s]; :local numDays [:pick \$limitUptime (\$posWeeks+1) \$posDays]; :set da\
    ys ((\$numWeeks*7) + \$numDays); :set posTime (\$posDays +1);  } else={ :i\
    f ( [ :typeof \$posDays ] != \"nil\") do={ :set days [:pick \$limitUptime \
    0 \$posDays]; :set posTime (\$posDays +1); } else={ :if ( [ :typeof \$posW\
    eeks ] != \"nil\") do={ :local numWeeks [:pick \$limitUptime 0 \$posWeeks]\
    ; :set days ((\$numWeeks*7) + \$numDays); :set posTime (\$posWeeks +1); };\
    \_}; }; :local hours [:pick \$limitUptime \$posTime (\$posTime + 2)]; :loc\
    al minutes [:pick \$limitUptime (\$posTime + 3) (\$posTime + 5)]; :local s\
    econds [:pick \$limitUptime (\$posTime + 6) (\$posTime + 8)]; :local total\
    SecondsUptime ((\$days * 86400) + (\$hours * 3600) + (\$minutes * 60) + \$\
    seconds);  :if (\$totalSecondsDateDiff >= \$totalSecondsUptime) do={ [ /ip\
    \_hotspot user remove \$rAH1wRe2lGaJOs ]; [ /ip hotspot active remove [fin\
    d where user=\$name] ]; [ /ip hotspot cookie remove [find where user=\$nam\
    e] ]; }; }; }; }; }; } on-error={ }; }; }; "
Sorry for all the code, I used a hotspot script that I currently plan to disable

Who is online

Users browsing this forum: thor29 and 40 guests