Coder Social home page Coder Social logo

mikrotik-traffic-counter's Introduction

Hi there 👋

mikrotik-traffic-counter's People

Contributors

muhannad0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mikrotik-traffic-counter's Issues

Hi very good and interesting project but i have a question/doubt

Hi first of all thank you very much for your project its something i will give it a test for my own project.

but i have a question i see init.php sqlite, do i need to create a database? i am using mysqli with php7 on my server test machine.

if so is there any .sql files missing? or does de INIT genera the sqlite tables automátically?

also i am planning to log traffic from mikrotik device via WAN.. on static IP.. so i guess i will have to modify the firewall mangle rules also?

PHP error

Hi there

Just checking out this tool and found some issues.
PHP Notice: Use of undefined constant id - assumed 'id' in /mikrotik/index.php on line 6
Returns blank page

Daniel

IP Firewall mangle

Hi,

I was wondering why You mangle forward chain for upload and download.

Why not to mangle as below ?

3 ;;; local-wan-Toya-tx
chain=postrouting action=passthrough src-address-list=MyIPAddresses out-interface=ether1 log=no log-prefix=""

4 ;;; local-wan-Toya-rx
chain=prerouting action=passthrough in-interface=ether1 log=no log-prefix=""

5 ;;; local-wan-LTE-tx
chain=postrouting action=passthrough src-address-list=MyIPAddresses out-interface=ether2 log=no log-prefix=""

6 ;;; local-wan-LTE-rx
chain=prerouting action=passthrough in-interface=ether2 log=no log-prefix=""

[admin@MikroTik] /ip/firewall/address-list> print
Columns: LIST, ADDRESS, CREATION-TIME

LIST ADDRESS CREATION-TIME

0 PrivateIPAddresses 192.168.0.0/16 jul/12/2022 11:53:13
1 PrivateIPAddresses 172.16.0.0/12 jul/12/2022 11:55:46
2 PrivateIPAddresses 10.0.0.0/8 jul/12/2022 11:56:15
3 MyIPAddresses 192.168.100.0/24 jul/16/2022 20:00:21

I have two ISP's connercted to ether1 & ether2.

I was not able to find any other examples with monitoring upload/download on MikroTik.

Bytes/Bits question

Hello! Thanks for this project!
However i am confused with the right metrics units.
Mikrotik sends data as BYTES, also this data is inserted to sqlite as is.
But in index.php the units are defined as Mb, which translates to MegaBits, and i don't find anywhere in the code where the conversion happens.
So to me it looks like a typo, and has to be changed to MB.
Is it so? Could you please check?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.