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
votes
1 answer

forward traffic from one ip in lan to other ip on different interface using microtik router

I have a microtik router which is connected to different networks, one of them is our lan, another is the network of a media system we are using. My problem is, that I need to redirect all traffic going to an IP in our lan assigned to the microtik…
fredo.r
  • 381
  • 1
  • 2
  • 14
-1
votes
2 answers

Mikrotik hotspot login with React-Native

I'm developing a mobile app using react-native as a client to login to Mikrotik Hotspot. The app has able to stores username and password but I don't know where I should send this variable as request. Or maybe there's another clean solution for this…
user2047836
  • 47
  • 1
  • 6
-1
votes
2 answers

loop in python not working for all line in text file

this code for get identity of mikrotik device. after run this code. only work for last IP lines in ip.txt 192.168.3.6 --> NET_6 192.168.3.8 --> NET_8 192.168.3.10 --> NET_10 import os filename = 'ip.txt' with open(filename, 'r') as f: for…
user2254798
  • 553
  • 2
  • 6
  • 17
-1
votes
1 answer

Passing multiple variables from a Bash Script to an Expect Script

I've been trying to get an expect/bash script that can read each line of a CSV file and pull both the hostname address and the password; as these are all different for each MikroTik I am trying to access. I've recently sent an auto.rsc file to…
Zetera
  • 13
  • 4
-1
votes
1 answer

How to display data from the command that I run to the ListView Android?

I have a problem with my code, I want to display the results of the command that I run into the ListView This is my code now public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle…
-1
votes
2 answers

How to configure auto login feature into Freeradius

I Installed Freeradius Service, MySQL and Imported freeradius's Database Schema to Mysql I Configured Mikrotik to FreeRadius I created User and Password into MySQL and I have Captive Portal Design Now Everything is Okay. Users can Login only by…
AhmedMItman
  • 247
  • 1
  • 3
  • 13
-1
votes
3 answers

freeradius server on cloud

I am using free radius server locally on Ubuntu machine , and my system working fine . I want to allow my system to run from cloud to start sell it , but I don’t know how to make my free radius working on cloud . clients don’t have public ip…
Muhammad
  • 101
  • 1
  • 11
-1
votes
2 answers

String with \n causing following variable errors

I have a variable that has \n, spaces and other symbols in and is causing errors (Notice: Undefined offset: 0) in my code. I am trying to update the terminal note on my MikroTik routers via API but when the note variable has multiple lines and \n's…
-1
votes
1 answer

Change Profile of PPP Secret in Mikrotik using Mikrotik API

I just want to use this code ( ppp secret set profile="NON-Payment" ) instead of using ( /ppp/secret/disable ) in the 3rd last last line of this code. I tried but no success. Please help. try { $client = new…
M Ahsan Asif
  • 37
  • 12
-1
votes
1 answer

More efficient way of storing MikroTik IP accounting data?

I had a previous question on how to do this script and have figured out a way but I am not too sure if I should use this method. The other post is available here. Can someone point me in the right direction if there is a more faster/efficient way of…
-1
votes
1 answer

Connect to server behind

I have a newly installed MikroTik switch, and have successfully configured it for VPN traffic. However, behind the switch is a Linux server to which I am unable to connect via PuTTY. I can see the server and its IP address in Winbox->IP->DHCP…
TimHelton
  • 67
  • 3
-1
votes
2 answers

can the user login mikrotik hotspot inside another mikrotik?

I have mikrotik. Not Away From Home There are People Who Have Hotspot Network Via Mikrotik. I Want to Log in from mikrotik system because I use it for some people topology like this: Mikrotik[with Hotspot system] --> My Mikrotik [Log in And Share]…
-1
votes
1 answer

freeradius allow user access according to billing plan

I have freeradius server installed on centos 6 with MySQL and Mikrotik as a controller. I want to restrict the user to use internet according to billing plan like use internet for 1 hour in 3 days. After 3 days the same username should get again 1…
Ganesh
  • 114
  • 1
  • 10
-1
votes
1 answer

Undefined offset: 0 Codeigniter

function chart($id){ $rows = array(); $rows2 = array(); $data['mikrotik'] = $this->mikrotik_api->interfaces()->ethernet()->get_byname($id); if(count(isset($data[0])) > 0 ){ $rx =…
Edo VV
  • 3
  • 7
-1
votes
1 answer

mikrotik python3 API call from celery

I use the Python3 API of mikrotik to create some backups files, When celery executes the python script the process doesn’t complete and the backup file is not created . I attach a screenshot so you can see the output from the api. Any suggestion,…