Quantcast
Channel: Mikrotik Related – Syed Jahanzaib – Personal Blog to Share Knowledge !
Browsing all 140 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using SMS CLI option in playSMS to enhance security for SMS base renewal

TASK: Operator requirement was to have a facility via which he can renew user account by simply sending sms to the radius system with user account name + admin password and above all only his mobile...

View Article


Image may be NSFW.
Clik here to view.

[For Reference] Quick Script for Mikrotik Daily Info via SMS or Email !

Quick Note: Scenario#1: DUAL DSL wan links are connected with mikrotik [modems are in bridge mode], Configured as PCC along with the pppoe server. USB modem is attached with the Mikrotik via USB port....

View Article


Image may be NSFW.
Clik here to view.

Quick Note: Limit interface total bandwidth by Queue Tree

Requirement: Limit interface total bandwidth , Lets say we want to limit ether1 interface (wan or whatever) to total 1 mb for upload / download. Use following. /ip firewall mangle add...

View Article

Image may be NSFW.
Clik here to view.

DYNU Script for Mikrotik (free dynamic dns script)

An alternate to changeip.com (free ddns) with more features. From few days , we were having issues in updating our mikrotik/linux base machines dynamic ip to free ddns service like changeip.com,...

View Article

Image may be NSFW.
Clik here to view.

ACCESS DSL MODEM PAGE IN BRIDGE MODE

ACCESS DSL MODEM PAGE IN BRIDGE MODE (FROM INTERNET , or local) As asked by many, here is the short code. First add any IP in the modem LAN as showed in the image below …   Now add rules in Mikrotik...

View Article


Image may be NSFW.
Clik here to view.

Mikrotik Hotspot User auto login-by MAC with redirection using Radius Manager

Task: Enable selected users Auto login to mikrotik hotspot system without letting them seeing login page, using ‘mac login’ feature in mikrotik hotspot while applying selected user profile as well, or...

View Article

Image may be NSFW.
Clik here to view.

[LAB] QOS Management in Mikrotik – Bandwidth Pools for Group of Users

As required by an Operator: We are using Mikrotik Routerboard in lab environment, and have total 384kbps of internet bandwidth from the ISP. Hotspot with User manager is already configured and working....

View Article

Image may be NSFW.
Clik here to view.

Lets manipulate ! Part-1 / Traffic base priority via Queue Tree in Mikrotik

  Bandwidth Management Fast-Track ! No theory, Just coding … Requirement: We want to restrict  client with 128 kbps. BUT also want to prioritize it based on traffic type. Example … Client-A IP =...

View Article


Image may be NSFW.
Clik here to view.

Mikrotik with Freeradius/mySQL # Part-1

Make your own Billing system in Linux with Freeradius 2.1.10 / MySQL 5.5.47 # Part-1 [This Guide will be updated with many further supporting posts) The aim of writing this post was that there are...

View Article


Image may be NSFW.
Clik here to view.

Monitoring multiple WAN links in PCC using BLACK-HOLE route approach !

Scenario: Dual pppoe-client wan links are configured in mikrotik with PCC load balancing. Task: To monitor both (ow more) wan links via some fixed routes and email in case any goes down or take other...

View Article

Image may be NSFW.
Clik here to view.

Multiple IF statement matching with Mikrotik Script

:if (($dsl1 = "DOWN") && ($dsl2 = "DOWN")) do={ Note: This is a draft version of a solution i made for an OP, donot copy paste, its just showing a different way of achieving the goal by...

View Article

Image may be NSFW.
Clik here to view.

Hunting Youtube Address List for PK!

I was searching a method to to mark and route youtube *video* packets only but failed to get 100% results, Marking and Queuing works fine, but routing results in video not being played.So I guess...

View Article

Image may be NSFW.
Clik here to view.

Mikrotik: Using Firewall Filters to Acquire Wan Data Usage via Email

Requirements: An Operator [from Amsterdam] wanted to receive email on daily basis for the Daily usage of WAN link on the Mikrotik. Something like Mikrotik should send simple reporting email on daily...

View Article


Image may be NSFW.
Clik here to view.

Getting ‘Out of the Box’ solution with Mikrotik , BASH & mySQL

DISCLAIMER: JUST AN EXAMPLE SAMPLE ! Following post is an example of fun coding. Just to learn and explore new ways of howto get ‘out of the box’ solution. In this example I have used Mikrotik Script,...

View Article

Image may be NSFW.
Clik here to view.

Mikrotik: Script to re-connect wan pppoe-outx after X hours

Example of Mikrotik Script to execute customized function IF condition matches ! Requirements: Mikrotik should disconnect wan client pppoe-out1 , only if its uptime is above 8 hours for that single...

View Article


Image may be NSFW.
Clik here to view.

Routing & Natting with Failover ! Brothers in Arms

Reference Notes: Mikrotik is a very powerful router that can perform variety of functions in one box. It’s fun to do complex configuration with customized scriptings to achieve our desired results....

View Article

Image may be NSFW.
Clik here to view.

Mikrotik reboot alert with false detection checks

Scenario: We have a routerboard which have 2 wan pppoe-outX dialers. Gmail account is configured to send alerts. On the same LAN we have KANNEL sms gateway server which acts as a central sms gateway...

View Article


Image may be NSFW.
Clik here to view.

Radius Manager Connection Tracking System for Mikrotik

As requested by few OP, following is a short technical reference guide on how you can enable TCP/UDP connections in Mikrotik to be stored in Radius manager connection tracking database so that you can...

View Article

Image may be NSFW.
Clik here to view.

Linux pppoe client disconnects after x minutes issue

Scenario: Mikrotik is acting as PPPoE server. We have one Linux (Ubuntu) base client and wants to connect it to pppoe server using pppoe client. We have created the pppoe dialer using ‘pppoeconfig‘...

View Article

Image may be NSFW.
Clik here to view.

Mikrotik: Switching between interface

NOT FOR GENERAL PUBLIC SHARING IT FOR PERSONAL REFERENCE Following is an script that switches connectivity between two interfaces (usually wan). Example: ISP x have provided internet connectivity via...

View Article
Browsing all 140 articles
Browse latest View live