Community discussions

MikroTik App

Search found 44 matches

by Knight
Mon Mar 06, 2023 5:51 am
Forum: Beginner Basics
Topic: Remote DNS Request, Block Client Device [SOLVED]
Replies: 6
Views: 2228

Re: Remote DNS Request, Block Client Device [SOLVED]

What's the point? Try to share more details. If it's some non-public domain, you could do some filtering on that. But then I'd expect also internal addresses and there would have to be some VPN to access them, so just use it for accessing DNS server too. If it's resolver for regular public domains,...
by Knight
Sun Mar 05, 2023 11:43 pm
Forum: Beginner Basics
Topic: Remote DNS Request, Block Client Device [SOLVED]
Replies: 6
Views: 2228

Remote DNS Request, Block Client Device [SOLVED]

Hello, I am building a private DNS server using Mikrotik with remote requests enabled. My clients are connected to my server from the WAN port and they are not on the same network ( Not local clients ). So, aside from the IP Address because it changes everytime the client reboots the router, is ther...
by Knight
Mon May 09, 2022 5:40 pm
Forum: Beginner Basics
Topic: Remote Access Local PPPOE client
Replies: 1
Views: 1530

Remote Access Local PPPOE client

Hello, I have Mikrotik RB750GR3 with this config: ISP -> Mikrotik PPPOE Server -> PPPOE Router I have a public IP on my Mikrotik and I want to access the PPPOE Router on port 80. I checked the PPP Active connection and the PPPOE Router has an address: 10.0.138.182 So, I tried to add this nat rule: a...
by Knight
Sun Mar 20, 2022 3:05 pm
Forum: Beginner Basics
Topic: Can't access hotspot login page with HTTPS enabled
Replies: 2
Views: 1195

Can't access hotspot login page with HTTPS enabled

Hello, I have configured y RB951UI( v7.1 ) to enable hotspot login with HTTPS, I have configured my certificates and enabled www-SSL in the services, & enabled hotspot login with HTTPS & HTTPS redirect in the hotspot profile options. but my hotspot login page is not opening when I visit http...
by Knight
Tue Aug 24, 2021 2:57 pm
Forum: Scripting
Topic: what is most recommended API library ?
Replies: 0
Views: 1225

what is most recommended API library ?

Hello, I am planning to build a project that will use Mikrotik as an authentication gate, I can code in PHP, JS & C# but it's been years since I have dealt with Mikrotik API and much of things have changed. So I wonder which language today between those three languages I have mentioned has the m...
by Knight
Thu Feb 19, 2015 4:34 am
Forum: Scripting
Topic: how to say "not equal" in API commands
Replies: 3
Views: 2960

Re: how to say "not equal" in API commands

thank you the last one worked .. but can i add more than 2 options like this code API.Send("/interface/print"); API.Send("?name=WAN"); API.Send("?name=Local"); API.Send("?name=Bridge1"); API.Send("?#&!", true); or API.Send("/interface/print&...
by Knight
Thu Feb 19, 2015 3:19 am
Forum: Scripting
Topic: how to say "not equal" in API commands
Replies: 3
Views: 2960

how to say "not equal" in API commands

hi, how to send a command to mikrotik through API to print all results that is not equal to something i tried to do smothing like this API.Send("/interface/print"); API.Send("?name !=WAN", true); or this API.Send("/interface/print"); API.Send("!name=WAN", true...
by Knight
Sun Feb 08, 2015 4:31 pm
Forum: Scripting
Topic: small problem in my c# project
Replies: 3
Views: 1151

Re: small problem in my c# project

boen_robot i love you man you are the only one here who are always reply to my questions :)

thank you and i will try your solution
by Knight
Sun Feb 08, 2015 1:01 am
Forum: Scripting
Topic: small problem in my c# project
Replies: 3
Views: 1151

Re: small problem in my c# project

Any Help ??
by Knight
Fri Feb 06, 2015 1:46 am
Forum: Scripting
Topic: small problem in my c# project
Replies: 3
Views: 1151

small problem in my c# project

hi and sorry about my next bad english :) i want to make a small tool look like winbox using c# api class and this the class link http://wiki.mikrotik.com/wiki/API_in_C_Sharp but when i add a code inside a timer to update cpu-load and uptime every 5 second the form hang's and freeze for a moment eve...
by Knight
Mon Sep 29, 2014 2:23 am
Forum: General
Topic: search in page content using layer 7
Replies: 0
Views: 686

