Community discussions

Search found 52 matches

  • 1
  • 2
by giobulia
Mon Sep 02, 2013 8:01 pm
Forum: General
Topic: clients in Mikrotik cannot access Debian OpenVPN Server
Replies: 3
Views: 20908

Re: clients in Mikrotik cannot access Debian OpenVPN Server

Hello,

I can't connect OpenVPN server (Centos) to Mikrotik, can you help me?

Thank you
by giobulia
Thu Aug 22, 2013 3:07 pm
Forum: General
Topic: Mikrotik connect to OPENVPN server
Replies: 1
Views: 417

Mikrotik connect to OPENVPN server

Hello,

I need to connect my router on my OPENVPN server (CentOS),

How can I do it? Does I need openvpn any license?

I'm add it on PPP -> + -> OVPN Client and I'm filling all requested forms.

But connection does not work

How can I connect it?

Thank you
by giobulia
Tue Jul 16, 2013 12:21 am
Forum: General
Topic: How can I change host for domain?
Replies: 0
Views: 419

How can I change host for domain?

Hello,

I'm interesting how can I change IP for domain
I need to change IP for all *.c.youtube.com

I need to change mirror

Thank you
by giobulia
Fri Jul 12, 2013 6:32 pm
Forum: Beginner Basics
Topic: How can I change youtube mirror?
Replies: 0
Views: 321

How can I change youtube mirror?

Hello,

I'm interesting how can I change youtube mirror?

if anyone know also I'm interesting how can I cache youtube videos on my servers?

Thank you
by giobulia
Mon Jun 18, 2012 7:58 pm
Forum: General
Topic: Mikrotik trainings
Replies: 1
Views: 295

Mikrotik trainings

Hello, I want to training this three: July 02-04, Latvia, Rīga, router.lv (MTCNA), English July 05-06, Latvia, Rīga, router.lv (MTCTCE), English July 09-10, Latvia, Rīga, router.lv (MTCRE), English I'm from Georgia and I'm interesting, where I can stay? which hotel? and that prices is there? Thank you
by giobulia
Thu Jun 07, 2012 5:57 pm
Forum: Beginner Basics
Topic: queues problem
Replies: 5
Views: 1069

Re: queues problem

Thank you for replay. You should group related queues under a parent that specifies your ISP's real speed as its max-limit. One queue for all "L" queues, one for all "G" queues. Also, place those parent queues at the very top. This is easy way, I like this. but my friends recommended me queue trees....
by giobulia
Tue Jun 05, 2012 7:39 pm
Forum: Beginner Basics
Topic: queues problem
Replies: 5
Views: 1069

queues problem

I have speed limit in queues

CPU has high load, and I think this is for queues.
Is any way to limit speed? please anyone recommend me which settings was best for internet providers

Thank you
by giobulia
Tue Jun 05, 2012 3:19 pm
Forum: Beginner Basics
Topic: If drop I want to open html file
Replies: 4
Views: 895

Re: If drop I want to open html file

Now it works.

Thank you! ))
by giobulia
Tue Jun 05, 2012 3:14 pm
Forum: Beginner Basics
Topic: If drop I want to open html file
Replies: 4
Views: 895

Re: If drop I want to open html file

Hello,

It works fine.

Thank you!!
by giobulia
Sun Jun 03, 2012 4:56 pm
Forum: Beginner Basics
Topic: If drop I want to open html file
Replies: 4
Views: 895

If drop I want to open html file

Image

Example if this have drop I want to open html file

I have billing system and when client do not have balance, system automatic make drop.
when client open any website I want to see my html file

thank you
by giobulia
Sat Jun 02, 2012 10:23 pm
Forum: Beginner Basics
Topic: Web proxy cache
Replies: 2
Views: 1446

Re: Web proxy cache

It works. thank you!
by giobulia
Fri Jun 01, 2012 10:02 pm
Forum: Beginner Basics
Topic: Web proxy cache
Replies: 2
Views: 1446

Web proxy cache

Hello,

I have cache and I have 1 problem.

I do not want cache under 5 mb files or do not want cache videos. is it possible?

i want only cache images, css, swf

do not want flv and other files. is it possible?

my config:
Image

thanks
by giobulia
Mon May 21, 2012 11:06 am
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

Re: How to block and redirect website

Yesterday it worked. today does not work. I can't understand
by giobulia
Sat May 19, 2012 10:18 pm
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

Re: How to block and redirect website

I tried this:
/ip proxy access add dst-host=: action=deny redirect-to=top.ge

