You are on page 1of 21

MUM ATHENS, GREECE 2015

Presentation: Basic & Advanced RouterOS Setups


( & ROUTEROS)
Author: Markos Papadatos
Project Manager IonianWiFi Internet Services www.ionianwifi.gr


Mikrotik RB951Ui-

2HnD router.


Mikrotik
(http://www.mikrotik.com/do
wnload)
.


WinBox.

router.

(Remove Configuration).

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


1:


Files router drag &
drop.
router (System > Reboot)

2 ():
Firmware
(System > Routerboard >
Upgrade).
router (System > Reboot)

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


&

. : System >
Identity.


router. : System >
Password.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

router

DHCP Server (interface).

(4

) (subnets) IP Pools.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


INTERFACES

(Interfaces) ether(x)
wlan

.

5 (ether5)

ppp.

wlan1
(wireless interface)
.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

IP

IP


(interface). : IP >
Addresses.

IP Range:
192.168.1.1/24 ether1,
192.168.2.1/24 ether2,
192.168.3.1/24 ether3,
192.168.4.1/24 ether4.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

DHCP
SERVER
DHCP Server

(interface). :
IP > DHCP Server > DHCP
Setup.

IP
Range (interface)

DHCP Server.


(IP Range,
Lease time, etc).

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

router internet

PPPoE.

router

(DNS, NAT, etc).

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

PPPoE

PPPoE Client


internet. : Interfaces > +
> PPPoE Client.

interface ether5wan,
.

credentials
(username,
password) Dial
Out.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

DNS &
FIREWALL NAT
DNS. :

IP > DNS. DNS Servers


(.: 8.8.8.8, 8.8.4.4)
Allow Remote Requests.

Firewall
NAT: srcnat masquerade.
: IP > Firewall > NAT > + >
Chain: srcnat, Action:
Masquerade.

router
,
!!!

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

(wlan) router.

SSIDs .

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


WLAN
WLAN.

: Wireless.
: Mode: ap bridge,
Band: 2GHz-B/G/N, SSID: SSID1
.


default settings.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


WLAN
tab: Security

Profiles
default.

Mode

Dynamic Keys,
Authentication Type
.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos


WLAN

VirtualAP Tab

Interfaces > +.

SSID

Security
Profile
.

security profiles tab


Security Profiles.

router 2

SSIDs

!

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

SSIDs

,
.

addresses

DHCP Servers, Bridges


,
.

RouterOS

interfaces
( vlans, vwlans).

(Bridge) wlan

ether interface.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

BRIDGE
ETHER & WLAN
Bridge +.


Bridge.

Tab: Ports

(+) interfaces
ether1-office1 wlan1
Bridge .

IP > Addresses

DHCP Server ether1office1 bridge1-office1.

wlan1
ether1-office1
!

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

DynDNS
IP .
script RouterOS.
scheduler.

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

SCRIPT &
SCHEDULER
:


DynDNS.org.

Script

RouterOS. : System >


Scripts. script
,
Source.

Schedule

RouterOS. : System >


Scheduler.
script
On Event Interval

.

DynDNS
IP .
MUM ATHENS, GREECE 2015
Author: Markos Papadatos

DynDNS Script for RouterOS:


:local ddnsuser DYNDNSUSERNAME // change this with your dyndns username
:local ddnspass DYNDNSPASSWORD // change this with your dyndns passowrd
:local theinterface PPPoE-INTERFACE // change this with your PPPoE client name
:local ddnshost DYNDNSHOSTNAME // change this with your dyndns hostname
//DONT CHANGE ANYTHING BELOW THIS LINE
:local ipddns [:resolve $ddnshost];
:local ipfresh [ /ip address get [/ip address find interface=$theinterface ] address ]
:if ([ :typeof $ipfresh ] = nil ) do={
:log info ("DynDNS: No ip address on $theinterface .")
} else={
:for i from=( [:len $ipfresh] - 1) to=0 do={
:if ( [:pick $ipfresh $i] = "/") do={
:set ipfresh [:pick $ipfresh 0 $i];
}
}
:if ($ipddns != $ipfresh) do={
:log info ("DynDNS: IP-DynDNS = $ipddns")
:log info ("DynDNS: IP-Fresh = $ipfresh")
:log info "DynDNS: Update IP needed, Sending UPDATE...!"
:local str "/nic/update?hostname=$ddnshost&myip=$ipfresh&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
/tool fetch address=members.dyndns.org src-path=$str mode=http user=$ddnsuser \
password=$ddnspass dst-path=("/DynDNS.".$ddnshost)
:delay 1
:local str [/file find name="DynDNS.$ddnshost"];
/file remove $str
:global ipddns $ipfresh
:log info "DynDNS: IP updated to $ipfresh!"
} else={
:log info "DynDNS: dont need changes";
}
}

MUM ATHENS, GREECE 2015


Author: Markos Papadatos

Thank you!
Author: Markos Papadatos
Project Manager
IonianWiFi - Western Greece Wireless Internet Service Provider
www.ionianwifi.gr | Email: info@ionianwifi.gr

MUM ATHENS GREECE 2015

You might also like