Community discussions

MikroTik App

Search found 19 matches

by hafte
Wed Feb 05, 2025 4:41 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

I'm using this script for auto send sms: :global smsMessageRequired :if [/tool/sms/inbox find where message ~"1237"] do={ :set $smsMessageRequired value=true} else={ :set $smsMessageRequired value=false} :if ($smsMessageRequired=true) do={ /tool/sms/send Vivacom-LTE phone-number=1237 statu...
by hafte
Mon Sep 02, 2024 8:43 am
Forum: Beginner Basics
Topic: Wireguard Road Warrior Problems with muti WAN
Replies: 5
Views: 1563

Re: Wireguard Road Warrior Problems with muti WAN

Hello anav, It seem mission imposible for me to resolve this over forum with my very basic knowage is in mikrotik. All that learned was from post, but this days there a lot if materials, in it is very easy to got confused. One tick can ruine everiting. Will try i future to play again with this, but ...
by hafte
Sat Aug 31, 2024 2:40 pm
Forum: Beginner Basics
Topic: Wireguard Road Warrior Problems with muti WAN
Replies: 5
Views: 1563

Re: Wireguard Road Warrior Problems with muti WAN

Tried again with some modification, but what i can see is that: 1. over wifi handshake is send and accepted on WAN-IP-02, but replay handshake is send via WAN-IP-03 - wireguard not working marks.png 2. over phone cellular handshake is send and accepted on WAN-IP-02 , replay handshake is send again v...
by hafte
Fri Aug 30, 2024 8:03 pm
Forum: Beginner Basics
Topic: Wireguard Road Warrior Problems with muti WAN
Replies: 5
Views: 1563

Re: Wireguard Road Warrior Problems with muti WAN

Hi anav, I will try to explain the setup, but it is also complected to me :-). There are too may workarounds due to missing functionality on the router are required. Probably it will be more easy to have 3 static IPs, but provider does not have such options. "So is the mikrotik AX3 not the serv...
by hafte
Fri Aug 30, 2024 4:24 pm
Forum: Beginner Basics
Topic: Wireguard Road Warrior Problems with muti WAN
Replies: 5
Views: 1563

Wireguard Road Warrior Problems with muti WAN

Hello All, I have some strange and weird behavior with wireguard VPN on my mikrotik hAP AX3. Setup is probably mess for you, but this is as I use 3 public WAN IPs via DHCP over single port with vvrp. In this way i can get 3 public IPs. Almost everything works as expected, except wireguard from road ...
by hafte
Thu May 30, 2024 5:04 pm
Forum: Announcements
Topic: v7.15.3 [stable] is released!
Replies: 649
Views: 297538

Re: v7.15 [stable] is released!

@eworm - You are probably right, but how to find where is the specific syntax error, to be able to fix it. Scripts do all what is required and only say check manualy :-) It's not about syntax errors, but runtime errors. Probably your script is accessing a configuration item that does not exist. You...
by hafte
Thu May 30, 2024 4:22 pm
Forum: Announcements
Topic: v7.15.3 [stable] is released!
Replies: 649
Views: 297538

Re: v7.15 [stable] is released!

@eworm - You are probably right, but how to find where is the specific syntax error, to be able to fix it. Scripts do all what is required and only say check manualy :-)
by hafte
Thu May 30, 2024 4:09 pm
Forum: Announcements
Topic: v7.15.3 [stable] is released!
Replies: 649
Views: 297538

Re: v7.15 [stable] is released!

Script execution seems not fixed.
After update to 7.15, red warnings started in sys log with: "Executing script from scheduler failed, please check it manually"
Scrips seems to be working, but this warning is present.
All scripts with :global or other definitions generate error.
by hafte
Sat Mar 02, 2024 6:08 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

Thank you @optio,

I'm good to go. All is set and will monitor the behaviour in next days.

Thanks again for all the hints and help.
by hafte
Sat Mar 02, 2024 12:37 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

