Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Unifi Mikrotik UniFi Setup Guide (Outdated), No DNS zombie

views
     
TSsoonwai
post Feb 21 2017, 01:52 AM, updated 4y ago


********
All Stars
11,454 posts

Joined: Oct 2007
From: KL


This guide is old and outdated due to changes in how the MikroTik RouterOS handles bridge and ports. No more master and slave.

See new guide here --> https://forum.lowyat.net/topic/5295840

This was getting lost in the Mikrotik thread so I'll post this as a new topic.

I also noticed that many people are still following outdated guides on blogs or other forums that leaves a Mikrotik vulnerable to amplification attacks. Follow this guide and you won't be a DNS zombie. If you used QuickSet, you should be OK but check anyway.

For those who followed other guides, please check that you have this rule somewhere in your firewall.
CODE
/ip firewall filter
add action=drop chain=input comment="default configuration" disabled=no in-interface=pppoe-out1


Setting up a Mikrotik router for UniFi is now a lot easier with Quick Set. So here's a little step-by-step.

Also available on Mikrotik's Wiki: Mikrotik_and_Telekom_Malaysia_UniFi_Setup_Using_QuickSet

Mikrotik UniFi Setup Guide

Connect to the router
First, connect to the router using either a web browser or winbox.exe (http://www.mikrotik.com/download)
*winbox is a Windows app to configure your Mikrotik router.
**The screenshots here are from winbox. Web browser looks similar. You'll figure it out.
***This assumes a router with default configuration. This is very important. It it's not, you can reset the router to defaults before starting.
****Do not reset to defaults if your RouterOS is version 6.33.5. http://forum.mikrotik.com/viewtopic.php?p=516366

(Imagine a screenshot of your browser's address bar or the winbox login screen)
Connect to the router
Default IP address: 192.168.88.1
Username: admin
Password: (no password) <-- I mean there's no password defined and not that the password is (no password).

user posted image
Quick Set
1) Click on Quick Set

user posted image
Set as Home AP and enter UniFi username & password
1) Select Home AP
2) Select PPPoE
3) Enter UniFi username and password
4) OK
*Once everything is working, come back here to set your wifi to a cooler name and give it a password.

user posted image
VLAN
1) Click Interfaces
2) Click VLAN
3) Create a new VLAN
4) Give it a name e.g.: vlan500 (I like daytona500)
5) Set VLAN ID: 500
6) Ensure Interface is: ether1-gateway
7) OK

user posted image
PPPoE
1) Click PPP
2) Double-click pppoe-out1
3) Set Interfaces to vlan500 (or the name you gave it in VLAN Step 4)
4) Check use-peer-dns
5) OK

That's it.

Internet should be be working now.

Next we'll setup HyppTV.
For HyppTV we'll be using Ethernet Port 5. So plug your HyppTV Set Top Box (STB) into this port.

user posted image
Ethernet Port 5
1) Click Interfaces
2) Double click ether5-slave-local
3) Change Master Port to: none
4) OK

user posted image
VLAN
1) Click Interfaces
2) Click VLAN
3) Create a new VLAN
4) Give it a name e.g.: vlan600iptv
5) Set VLAN ID: 600
6) Ensure Interface is: ether1-gateway
7) OK

user posted imageBridge
1) Click Bridge
2) Create a new Bridge
3) Give it a name e.g.: unifi.iptv
4) OK

user posted imagePorts
1) Click Bridge
2) Click Ports
3) Add a port
4) Set Interface to: ether5-slave-local
5) Set Bridge to: unifi.iptv (that's the bridge that you just created above)
6) Add another port
7) Set Interface to: vlan600iptv
8) Set Bridge to: unifi.iptv
9) OK

And that's it. Remember that to plug your HyppTV Set Top Box (STB) into port 5. Switch on your HyppTV STB and enjoy.

This post has been edited by soonwai: Jul 31 2022, 06:50 PM
jio
post Feb 21 2017, 05:10 AM

Casual
***
Junior Member
383 posts

Joined: May 2005
QUOTE(soonwai @ Feb 21 2017, 01:52 AM)
CODE
/ip firewall filter
add action=drop chain=input comment="default configuration" disabled=yes in-interface=pppoe-out1
but make sure it is not disabled.

This post has been edited by jio: Feb 21 2017, 05:10 AM
TSsoonwai
post Feb 21 2017, 01:07 PM


********
All Stars
11,454 posts

Joined: Oct 2007
From: KL


QUOTE(jio @ Feb 21 2017, 05:10 AM)
but make sure it is not disabled.
*
doh.gif LOL, thanks for that. Corrected.
mamakap
post Feb 21 2017, 05:46 PM

Casual
***
Junior Member
403 posts

Joined: Jan 2005
What about setup IPv6? tongue.gif
TSsoonwai
post Feb 21 2017, 05:53 PM


********
All Stars
11,454 posts

Joined: Oct 2007
From: KL


QUOTE(mamakap @ Feb 21 2017, 05:46 PM)
What about setup IPv6? tongue.gif
*
Can, can, ipv6 setup also very easy. Let me go get some SS first.
SUSsazfar
post Jan 14 2022, 09:00 AM

New Member
*
Junior Member
24 posts

Joined: Oct 2006
From: Kampung Warisan



hi. i know this thread is super old but

CODE
/ip firewall filter
add action=drop chain=input comment="default configuration" disabled=no in-interface=pppoe-out1


should i put this if i'm using l2tp?
Gaara92
post Jan 19 2022, 10:59 AM

Herald
****
Junior Member
612 posts

Joined: Mar 2008


QUOTE(sazfar @ Jan 14 2022, 09:00 AM)
hi. i know this thread is super old but

CODE
/ip firewall filter
add action=drop chain=input comment="default configuration" disabled=no in-interface=pppoe-out1


should i put this if i'm using l2tp?
*
Yes you should put it as default rules in mikrotik is allow all. You may need to create an explicit rule to allow l2tp connection to your router. Refer to any tutorials to allow l2tp udp port and ipsec protocol.
SUSsazfar
post Jan 20 2022, 01:26 AM

New Member
*
Junior Member
24 posts

Joined: Oct 2006
From: Kampung Warisan



QUOTE(Gaara92 @ Jan 19 2022, 10:59 AM)
Yes you should put it as default rules in mikrotik is allow all. You may need to create an explicit rule to allow l2tp connection to your router. Refer to any tutorials to allow l2tp udp port and ipsec protocol.
*
should i put the entry on very top or bottom?
hasmidzul_jojo
post Jan 20 2022, 07:29 AM

Getting Started
**
Junior Member
203 posts

Joined: Feb 2008
QUOTE(sazfar @ Jan 20 2022, 01:26 AM)
should i put the entry on very top or bottom?
*
Put it just above the input chain drop all not coming from LAN if you are on mikrotik home devices.

 

Change to:
| Lo-Fi Version
0.0159sec    0.61    5 queries    GZIP Disabled
Time is now: 26th November 2025 - 02:37 PM