Community discussions

MikroTik App

Search found 16 matches

by notanial
Tue Oct 15, 2024 9:40 pm
Forum: General
Topic: [GUIDE] Grafana, Prometheus, and snmp_exporter
Replies: 23
Views: 24782

Re: [GUIDE] Grafana, Prometheus, and snmp_exporter

My problem was solved. I took snmp.yml that bruins0437 posted in first post and that the decision! Default snmp.yml not worked. Also I tried to generate my own snmp.yml with Mikrotik.mib modules, built snmp generator e.t.c. and than tried to us it, snmp exporter shows me multiple parse errors. I've...
by notanial
Wed Oct 09, 2024 1:24 am
Forum: General
Topic: Load Sharing and Failover
Replies: 12
Views: 975

Re: Load Sharing and Failover

When you become more forthcoming with requirements an optimal config can be designed. What is wireguard on demand mean. ( your using a third party provider? you have wireguard vPS in the cloud? your MT is acting as a wireguard server and you as the admin login from away ? ) Which WAN is used for po...
by notanial
Tue Oct 08, 2024 10:50 pm
Forum: General
Topic: Load Sharing and Failover
Replies: 12
Views: 975

Re: Load Sharing and Failover

Do you have any VPNs ( such as wireguard ) in the mix via a specific WAN, and also any port forwarding to servers --> on either LAN??..........
WG Is on demand (not using in failover).
Port forwarding only via one ISP, not critical for me.
Why?
by notanial
Tue Oct 08, 2024 7:28 pm
Forum: General
Topic: Load Sharing and Failover
Replies: 12
Views: 975

Re: Load Sharing and Failover

@NaseerMalindi Here is my config, I've wrote under your comment in YT (Full MikroTik MTCRE - Recursive Routing (Easy Automatic failover)): Change these to your's: <ISP1-IP> <ISP2-IP> <ISP1-GW-IP> <ISP2-GW-IP> WAN - my ISP1 interface name, change to your's i.e. ether1, change it in mangle LTE - my IS...
by notanial
Fri Mar 01, 2024 9:02 pm
Forum: Announcements
Topic: v7.14.3 [stable] is released!
Replies: 670
Views: 234976

Re: v7.14 [stable] is released!

Hi, I have the following wireguard bth info in the log on a hap ax lite LTE 6 and an RB 5009. With version 7.13 was everything OK. A new configuration of Wiregurad BTH does not bring any changes. I just upgraded to 7.14 and got the same. Wireguard is DEAD A new wg configuration from scratch did the...
by notanial
Sun Oct 23, 2022 9:26 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

Would be great to implement additionally to parse all file and check for sender phone number and parse only his <Message> content <Message> with <Date><Date> that no older system time than 1 minute that equal scheduler time of script execution
by notanial
Sun Oct 23, 2022 9:08 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

Third script: :local getBetween do={ :local posStart 0; :if ([:len $betweenStart] > 0) do={ :set posStart [:find $inputString $betweenStart] :if ([:len $posStart] = 0) do={ :set posStart 0 } else={ :set posStart ($posStart + [:len $betweenStart]) } } :local posEnd 9999; :if ([:len $betweenEnd] > 0) ...
by notanial
Sun Oct 23, 2022 8:00 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

By adding new script: { :local a [/system script get recvSMS1 source] :local outFile "recvSMS1.xml" execute script=$a file=$outFile } I got file recvSMS1.xml.txt with wanted content like in bash script Could someone help me do script to parse xml to get text inside <Content>wol_pc</Content...
by notanial
Sun Oct 23, 2022 7:37 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

works with addiing new line at the end after last bracket
[$recvSMS lteIP="192.168.8.1"];
Now I want to write output to file for futher parse to separate message content and use it as script name run command
by notanial
Sun Oct 23, 2022 3:17 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

also tried
# recv SMS via LTE modem API with fetch
:put ([/tool fetch  http-method=post output=user \
http-header-field=$apiHead \
url="http://$lteIP/api/sms/sms-list" \
http-data=$recvData as-value]->"data");
}
and delete bottom block, still display nothing
by notanial
Sun Oct 23, 2022 1:57 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

I've tested bash script to get SMS xml content: #!/bin/bash DATA=`curl http://192.168.8.1/api/webserver/SesTokInfo` SESSION_ID=`echo "$DATA" | grep "SessionID=" | cut -b 10-147` TOKEN=`echo "$DATA" | grep "TokInfo" | cut -b 10-41` curl http://192.168.8.1/api/s...
by notanial
Sat Oct 22, 2022 11:25 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

Could someone handle script to read SMS from LTE modem?
by notanial
Sat Oct 22, 2022 11:08 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

Hi.
I'm starting to deal with scripts. Can't figure out what I need to change (uncomment) to make it work?
Found solution in another author's script 8)
by notanial
Sat Oct 22, 2022 9:13 pm
Forum: Scripting
Topic: Send SMS messages via Huawei LTE modem API (tested with E3372)
Replies: 84
Views: 26202

Re: Send SMS messages via Huawei LTE modem API (tested with E3372)

Hi.
I'm starting to deal with scripts. Can't figure out what I need to change (uncomment) to make it work?
by notanial
Thu Jan 12, 2017 11:08 am
Forum: General
Topic: Hairpin NAT from LAN to DMZ
Replies: 1
Views: 1429

Hairpin NAT from LAN to DMZ

Hi. I'm trying to make working Hairpin NAT from LAN to DMZ I read an article http://wiki.mikrotik.com/wiki/Hairpin_NAT , but have no luck. I tried scheme ( LAN in the same NET with DMZ ) like in article and it works. MY SCHEME https://postimg.org/image/5nc3v7sxj/ My rules add action=dst-nat chain=ds...
by notanial
Tue Aug 04, 2015 3:11 pm
Forum: Scripting
Topic: how to script for bogon
Replies: 5
Views: 3895

Re: how to script for bogon

I'm using my local server (php & crontab) ======================================================= bogons.php : #!/usr/local/bin/php <?php $file = file('http://www.team-cymru.org/Services/Bogons/fullbogons-ipv4.txt'); $num = 0; $g=1; $tmp=true; while ($tmp) { $tmp = array_slice($file, $num*215, 2...