Questions tagged [mikrotik]

MikroTik is a Latvian company which was founded in 1995 in Riga to develop routers and wireless ISP systems. MikroTik now provides hardware and software for Internet connectivity in most of the countries around the world.

328 questions
1
vote
2 answers

Mikrotik forward traffic to another gateway

I have problem with setting Mikrotik to forward specific packets to another router. Our devices is setup like this: LAN1: 192.168.1.0/24 Mikrotik: 192.168.1.253 Cisco: 192.168.1.252 LAN2: 192.168.2.0/24 Cisco: 192.168.2.252 Main gateway setup at…
Magician
  • 1,944
  • 6
  • 24
  • 38
1
vote
2 answers

mikrotik: route all traffics of particular local ip to defined gateway

I am using Mirkotik RB 1100 v6.0rc11. I have such configuration for my network LAN ether1 192.168.0.0/24 ISP1 Ether6 PPPOE Connections Dynamic Public IP Address ISP2 Ether10 Static Public IP 111.111.111.111/25 I have masquerade Local ips ie…
1
vote
0 answers

VB.net TCP Streaming bytes, Arithmetic Operation Resulted In An Overflow

I have been working on this for a few days now and I'm just spinning my wheels. This is a piece of vb.net code that is for connecting to an api of mikrotik routers. It was provided on their wiki but there is an error that pops up and I'm having a…
MrUsogi
  • 11
  • 1
0
votes
0 answers

Mikrotik: How can I get the data from /interface/lte/lte1/cellular via rest API

I build a script which uses the request.get to get data from a specific path of Mikrotik router (and it works), but I don't know the path for interface/lte/lte1/cellular (the cellular is the problem). How can I get the cellular data (rssi, rsrp,…
0
votes
0 answers

Mikrotik Static Domain

hi i have problem where i put static A name DNS in routerboard to make some domain when they get requested they will redirected you to another ip . it work in routerboard when i ping the domain in routerboard i got replay from the ip that i put in .…
0
votes
1 answer

Block access to a domain on a Mikrotik except from one IP

I am struggling to block access to a domain from all IPs on my LAN with a Mikrotik firewall except from one IP address. The rules I made are: /ip firewall layer7-protocol add name=Netflix regexp="^.+(netflix.com).*\$" /ip firewall filter add…
Waslap
  • 572
  • 3
  • 23
0
votes
1 answer

How can I get SHA-1 hash from :local string variable in Mikrotik Script?

I want to write onvif-script for my camera and each request must be signed with SHA-1 and Base64. This is my Base64 function for example: :global str2base64 do={ :local input [:tostr "$1"] :local options "$2$3" :local charsString "" …
alexbayker
  • 882
  • 9
  • 19
0
votes
1 answer

Send :local variable with /tool fetch without saving variable in file

I want to write script for sending images from my server to ftp with Mikrotik /tool fetch and add it to scheduler, for every minute executing. My image keep in "img" variable. How can I send it to ftp without saving this image in file? :local img…
alexbayker
  • 882
  • 9
  • 19
0
votes
2 answers

Can't connect to remote MySQL (v. 8.0.33 | ubuntu 22.04.2)

On the server with the operating system ubuntu 22.04.2 installed MySQL version 8.0.33 with the following configuration: /etc/mysql/mysql.conf.d/mysqld.cnf # # The MySQL database server configuration file. # # One can use all long options that the…
Riven
  • 1
  • 1
0
votes
1 answer

How to use curl to create a json payload so that wazuh acts on an agentless system

I have a wazuh manager running on debian that receives logs from a mikrotik router. Ehen someone fails 5 times trying to log in the router, it sends an alert to the manager that will act on said alert by adding the IP that tried to login to an…
0
votes
1 answer

Mikrotik wAP (RBwAP2nD), how to revive?

Ran into hackers. Now this device is not reset using the button. When the button is held down, the AP/CAP and 2GHz indicators simply blink. I can hold the button and wait indefinitely - it's useless. Accordingly, NetInstall does not work. Winbox…
Rotovirus
  • 1
  • 1
0
votes
1 answer

Connection to local switch via Mikrotik router jumphost using Ansible

I am using Ansible on my Debian client machine. I am trying to setup inventory file and ansible playbook for showing simple version of local devices from remote site that is behind NAT by using jumphost (bastion) which is my mikrotik/routeros using…
zeros111
  • 9
  • 1
0
votes
0 answers

How can I change NordVPN NAT rule order on Mikrotik with a script?

In a Mikrotik RB750Gr3 I have the NordVpn VPN serving a segment of my internal network. To access the other segments of my internal network, I defined NAT rules in the Firewall. The problem is that the VPN randomly restarts and its NAT rule goes to…
0
votes
0 answers

POSIX regex doesn't work with Mikrotik layer 7 protocol?

I can't make this regex work with layer 7 protocol: ^.*example\\.com I have made my verification with online regex tester and the string www.example.com matches. Any idea on what am missing here? I have tried this regex for…
0
votes
0 answers

Simultaneous Use setup. Subsequent request from same user only trigger Accounting-Request not Access-Request

I am running a virtual setup on GNS3 trying to get everything setup correctly before we implement the new changes to the live environment. In GNS3 I am running a CHR with ROS v6.48. I have FreeRADIUS 3.0 setup on a virtual Ubuntu 22.04 server using…
Karl Keim
  • 1
  • 1