Configurare Mikrotik pentru a folosi internet de la un Smartphone cu Android

Configurare noua (How To)

Situatie

Avem un router Mikrotik si un Smartphone cu Android si dorim sa folosim telefonul pe post de modem pentru router.

Avem nevoie de un smartphone cu o versiunde de Android 4.4.4 minim ( cu conexiune la internet 3G/4G) si un router Mikrotik cu varianta RouterOS 6.7 minim si un port usb.

Solutie

Avem de urmat urmatorii pasi :

  1. Activam USB Tehtering  pe telefon settings -> More -> Tethering & portable hotspot -> USB tethering , apoi conectam telefonul in portul usb al routerului
  2. Ne logam in interfata routerului si mergem la Interfaces ca in imaginea de mai jos, unde ar trebui sa ne apara portul Conexiunea 3G/4G activaLTE interface - that's my phone!
  3. Creem un client nou DHCP pentru interfetele 3G / LTE mergand la setarea : IP -> DHCP ClientDHCP Client - config details
  4. Datorita faptului ca routerul considera conexiunea principala pe portul 1 de lan (ether 1), vom modifica regulile sa foloseasca portul LTE creat mai sus, dupa cum urmeaza :
    [admin@MikroTik] /ip firewall filter> print
    Flags: X – disabled, I – invalid, D – dynamic
    0 D ;;; special dummy rule to show fasttrack counters
    chain=forward action=passthrough
    1 ;;; Client Usage of LTE
    chain=forward action=passthrough out-interface=lte1 log=no log-prefix=””
    2 chain=forward action=passthrough in-interface=lte1 log=no log-prefix=””
    3 ;;; Router usage of LTE
    chain=output action=passthrough out-interface=lte1 log=no log-prefix=””
    4 chain=input action=passthrough in-interface=lte1 log=no log-prefix=””
    5 ;;; defconf: accept ICMP
    chain=input action=accept protocol=icmp
    6 ;;; defconf: accept established,related
    chain=input action=accept connection-state=established,related
    7 ;;; defconf: drop all from WAN
    chain=input action=drop in-interface=lte1 log=no log-prefix=””
    8 ;;; defconf: fasttrack
    chain=forward action=fasttrack-connection connection-state=established,related
    9 ;;; defconf: accept established,related
    chain=forward action=accept connection-state=established,related
    10 ;;; defconf: drop invalid
    chain=forward action=drop connection-state=invalid
    11 ;;; defconf: drop all from WAN not DSTNATed
    chain=forward action=drop connection-state=new connection-nat-state=!dstnat
    in-interface=lte1 log=no log-prefix=””
    [admin@MikroTik] /ip firewall filter>

    tot ce trebuie este sa introducem aceste comenzi in interfata terminal a routerului Mikrotik

  5. Dupa aceea testam conexiunea printr-un ping la google ( 8.8.8.8 ) din Tools-> Ping. si daca am setat corect regulile avem o noua sursa de internet pentru Routerul Mikrotik

Tip solutie

Permanent

Voteaza

(16 din 35 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?