for time I create Scheduler, enter time and insert this:
/system script run <script name>


Thank you boen_robot
by giobulia
Sat May 19, 2012 9:25 pm
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

Re: How to block and redirect website

Thank you.
I try it but does not work.
by giobulia
Sat May 19, 2012 2:21 pm
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

Re: How to block and redirect website

Opps. I missed the name argument. The first command should be /ip firewall layer7-protocol add name="HTTP website1.com" regexp="^\S+ \S+ HTTP\/\d\.\d[^H]+Host: ([^\n\.]+\.)*website1\.com.+\n\n" The second commands needs the first before it can work. I get this error: expected end of command (line 1...
by giobulia
Sat May 19, 2012 11:42 am
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

Re: How to block and redirect website

Hello boen_robot, Thank you for reply.

I tried this but I get this error:

first. expected end of command (line 1 column 33)

second. input does not match any value of protocol

what can I do?

Thank you
by giobulia
Fri May 18, 2012 11:11 pm
Forum: Beginner Basics
Topic: How to block and redirect website
Replies: 14
Views: 52786

How to block and redirect website

Hello,

I want to block and redirect website example from 1PM to 2PM
I want to block website1.com and redirect to website2.com

Thank you
by giobulia
Tue May 15, 2012 10:26 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Thank you!!! :roll:
by giobulia
Tue May 15, 2012 5:08 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Thank you, I'll try it.

Example when I need this in linux, can I use cron?
by giobulia
Tue May 15, 2012 5:00 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Now I'll check php.ini and there was this function "extension=php_mysqli.dll"

I can't understand how to run this script without browser

Thank you
by giobulia
Tue May 15, 2012 4:46 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

I think I do not have MySQLi on my windows server. I'm install it and try again.

Thank you
Can I integration it on MySQL?

Thanks
by giobulia
Tue May 15, 2012 4:40 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

I think I do not have MySQLi on my windows server. I'm install it and try again.

Thank you
by giobulia
Tue May 15, 2012 4:32 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot first thank you again and again.

I'll try it and I get this error:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\VertrigoServ\www\billing\code\PEAR2\Net\Transmitter\Stream.php on line 300
And do not inserting in SQL.


Thank you
by giobulia
Mon May 14, 2012 7:15 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello,

yes I'm interesting chart, example

http://pchart.sourceforge.net/screenshots.php?ID=21
Image

and there was LAN2 statistic

sorry for my English.
by giobulia
Sun May 13, 2012 3:57 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello,

I need to make this in PHP graphics

Image

Can anyone help me?

Thanks
by giobulia
Tue May 08, 2012 6:49 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot
Now I test it and works

Thank you for help me!
by giobulia
Tue May 08, 2012 4:34 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

First thank you for reply.

I try this but do not work, when I add this:
print $id;

Does not showing ID.
I think can not find ID
by giobulia
Fri May 04, 2012 2:08 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello, I need update queue, I make this but do not working:     $resultpackupdate = mysql_query("SELECT * FROM packets WHERE router='".$row['router']."' and packetid='".$packetid."'");     while($rowpackupdate = mysql_fetch_assoc($resultpackupdate))     {     $printRequest = new Request('/ip/firewal...
by giobulia
Tue May 01, 2012 6:56 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot thank you
by giobulia
Wed Apr 25, 2012 7:04 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hi,
I need edit user. I was commented each user and I want send command with comment
I want to edit IP, MAC or Comment


Thanks
by giobulia
Fri Apr 13, 2012 6:50 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot thank you!
by giobulia
Wed Apr 11, 2012 1:04 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello, Now I'm rewriting billing and making for boen_robot API client. <?php namespace PEAR2\Net\RouterOS; require_once 'PEAR2/Net/RouterOS/Autoload.php'; $client = new Client('1.2.3.4', 'admin', '123456'); $addRequest = new Request('/ip/firewall/filter/add'); $addRequest->setArgument('chain', 'forw...
by giobulia
Sat Mar 24, 2012 4:51 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello,

I need graphic statistic on my billing system, example:
http://i054.radikal.ru/1203/2a/07edab5ca9cc.png

also I need ping from router, example:
http://s019.radikal.ru/i608/1203/fa/84757663d338.png

Is it possible from API? or what is alternative way?
by giobulia
Wed Jan 11, 2012 7:29 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot You need to have PHP 5.3.0 or later. The error you first saw can only mean that you have an earlier version (e.g. 5.2.*). If you're doing this on your own machine, upgrade your PHP. If you're using a host, ask your host to upgrade the PHP version for your site. Don't forget to add back t...
by giobulia
Tue Dec 27, 2011 7:40 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

I get some error and I delete this "namespace PEAR2\Net\RouterOS;" but now have this error: Fatal error: Uncaught exception 'LogicException' with message 'Function '__NAMESPACE__\autoload' not found' in /home/fastnetg/public_html/baza/api/PEAR2/Net/RouterOS/Autoload.php:56 Stack trace: #0 /home/f/pu...
by giobulia
Tue Dec 20, 2011 3:19 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

boen_robot
Can you upload all files?
by giobulia
Mon Nov 28, 2011 5:05 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello, Thank you boen_robot and janisk for answers. boen_robot, I see your script, but I need this modification require('routeros_api.class.php'); // RouterOS API class $API = new routeros_api(); $API->debug = true; include "router_config.php"; // router username and password { $abonentiAPI = $API->...
by giobulia
Wed Nov 23, 2011 2:17 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Thank you boen_robot! I make this $API->write('/ip/firewall/filter/edit',false); $API->write("=.id=*" . dechex(3015), false); $API->write("=src-address=$ip",false); $API->write("=src-mac-address=$maci"); But I get some error: Connection attempt #1 to 123.1.1.1:8728... <<< [6] /login >>> [5/5 bytes r...
by giobulia
Tue Nov 22, 2011 9:17 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

I understand that I need hex, but I do not know hex coding,

ex. I want need to edit user 1234
What can I make?
$API->write('/ip/firewall/filter/edit',false);
$API->write("=.id=1234",false);
$API->write("=src-address=$ip",false);
$API->write("=src-mac-address=$mac");
Thank you
by giobulia
Wed Oct 05, 2011 2:48 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

I get this error: Connection attempt #1 to 123.123.123.123:8728... <<< [6] /login >>> [5/5 bytes read. >>> [5, 39] !done >>> [37/37 bytes read. >>> [37, 1] =ret=a58048c26a26d61fde722fce4750f34f <<< [6] /login <<< [11] =name=admin <<< [44] =response=00b54e6533572cc9a3992c023e24fddfd8 >>> [5/5 bytes r...
by giobulia
Wed Oct 05, 2011 1:19 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

so I want to edit by php api some filter rulls, for example edit filter rull's sourse ip address.
can you write for me this script?
   $API->write('/ip/firewall/filter/edit',false);
   $API->write("=.id=$id",false);
   $API->write("=src-address=$ip",false);
   $API->write("=src-mac-address=$maci");
by giobulia
Tue Oct 04, 2011 2:30 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello,
thank you for this

so I want to edit by php api some filter rulls, for example edit filter rull's sourse ip address.
can you write for me this script?
Can u share billing system ? If yes send me pm with link
now its only beta version
by giobulia
Mon Sep 26, 2011 9:25 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Hello I need to remove DROP filter rule from mikrotik, you can see on picture, I made comment "000009". I have this script, But I have error... Can you correct my script and write me exactly script for my situation. Thank you in Advance.. <? require('routeros_api.class.php'); $API = new routeros_api...
by giobulia
Mon Aug 15, 2011 3:48 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

janisk
can you send me some example?
by giobulia
Fri Jul 29, 2011 4:40 am
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Thank you for your answer, but I didn't understand little. exactly what is .id? as you see in attached picture .id is the number witch is under #. I understand correct? and my script is following: $API->write('/ip/firewall/filter/add',false); $API->write('=chain=forward',false); $API->write("=src-ad...
by giobulia
Sat Jul 23, 2011 9:51 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

Thank you very much, but I still need your help 1. $API->write('/ip/firewall/filter/add',false); 1. $API->write('=chain=forward',false); 1. $API->write("=src-address=$ip",false); 1. $API->write('=action=accept',false); 1. $API->write('=comment='.$abonenti.'',false); 1. $API->write("=src-mac-address=...
by giobulia
Wed Jun 29, 2011 7:09 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

ok Thank you, I add firewall entry and is it ok. but when I need to change firewall entry I had problem... I can not send correct "number". for example when I type from putty command is: ip firewall filter set action=drop numbers=2 from php I think script is: $API->write('/ip/firewall/filter/set', f...
by giobulia
Mon Jun 27, 2011 6:55 pm
Forum: Scripting
Topic: Mikrotik -> PHP
Replies: 64
Views: 20413

Re: Mikrotik -> PHP

reverged
Thank you 8)
  • 1
  • 2