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
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
  • 6
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
  • 6
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
  • 515
  • 7
  • 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
  • 195
  • 2
  • 8
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
  • 3
  • 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
vote
1 answer

How to send mac address to node api service? I'll need it to the Mikrotik API

I'm currently working on a Hotspot using javascript and Mikrotik API. Do you know how to send the mac address to the Mikrotik? Or How should I work it? I'm currently creating the user with the IP.
hiad
  • 398
  • 3
  • 17
1
vote
1 answer

MikroTik RouterOS 6.43.4 - CAP mode via reset button

It seems that with MikroTik RouterOS 6.43.4 setting a device to CAP mode is not persistent across reboots. More detailed, steps I took that reproduce the problem: Connected the wAP AC to my CAPsMAN router's POE port while holding the reset button…
Király István
  • 599
  • 5
  • 24
1
vote
0 answers

how to post an echo from MikrotikAPI PHP

I'm really new to php And i have written this code to grab data from Mikrotik's Wireless Registration Table Full Code
1
vote
0 answers

Adding password to .bat file

I want to run .bat file with certain parameters to open SSH connection to RouterBoard and then do some commands in MikroTik RouterOS. It look like this right now: *C:\\Users\user\Desktop\ssh.bat admin 192.168.1.1 password* ssh…
1
vote
0 answers

EDIT: MikroTik IP accounting via PHP API only storing information that is specified in database

I am working on a script to import MikroTik IP accounting data into MySQL only if there is an existing row in the database containing the IP address. I have a table services with columns id(service id) and ipv4(service IP address) which contains…