With some True or False, below seems to be working: :global smsMessageRequired :if [/tool sms inbox find where message ~"1237"] do={ :set $smsMessageRequired value=true} else={ :set $smsMessageRequired value=false} :if ($smsMessageRequired=false) do={:return [:nothing]} :if ($smsMessageReq...
by hafte
Thu Feb 29, 2024 10:16 am
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

WAN network is not blocked , but limited to 64kb, where mainly ping is working.

I do not have script, but the above example is my starting point.
I need somehow to refine it and make it working, but with my knolage it will be true or false fight :-)
by hafte
Wed Feb 28, 2024 8:57 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

Hello @optio, I appreciate and thanks for the script, but is too advanced for my knowledge. I need something simple and straight forward. I made some progress what will help me and look simple, but i need some help getting things to work . At least find is working and returns some positive result if...
by hafte
Wed Feb 28, 2024 6:33 pm
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

Script basically works, but it is hard to sync and also after some time runs out of sync as ISP traffic counting is not the same as local. It might be more useful when SMS for reached quota is received, script to send SMS to ISP How to find particular word in SMS body and make do something? For exam...
by hafte
Mon Feb 26, 2024 8:30 am
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

@option thanks.
Implemented option 1 and seem working. Will monitor it in next days.
I have LTE RBLHGGR which does not support USB and using comment with bytes prevents reset if rooter is rebooted.

The other option is to send SMS every 4-6 hours not bothering for traffic :-)

Thanks all.
by hafte
Sun Feb 25, 2024 8:08 am
Forum: Scripting
Topic: Creating a script for sending SMS
Replies: 19
Views: 10806

Re: Creating a script for sending SMS

I'm on the same both.
Can someone help us to mitigate this provider limitations of 10GB.

Somehow it is required to monitor data usage on the LTE interface and send sms when quota is reached.
by hafte
Wed Jun 07, 2023 4:50 pm
Forum: RouterOS beta
Topic: Using WifiWave2 to bridge two Audience wirelessly, thoughts? == 4-address mode
Replies: 56
Views: 30900

Re: Using WifiWave2 to bridge two Audience wirelessly, thoughts? == 4-address mode

It works. Thanks. I have sucessfully briged two hAP AX3 routers to extend home network. One remark is to check on brige ports and include VXLAN in LAN. This can save you a lot of time wondering why it doesn't work. I had issues with FW rule "Drop All Not Coming From LAN" as connections wer...
by hafte
Thu Jan 05, 2023 3:17 pm
Forum: Beginner Basics
Topic: Primary and Standby DHCP Gateway with Bridge Router Setup
Replies: 2
Views: 635

Re: Advice for Primary + Bridge Router Setup

Hello All, I was managed to fix the issue finaly. For these who are interested, below is what was done. 1. Used Netwach on Mikrotik for ping monitoring on second gateway Sophos XG. Netwatch have up and down option to execute the commands. If Sophos XG is reachable up-script set gateway on DHCP serve...
by hafte
Thu Jan 05, 2023 9:24 am
Forum: Beginner Basics
Topic: Primary and Standby DHCP Gateway with Bridge Router Setup
Replies: 2
Views: 635

Re: Advice for Primary + Bridge Router Setup

Hello Again. I have found a way how this can work, but it requires some scripting. I'm not in deep with this part and will apprishiate if some can help me. Tested it and if manualy change DHCP options, it works. What is needed is script that can perform automaticaly: 1. Check if gateway 10.30.10.2 i...
by hafte
Wed Jan 04, 2023 1:37 pm
Forum: Beginner Basics
Topic: Primary and Standby DHCP Gateway with Bridge Router Setup
Replies: 2
Views: 635

Primary and Standby DHCP Gateway with Bridge Router Setup

Hello All, Currently my home network is using virtual firewall (Sophos XG) , but this is not so practical when hosting server is down. All my home devices cannot connect to internet. From other side mikrotik does not support some usefull things like reverse proxy so i can easily replace Sophos. I'm ...