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.

293 questions
1
vote
2 answers

Ansible playbook causes exception occurred during task execution half of the time

i have a problem with ansible: I wrote some playbooks, that do basic things like getting the routeros version from the mikrotik, and the playbook itself seems to works fine. What i mean by that is that about half of the mikrotiks (all in one…
ThePhenex
  • 11
  • 3
1
vote
1 answer

Mikrotik Wap AC. Unresettable?

I have 4 of Mikrotik 'Wap AC's. 3 of them are fine. But the fourth one turned out to be a problem, an enigma. I have reset it (30-30-30) several times but it just refuses to be visible on LAN --WinBox cannot locate it, doing a full network scan…
Adem
  • 255
  • 2
  • 9
1
vote
1 answer

Connect via ssh with a single .bat script to multiple Adresses

I have a environment of 27 Mikrotik Routers and I want to add a user on each one with same credentials. Normally I had to connect on every Router and click through the GUI to add the user, but now I found a way to use SSH connection via cmd. I…
IT-4me
  • 11
  • 1
1
vote
1 answer

Mikrotik router Layer7 regexp block access by DNS zones

I trying to make regex for block resources with specific DNS zones only for example .ru I tried several regex but something Mikrotik router specific and expressions not work... This list of patterns not work and I not understand why, because in…
452
  • 366
  • 3
  • 7
  • 21
1
vote
1 answer

How to extract the output from stdout.lines in ansible

--- - name: Mikrotik info hosts: mikrotik connection: network_cli remote_user: root gather_facts: false tasks: - name: show info routeros_command: commands: /system routerboard print register: rb_info - name: Debug info …
1
vote
0 answers

Error sending profile change command to mikrotik client

I'm having trouble sending a profile exchange command to the router. public void alterProfile(String name) throws Exception { ApiConnection con = null; String stmt = "/ppp/secret/set profile=default " + name; try { …
1
vote
1 answer

Using expect script inside started telnet session

I am using an expect script to interact with telnet session, which started earlier from bash. The script dont listen for symbols in command line. It just send commands after timeout runs out. I am sure, that i entered the right symbol to expect (),…
RAJJJA
  • 25
  • 4
1
vote
1 answer

Problem with sending commands to mikrotik through telnet using expect script

my task is to create automatic script, which send commands to mikrotik router through telnet. I am trying to create "expect" script. But I got stuck at command sending part. Standalone login works well (first code), but when i add another command…
RAJJJA
  • 25
  • 4
1
vote
1 answer

How to use Mikrotik API on Android Studio

I'm trying to use mikrotik api Java in android, but when i downloaded it and added it in android studio project and used it the app forced to close! This is my code: @Override protected void onCreate(Bundle savedInstanceState) { …
1
vote
1 answer

When connecting via ovpn on mikrotik I always get the error

I have a VPN configured by ovpn in my mikrotik that already works, but whenever I connect both by android and Windows, I get the error: ovpn,debug,error,,,,,,,,,l2tp,info,,debug,,,critical,,,,,,,,,,,,,warning duplicate packet, droppin On console…
Bulfaitelo
  • 435
  • 6
  • 18
1
vote
1 answer

MikroTik Router and Unifi AP Guest isolation

My devices: MikroTik RB4011iGS+RM Router (not wireless) and Unifi AP AC LR On the AP, I broadcast two SSIDs. A Staff and a Guest (created on Unifi Controller) On MikroTik created the following: Staff - 192.168.77.0/24 - It works perfectly Guest -…
gyurielf
  • 37
  • 3
1
vote
1 answer

How to bypass the proxy in the mikrotik?

My Internet provider has proxy settings and when connected to the device comes out the same settings. I want the device to getout the Internet without a proxy. Example i want to be;- ==[Internet Source with Proxy]=> Mikrotik device =[internet…
1
vote
1 answer

How to retrieve the mikrotik PPPoE server service name list by using the mikrotik API?

I want to retrieve the mikrotik PPPoE server service name list by using the mikrotik API and loop through all of the service names over a select menu. I have done the code myself. The code looks like below: $ctype…
1
vote
2 answers

Block youtube without block google drive

I want to block youtube.com. I use mikrotik. I can block youtube with Layer7 protocols with this regexp : ^.*(youtube.com).*$ but if I apply this filter, I also can not access google drive. Can I block youtube but still can access to google drive?
Julius Prayogo
  • 133
  • 2
  • 12
1
vote
0 answers

control group of users bandwith limit with User Profile in mikrotik/hotspot and freeradius mikroik-group attribute

i'm using ldap+freeradius and mikrotik as my AAA system. hotspot user is authenticated via ldap server. my users are separated by groups in ldap and i control quota per group and ... in freeradius user file like this: DEFAULT Ldap-Group == "stu", …
1 2
3
19 20