search in page content using layer 7

hi all i want to know if i can search in page content about some words using layer 7 or no

i want to search about some html tags like "html" or "head" .. if layer 7 can do this what is the right regexp to do this operation
by Knight
Tue Nov 19, 2013 8:17 pm
Forum: Scripting
Topic: help with my phpinfo
Replies: 5
Views: 2056

Re: help with my phpinfo

thanks man i work's on port 21 :)

I know I am disturbed you and i'm sorry about that

you are the best here
by Knight
Tue Nov 19, 2013 4:29 am
Forum: Scripting
Topic: help with my phpinfo
Replies: 5
Views: 2056

Re: help with my phpinfo

i changed api port to 22 and disabled ssh because port 80 and 443 didn't work with me on the local host

port 22 work's fine on the localhost but the same problem on my hosting

and now my php is 5.3.24

i don't know where is the problem now :(
by Knight
Mon Nov 18, 2013 4:57 am
Forum: Scripting
Topic: help with my phpinfo
Replies: 5
Views: 2056

help with my phpinfo

hi

this is my hosting phpinfo

http://www.iegy.net/phpinfo.php

fsockopen enabled

allow_url_fopen on

but my api project is not working on this hosting

there is no problem in my api project because it works fine on localhost

i need help about the php requirements to run my api project
by Knight
Mon Oct 28, 2013 12:09 am
Forum: General
Topic: local server with subnetmask 22
Replies: 3
Views: 1424

Re: local server with subnetmask 22

Set a proper subnet mask on your devices.
i'm using dhcp-server where i can set this subnet mask
by Knight
Sun Oct 27, 2013 3:48 pm
Forum: General
Topic: local server with subnetmask 22
Replies: 3
Views: 1424

local server with subnetmask 22

hi i hava more than 254 client so i used subnetmask /22 and now i have mor than 1000 ip address my problem : i have local server inside my network with ip address 192.168.1.2 i can't access this local server from the computers with different ip class that is mean i can't access local server from com...
by Knight
Fri Oct 11, 2013 5:19 pm
Forum: Scripting
Topic: how to login from external server using api
Replies: 9
Views: 6346

Re: how to login from external server using api

i have a good solution if the client browser don't support javascript i will make the form display:none; and i will make another div with display:block; and i will write inside this div a message say " Your browser must support javascript " or something like that and i will write javascrip...
by Knight
Fri Oct 11, 2013 2:20 pm
Forum: Scripting
Topic: how to login from external server using api
Replies: 9
Views: 6346

Re: how to login from external server using api

yes i did it but i used onsubmit event to execute javascript function before form submission this function takes the username and password then send them to check.php in check.php i can do what i want and if i want to stop login I use return false to stop the form submission then print the error ins...
by Knight
Fri Oct 11, 2013 5:15 am
Forum: Scripting
Topic: how to login from external server using api
Replies: 9
Views: 6346

Re: how to login from external server using api

I did it but without Api

if any one want to know how just tell me and i will try to explain my code

but he will suffer a lot from my bad english :)
by Knight
Mon Oct 07, 2013 5:09 pm
Forum: Scripting
Topic: how to login from external server using api
Replies: 9
Views: 6346

Re: how to login from external server using api

ok thnx man :D
by Knight
Mon Oct 07, 2013 4:45 am
Forum: Scripting
Topic: how to login from external server using api
Replies: 9
Views: 6346

how to login from external server using api

hi, i need to build an external hotspot using API and php because i want to add some other options to my hotspot i want to know how i can login to mikrotik server using API, i mean i need to make login form on my php server and the user can use this form to login to my hotspot server is this possibl...
by Knight
Tue Jun 18, 2013 5:54 am
Forum: General
Topic: strange problem with my pppoe server
Replies: 1
Views: 978

strange problem with my pppoe server

hi, i hope my bad english helping me to explain my problem :) i have mikrotik pppoe server and i have a problem the connection some times dropped automatically from active connection and sometimes in interfaces appear connection <pppoe-0> this problem is not with all computers my computer is always ...
by Knight
Wed Jun 12, 2013 11:25 pm
Forum: General
Topic: Dns Redirect
Replies: 2
Views: 1040

