Community discussions

MikroTik App

Search found 18 matches

by martking
Tue Dec 03, 2024 1:59 am
Forum: Scripting
Topic: Wireguard Endpoint Watchdog
Replies: 0
Views: 964

Wireguard Endpoint Watchdog

Hi A few years ago I wrote a script to detect and restart IP Sec tunnels. (I know there was DPD but I didn't like the lack of logging) Recently I have got back into Mirotik, and found that when I am using Wireguard, if a peer dropped at times the tunnel wouldn't re-establish even with keepalive etc....
by martking
Mon Dec 18, 2023 12:57 am
Forum: RouterBOARD hardware
Topic: hAP lite RB041-2nD how to update?
Replies: 7
Views: 5475

Re: hAP lite RB041-2nD how to update?

Find the fix-space-6.47-smips.npk file on the net, copy it to your device and reboot it. After that there will be enough free space for updating. This problem appeared and was solved back in 2020-21. Apparently your device has been in the distributor's warehouse since then PS https://forum.mikrotik...
by martking
Fri Jul 14, 2023 11:09 pm
Forum: Wireless Networking
Topic: A new project with captive portal Payment gateway
Replies: 0
Views: 1720

A new project with captive portal Payment gateway

Sorry if this has been asked before, but I've got a new project underway after a long break, I am looking at using mikrotik routers in a captive portal wireless system I would like have a payment gateway, PayPal or other for users to pay for internet access with. I believe that usermanager can do th...
by martking
Mon Aug 24, 2020 7:13 pm
Forum: Scripting
Topic: My Backup file contains malicious scripts
Replies: 5
Views: 2574

Re: My Backup file contains malicious scripts

looking at that script id say you have been hacked, if you try to go to a website on port 80 you should get an error page appear
by martking
Thu Feb 28, 2019 1:33 am
Forum: General
Topic: Multiple IPsec clients from same public IP [SOLVED]
Replies: 3
Views: 1839

Re: Multiple IPsec clients from same public IP [SOLVED]

You sir are a gent,

I had one client set to unique and the other set to require, set them both to unique and bang all working

Thank you
by martking
Tue Feb 26, 2019 2:48 am
Forum: General
Topic: Multiple IPsec clients from same public IP [SOLVED]
Replies: 3
Views: 1839

Multiple IPsec clients from same public IP [SOLVED]

Hi All, I am sure this may have been asked before, however I don't seem to be able to find anyone trying to achieve exactly what I am trying to do. I have 3 Mikrotik's as follows 1 X CHR Router hosted in the cloud with a public IP address eg 1.1.1.1 2 X Mips devices these will be used as clients beh...
by martking
Mon Feb 25, 2019 8:24 pm
Forum: Scripting
Topic: Dynamic IPsec Script
Replies: 2
Views: 1159

Re: Dynamic IPsec Script

I do not think you need this script, just use address=urlofremote instead of address=ip
Whilst you are correct I can use the url of the remote site in the IPsec peer configuration, unfortunatly the SA Dst Address has to be an IP address and you are unable to use a url
by martking
Sun Feb 24, 2019 11:53 pm
Forum: Scripting
Topic: Dynamic IPsec Script
Replies: 2
Views: 1159

Dynamic IPsec Script

Hi All Please see my Dynamic IPsec script below, this is a customisation of other peoples scripts, The tunnel ID is what you have writen in the comment section. I hope you find it useful. :local Remoteaddr "urlofremote" :local TunID "in comment section of peer and policy" #####DO...
by martking
Tue Feb 19, 2019 5:47 pm
Forum: Scripting
Topic: IPSec Monitoring Script
Replies: 10
Views: 19198

Re: IPSec Monitoring Script

Glad the script was of use to you both, the other good thing about the script, is generates interesting traffic to Start/Keep tunnels alive
by martking
Fri Mar 23, 2018 12:57 am
Forum: Scripting
Topic: Creating a loop in script
Replies: 0
Views: 1607

Creating a loop in script

Hi All a little help with a Loop I have the below to detect if the /ip cloud has updated correctly after i had a problem with it not updating when my public ip changed. As I am trying to learn scripting I thought id try and write a solution and came up with the below. This works perfectly except id ...
by martking
Mon Mar 12, 2018 5:25 pm
Forum: Scripting
Topic: Anti lockout script
Replies: 3
Views: 1696

Re: Anti lockout script

Hi Thanks for your reply. No I have not missed the safe mode option but we have had instances in the past where safe mode didn't operate as expected unfortunately, so the idea is to create a script that will make it idiot proof in fact the only way to lockout would be to backup the config to a backu...
by martking
Mon Mar 12, 2018 3:56 pm
Forum: Scripting
Topic: Anti lockout script
Replies: 3
Views: 1696

Anti lockout script

I'm after a script that will work as a anti lockout script e.g. 1, administrator logs in to Mikrotik, 2, admin makes changes to firewall rules or address lists Nat table and either kills the internet connection or removes remote access 3, script schedule reads log file detects a change, then checks ...
by martking
Mon Mar 12, 2018 12:27 pm
Forum: Scripting
Topic: IPSec Monitoring Script
Replies: 10
Views: 19198

IPSec Monitoring Script

Hi All, Please forgive me if I have re-invented the wheel! But I have been looking for a Script that would monitor an IPSec tunnel and if it couldn't reach the endpoint it would force the tunnel to restart, unfortunately I couldn't find any script to do quite what i wanted, so I borrowed some people...
by martking
Fri Apr 14, 2017 7:46 pm
Forum: Beginner Basics
Topic: Ping Problems
Replies: 5
Views: 4320

Re: Ping Problems

Thanks for the advice everyone I've cleaned up my config as you can see below, According to Amolis there is no way I can ping the internet using the LAN interface, it dose make seance what hes saying, in other words when the ping tool uses the LAN interface to ping the outside world it's not applyin...
by martking
Fri Apr 14, 2017 2:44 am
Forum: Beginner Basics
Topic: Ping Problems
Replies: 5
Views: 4320

Ping Problems

Hi All I've been having some ping problems with the Ping Tool, I can connect a laptop to the Mikrotik Lan or WIFI interface and ping 8.8.8.8 or any other address on the internet without a problem I can use ping tool and select the PPOE interface and it works fine but if I select the LAN interface or...
by martking
Wed Apr 05, 2017 5:05 pm
Forum: General
Topic: Ping tool/Masqurade rules
Replies: 0
Views: 438

Ping tool/Masqurade rules

Hi All, after some frustration due to Cisco to Mikrotik VPN's I decided to replace my existing router indoors with a RouterBOARD mAP 2nD so I can learn more about them, whilst I was configuring the device I was having the similar issues I was experiencing with the VPN, eg I could not ping the outsid...
by martking
Tue Apr 04, 2017 10:43 am
Forum: General
Topic: Mikrotik to Cisco IPSEC
Replies: 2
Views: 795

Re: Mikrotik to Cisco IPSEC

Hi thanks for your reply, Ping is enabled on both Cisco ASA routers unfortunately I don't have control over the CISCO ends, and I am sure that my policy's and firewall rules including the SRC Nat are all setup correctly is there anymore commands I can run to see what exactly is going on I've been lo...
by martking
Mon Apr 03, 2017 9:08 pm
Forum: General
Topic: Mikrotik to Cisco IPSEC
Replies: 2
Views: 795

Mikrotik to Cisco IPSEC

Hi All, I have an issue we have 4 sites, the tunnels come up between the two main offices and two branch offices without a problem but, one of our main offices cant ping anything on the two remote offices and viscera versa we have checked our policy's and they are correct, the policy's are identical...