Completed

Conectar Modems Mikrotik desde Php

Published on the February 14, 2018 in IT & Programming

About this project

Open

Proceso instalación:

•    Agregar ip mac al arp
•    Agregar marcación de paquetes
•    Agregar limitación según el plan
•    (agregar cliente PPPOE)opcional

Poseso de traslado
•    Revisar si se va a conectar al mismo nodo
•    Si no se conecta al mismo nodo realizar el alta en el Router nuevo y borra los datos del router antiguo.

Retiro
•    Borrar los datos agregados en el proceso de instalación
Suspensión y activación
•    Suspender cuando el cliente tiene la factura vencida
•    Activar cuando el cliente paga la factura


Código para realizar estos procesos conectándose por SSH o Telnet

ingreso del cliente al router de nodo
xxxxxxxxx=nombre del cliente
yy= numero de conexion
arp
i=interface a la que van conectados los clientes
ip arp ad address=10.100.1.10 mac-address=00:12:23:ed:2c:ec comment=" xxxxxxxxx(yy) " interface=i
firewall
ip firewall mangle add chain=prerouting src-address=ip action=mark-packet new-packet-mark="xxxxxxxxx(yy) up" comment=" xxxxxxxxx(yy) "
ip firewall mangle add chain=postrouting  dst-address=ip action=mark-packet new-packet-mark=" xxxxxxxxx(yy) dw"
queue
para el queue se debe ingresar el nombre de la cola madre dependiendo si es residencial o corporativo ademas del plan
y= tipo de plan velocidad en mbps
z=residencial dw, corporativo dw, residencial up, corporativo up.
queue tree add name=" XXXXXXXXX(YY)  DW" parent="Z" packet-mark=" XXXXXXXXX(YY) DW" max-limit=YM queue=PCQ
queue tree add name=" XXXXXXXXX(YY)  UP" parent="Z" packet-mark=" XXXXXXXXX(YY) UP" max-limit=YM queue=PCQ

SUSPENCION Y ACTIVACION
Deshabilitar
ip arp set [find comment=" XXXXXXXXX(YY) " ] disable=yes
Habilitar
ip arp set [find comment=" XXXXXXXXX(YY) " ] disable=no

RETIRO DE CLIENTE
ip arp remove [find comment=" XXXXXXXXX(YY) " ]
ip firewall mangle remove  [find new-packet-mark=" XXXXXXXXX(YY) DW"]
ip firewall mangle remove  [find new-packet-mark=" XXXXXXXXX(YY) UP"]
queue tree remove [find name=" XXXXXXXXX(YY) DW"]
queue tree remove [find name=" XXXXXXXXX(YY) DW"]

Category IT & Programming
Subcategory Web development
What is the scope of the project? Medium-sized change
Is this a project or a position? Project
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Roles needed Developer, Business analyst

Delivery term: Not specified

Skills needed