Dns Redirect

hi im not good in English but i will try to explain my problem i have a problem with dns redirect i'm trying to redirect www.myname.com to 10.0.0.1 when i add it to dns static it works but sometimes its stooping the redirect to my local address and navigate to another site so how i can make it alway...
by Knight
Sun Nov 04, 2012 3:29 pm
Forum: Scripting
Topic: api set and remove
Replies: 3
Views: 2616

Re: api set and remove

thanks mr boen Yes, but only in menus where the other thing is required to be unique, such as the name of a simple queue how i can use set with name field in simple queue i use this code if ($API->connect("$ip", "$user", "$pass")) { $API->write('/queue/simple/set',false...
by Knight
Sun Oct 28, 2012 5:11 pm
Forum: Scripting
Topic: simple queue and api speed
Replies: 3
Views: 2222

Re: simple queue and api speed

thanks for your reply i don't have many queue it's only 1 queue I use mikrotik as pppoe server and with pppoe server i can't share files with lan speed so i use a simple queue in the top of the menu to open the download speed if the dst-address is 1.1.1.0/24 this the export of my simple queue this q...
by Knight
Sun Oct 28, 2012 1:50 am
Forum: Scripting
Topic: simple queue and api speed
Replies: 3
Views: 2222

simple queue and api speed

hi i face strange problem

when i add any simple queue API speed become slow

Although the max-limit upload and download set to unlimited

when i disable the queue api works fine but when i enable queue api become slow

i don't know why
by Knight
Wed Oct 24, 2012 2:15 pm
Forum: Scripting
Topic: api set and remove
Replies: 3
Views: 2616

api set and remove

hi i have a small question about set and remove in api when i want to remove something i use this code if ($API->connect("$ip", "$user", "$pass")) { $API->write('/ppp/active/remove',false); $API->write("=.id=$id"); $READ = $API->read(false); $ARRY = $API->pars...
by Knight
Wed Oct 24, 2012 2:03 pm
Forum: General
Topic: dst-nat stop my mangle
Replies: 0
Views: 591

dst-nat stop my mangle

hi i have mangle rule i use it to calculate pppoe user bandwidth this is the rule /ip firewall mangle add action=passthrough chain=forward comment=11 disabled=no layer7-protocol=\ !smt out-interface=<pppoe-11> it works fine and calculate the bandwidth but when i add anew rule to nat to redirect conn...
by Knight
Mon Oct 15, 2012 2:48 pm
Forum: Scripting
Topic: Why API Is Too Slow
Replies: 6
Views: 1969

Re: Why API Is Too Slow

thanks, you are right.
your suggest solved my problem
by Knight
Mon Oct 15, 2012 2:41 am
Forum: Scripting
Topic: Why API Is Too Slow
Replies: 6
Views: 1969

Why API Is Too Slow

hi I'm using API Php Class But I want to know why api is too slow why it is not like winbox it's take long time to disable,enable,add or remove for example i have 600 user on rb750gl i can enable and disable all users but it's take long time may be 5 minutes or more but via winbox just seconds this ...
by Knight
Mon Oct 08, 2012 2:39 am
Forum: General
Topic: calculate bandwidth usage
Replies: 0
Views: 609

calculate bandwidth usage

how i can calculate bandwidth usage for pppoe client via firewall client address 1.1.1.254 i'm using this rule to calculate bandwidth usage /ip firewall filter add action=passthrough chain=forward disabled=no src-address=1.1.1.254 but it does not accurately calculate bandwidth usage because when i'm...
by Knight
Sun Oct 07, 2012 4:08 pm
Forum: General
Topic: Redirect Connection Via Firewall
Replies: 1
Views: 684

Re: Redirect Connection Via Firewall

No reply as usual

Any help here please
by Knight
Sat Oct 06, 2012 11:04 pm
Forum: General
Topic: Redirect Connection Via Firewall
Replies: 1
Views: 684

Redirect Connection Via Firewall

i have a layer7 protocol to detect torrent sites. it work fine and i can drop connection from filter rules but i don't need to drop connection i want to redirect connection to another address i tried to do that via nat but it didn't work. so how i can redirect the site which detected by layer7 to an...
by Knight
Mon Oct 01, 2012 8:09 pm
Forum: General
Topic: how to deny mac from dhcp-server
Replies: 4
Views: 2149

Re: how to deny mac from dhcp-server

Solved

thnx For All :D
by Knight
Mon Oct 01, 2012 1:13 pm
Forum: General
Topic: how to deny mac from dhcp-server
Replies: 4
Views: 2149

Re: how to deny mac from dhcp-server

thnx for your reply,

but drop the client by mac via IP-firewall input don't block the client from dhcp-server

the client still take automatic address

any other idea
by Knight
Mon Oct 01, 2012 9:47 am
Forum: General
Topic: how to deny mac from dhcp-server
Replies: 4
Views: 2149

Re: how to deny mac from dhcp-server

14 Views And No Reply ??

Please Help How Do I Create A Blacklist, Any Person Inside This list Can't Take Automatic Ip-Address From Dhcp-Server
by Knight
Mon Oct 01, 2012 3:50 am
Forum: General
Topic: how to deny mac from dhcp-server
Replies: 4
Views: 2149

how to deny mac from dhcp-server

Hi All, I Want to Deny Client Pc From Dhcp-Server Using It's Mac-Address I Mean The Client Pc Can't Take Ip-Address From Dhcp-Server I don't Need To Block The Client From Using The Internet But I need To Block The Client From Taking Automatic Ip-Address But If The Client Set Manual Ip-Address He Can...
by Knight
Mon Jun 25, 2012 2:32 am
Forum: Scripting
Topic: A Little Help Here Please
Replies: 4
Views: 1555

Re: A Little Help Here Please

Thanks for your help

i will try your class
by Knight
Sun Jun 24, 2012 2:58 am
Forum: Scripting
Topic: A Little Help Here Please
Replies: 4
Views: 1555

Re: A Little Help Here Please

thanks 1 - i have an account on 000webhost and i tried to test my script on it before some months but it didn't work maybe it was problem in my script. anyway i will try again 2 - i'm with you the own server is the best and i use linux server to test my work and it worked good but i want to test my ...
by Knight
Fri Jun 22, 2012 12:54 am
Forum: Scripting
Topic: A Little Help Here Please
Replies: 4
Views: 1555

A Little Help Here Please

hello all before anything I apologize about my bad english because it's not my original language my question is : i want free host which I can run API class because i tested my script on many free hosts but unfortunatly the disabled functions stoped my script So i hope any one here know free hosting...
by Knight
Mon Feb 13, 2012 11:22 pm
Forum: Scripting
Topic: Php Api Server Requirements
Replies: 3
Views: 1808

Re: Php Api Server Requirements

thanx fsockopen is the problem orioncites said this function disabled this is the phpinfo http://www.orionstorage.com/info.php and i use * RouterOS PHP API class v1.4 * Author: Denis Basta please tell me if any functions disabled i will ask them to enable fsockopen but if they refused can i replace ...
by Knight
Mon Feb 13, 2012 4:59 am
Forum: Scripting
Topic: Php Api Server Requirements
Replies: 3
Views: 1808

Php Api Server Requirements

Hi All what is server requirements to run api php class because when im trying to use api php class it can't connect to the server api service enabled in mikrotik the same class worked on free space ( heliohost.org hosting ) but it didn't work on my site ( orioncities.com hosting ) any body can help...
by Knight
Thu Feb 09, 2012 5:48 am
Forum: Scripting
Topic: set field to blank
Replies: 2
Views: 1465

Re: set field to blank

it works, thank you

this is the code using unset
   $API->write('/ppp/profile/unset', false);
   $API->write("=.id=*F",false);
   $API->write("=value-name=local-address",true);
may help any one
by Knight
Thu Feb 09, 2012 1:52 am
Forum: Scripting
Topic: set field to blank
Replies: 2
Views: 1465

set field to blank

hi i can't speak english well but i will trying to explain im usin API Php Class and im trying to build ppp configuration menu when im trying to edit ppp profile im using $API->write('/ppp/profile/set', false); $API->write("=.id=$id",false); $API->write("=local-address=1.1.1.1",t...