No video

Just a casual Unifi Controller running off of a MikroTik managing APs (Updated Container Vid)

  Рет қаралды 26,087

The Network Berg

The Network Berg

Күн бұрын

Пікірлер: 61
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Hey guys, please use the pinned comments for reference material. I do realize that even though I mentioned MikroTik has made syntax changes I didn't really add those configurations to the unifi controller as they were not needed. I will make a video for pihole again without explaining containers and just do the setup to showcase the syntaxes. You can still see them in the docs though in the Environment Variables. Have fun labbing and practice safely! MikroTik Docker Docs: help.mikrotik.com/docs/display/ROS/Container What is a container: www.docker.com/resources/what-container/ My configs: pastebin.com/nRudUMyT
@zadekeys599
@zadekeys599 2 жыл бұрын
I've always said that UBNT AP's should always be use with MT & not UBNT's sad L3 / routing setup. I'd love to see a vid of a Mikrotik running Nginx reverse proxy in a container :)
@michaelculley8790
@michaelculley8790 2 жыл бұрын
That's the setup I've always used (UBNT APs, MT routers). It would be nice to have MT come out with an AP that's the same quality as UBNT. I would like to switch but I see so many people list faults with MT wireless.
@arifaisal6607
@arifaisal6607 Ай бұрын
Damn! this is what I want!!! thank you soo much broooo!!
@MunsifRazaali
@MunsifRazaali Жыл бұрын
If the Pakistani man has come to the Microtik container, then inshallah I will order it from him, now I have to do the listening of this container at my Microtik level, imitating you, you are very genius, very genius
@KenMarfilla
@KenMarfilla 2 жыл бұрын
Got it working on my RB5009 following your guide. I set container envs MEM_LIMIT and MEM_STARTUP to 512, cgroup ram-high to 700MB. Still has spare 190.1 MiB memory.
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
That's pretty awesome Ken :D!
@KenMarfilla
@KenMarfilla 2 жыл бұрын
​@@TheNetworkBerg It's a perfect use-case for containers in router. I'm only managing 1 unifi AP for my home setup. Container boot up is slow AF but once running, page loads pretty quick. Also got an excuse to buy a faster (and low profile) USB 3 flash drive to replace the current old-gen drive.
@1mrhamel
@1mrhamel 2 жыл бұрын
How did you set "cgroup ram-high" ? With the new release of v7.5rc I was able to get it installed, and it's using 140MB now.
@gunchag
@gunchag 11 ай бұрын
Damn man this is awesome! Can't wait to try this myself! Thank you very much!
@albanselaj733
@albanselaj733 2 жыл бұрын
Great job, mate! Well done!
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Thanks Alban, you definitely helped out with this one as well ^^, now I am going to remake my pihole video and see if there are a few other useful dockers we can bring online.
@albanselaj733
@albanselaj733 2 жыл бұрын
@@TheNetworkBerg Thanks, Johnny! Another amazing tutorial on your channel! Keep up the great work.
@nikitasmith9720
@nikitasmith9720 Жыл бұрын
That is amazing
@aliraad9958
@aliraad9958 2 жыл бұрын
that's great, keep on going
@oscarcam9804
@oscarcam9804 Жыл бұрын
great information!
@muhitshalgimbaev6602
@muhitshalgimbaev6602 2 жыл бұрын
You the best men
@lucasr4204
@lucasr4204 Жыл бұрын
I followed your guide it gives me status: error :(
@dimm0k
@dimm0k 6 ай бұрын
can't figure out what's wrong on my RB5009. followed your instructions and am able to get the docker container running and can ping 172.17.0.2 both on the router and a local PC, but nothing happens when I open 172.17.0.2:8443 - This site can't be reached, refused to connect. any suggestions?
@gabrielporto.mikrotik
@gabrielporto.mikrotik 2 жыл бұрын
What's up Berg. Great video. I did all the steps but unfortunately it didn't work at the end. I did some tinkering but yet not working. Then I decided to do some research. The container package is supported on ARM CPUs. Although the Unifi Controller Docker is supported only in ARM64 CPUs. Given that I think I should buy another RB. LoL. Mine is RB1100AHx4. I used a 64GB SD card. Long story short. I can ping both gateway and VETH1 IP adress. But can't access the VETH1 IP on the web browser. After that I verified that my CPU has ARM architecture. Anyway! It was worth the practice. Thanks for your knowledge Berg. =D
@roberthilton2824
@roberthilton2824 2 жыл бұрын
Another great video, I have now set up 2 containers on my Mikrotik 5009 and Sandisk thumbdrive, pihole and the unifi controller. Successfully adopted my venerable old Unifi AC-LIte access point and it works sweet as a nut. Is anyine running a USB SSD on their mikrotik's USB port?
@AKMS47
@AKMS47 11 ай бұрын
Hi! Nice tutorial. Please help. I want use my Mikrotik as DHCP server , but cant run DHCP-relay on UDM Pro if its conneted to Mikrotik at UDM's WAN port. What I do wrong? Please make some tutorial.
@josepharueyingho9417
@josepharueyingho9417 2 жыл бұрын
Great video sir
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Thank you very much!
@TheBustedNutz
@TheBustedNutz 2 ай бұрын
I noticed that the linuxserver/unifi-controller has been deprecated. Should I consider deploying the newer linuxserver/unifi-network-application or use the deprecated controller? Since I will be setting this up as new (not restoring) should I use the latest mongo db?
@user-uo7go8fd6v
@user-uo7go8fd6v Жыл бұрын
Great
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
Thank you very much for the support, I appreciate it a lot!
@UMTomaS
@UMTomaS 9 ай бұрын
I just tried it no hAP ax3, but after starting container, it starts eating all aviable RAM and in 2 minutes router restart. I can't even get to Unifi webpage. If I limit RAM for containers, it says container is running but no webpage loads and it doesn't seem to be running. With unlimited RAM it at least says connection not secure and after proceeding I get 404 page.
@Anavllama
@Anavllama Жыл бұрын
Looking for a more realistic setup where there is an existing bridge with multiple vlans and then you want to add the dockers, lets say one for adguard and one for unifi as you have done. That would be more of a benefit as your AP scenario here was faked and all the other example you have include the magical single new bridge with one subnet. !!
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
This is a more realistic use for dockers, you generally want to have a separate bridge to house all of your containers. You can run multiple containers on the new bridge and do whatever subnetting you want with it. Nothing is "faked" this is a real AP that is adopted to a Unifi Controller that is a container hosted on a MikroTik. Your scenario is that you want to replace existing infrastructure with this container and you would just like to have the controller on the same network as before. This would require a completely different lab. Perhaps post your question to MikroTik support or on their forums.
@Anavllama
@Anavllama Жыл бұрын
Good idea!
@Coffetek
@Coffetek 9 ай бұрын
I just can't get to not getting an error. Any suggestions?
@banjerboefify
@banjerboefify 2 жыл бұрын
Very cool! I'm curious to see, if you set up a Nginx reverse proxy with Let's Encrypt, could you save/map this certificate to a location on disk and use this certificate in for example the MikroTik hotspot or SSTP/OpenVPN ? And what would the CPU impact be from for example an OpenWRT instance with Bondix installed on it (WAN bonding solution). Containers open up so much possibilities!
@djdrastic1
@djdrastic1 2 жыл бұрын
That's pretty baller. The load shedding not making it difficult to make these vids ?
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Yeah load shedding does make doing the videos terrible :C Sometimes quite frustrating.
@jonneymendoza
@jonneymendoza Жыл бұрын
Hi, i am getting a error when truing to add the remote image contrainer command ie add remote-image=linuxserver/unifi-controller:latest interface=veth1 root-dir=usb1-part1/unifi mounts=etc_unifi,dnsmasq_unifi i get a error saying "failure: could not add"
@KrisnaGaming-te3ug
@KrisnaGaming-te3ug Жыл бұрын
Great job mate! Can i add vlan in bridge docker for dhcp server? So the AP and client can get IP from mikrotik
@Dazolers
@Dazolers 2 жыл бұрын
Can you make a tutorial how to install httpd/nginx on RouterOS docker? I'm trying to install them but it keeps giving a /usr/share permission denied error
@user-tygzgroup
@user-tygzgroup Жыл бұрын
I have added pihole to the container, why can't I add unifi-controller on the same network segment? After adding, the routerOS restarts, showing that there is a problem with the IRQ, and winbox cannot enter the routerOS.
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
I have never ran into this issue before, have you created a separate VETH for your UnifiController? What equipment are you trying to run this on as the controller is quite a beefy container.
@user-tygzgroup
@user-tygzgroup Жыл бұрын
@@TheNetworkBerg veth1 to pihole (IP: 172.18.0.2), veth2 to unifi-controller (IP: 172.18.0.3), bridge (IP: 172.18.0.1). veth1 runs normally, but when veth2 runs, routerOS automatically restarts and reports an error, which fails to run normally. Should veth1 and veth2 be in different network segments? Thank you for your answer! ! ! Do you speak Chinese? I am from China
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
@@user-tygzgroup Unfortunately I do not speak Chinese. The devices can be in the same network segment that should not produce any error. What model of router are you using?
@user-tygzgroup
@user-tygzgroup Жыл бұрын
@@TheNetworkBerg Thank you again! I use Router OSCHR7.8 Standard Edition P1 in esxi to connect to Netgear Nighthawk RAX200 (as a wireless AP and switch). I plan to replace it with RB5009UPr+S+IN (as a router and switch, because its network port can be powered by POE) to connect Unifi U6 pro and U6 Lite for mobile phones and ipads. But I just came into contact with RouterOS, so I don't understand a lot.
@shailukov7440
@shailukov7440 2 жыл бұрын
Hello - thanks for the great video. I do have a question about the setup that you did. do you have a mikrotik device that could acctually run the docker containers? as its shown in the video its a Mikrotik VM that runs on a PC right?
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
That's right this video is on an x86 which is a virtual router. Some of my viewers have already successfully done this on other routerboards like the CCRs & RB5009's just a reminder that there is a prerequisite of having either ARM, ARM64 or x86 to do containers, any other architecture will not work sadly.
@circuitfreak
@circuitfreak Жыл бұрын
@@TheNetworkBerg Worth noting that I tested this on an rb3011 (32bit ARM) last night & the linuxserver image provided on Docker hub will start just fine & you can shell into it BUT won't actually start the controller if you enable logging & start the container it prints a message to the log saying 32-bit ARM is unsupported, citing "missing OS packages" This does not affect the container environment as a whole, just this specific image
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
@@circuitfreak I have ran into this as well, some containers just won't work on MikroTik for whatever reason, even if you create the docker image yourself. Maybe something to send to MT support directly via email or on their forums. This does only seem to affect certain images and not the entire environment though.
@sliddjur
@sliddjur 2 жыл бұрын
can you not add dhcp-server on dockers bridge interface for containers to automatically get an ip?
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
You are welcome to try, but I do not know if this works with the current configuration as IP & Gateway needs to be added onto the VETH interface itself.
@dimosabev4311
@dimosabev4311 2 жыл бұрын
On the RB4011iGS+RM, has anyone managed to get it running.
@phillipsaw
@phillipsaw Жыл бұрын
Unfortunately, you need an RB with ARM64 for the Unifi container.
@midnightwatchman1
@midnightwatchman1 Жыл бұрын
what would be the point of that, I guess if only have your lab devices
@TheNetworkBerg
@TheNetworkBerg Жыл бұрын
I know of some people running Unifi controllers on their CCRs and RB5009s for their production networks 😁 containers also have waaay more uses MikroTik has also released containers in the stable version of ROS so I am very interested in seeing what other solutions people start running off of their Tiks
@aliraad9958
@aliraad9958 2 жыл бұрын
I have CCR1036 and working OSPF and static route since 2 years v6.49.6 Can I upgrade to OS7 with no issues in the route table, last time just updated and got a lot of issues and my route table is gone lol, just downgraded and restore my backup, so now I decided to upgrade to use containers, Your advice is highly appreciated Thanks
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Hi Ali, the CCR1036 is still based off of the tile architecture as is the CCR1016 & CCR1072, upgrading any of them to v7 will not allow dockers or zerotier to work :( These are some of the common routers that support containers & other extended features RB4011 RB5009 CCR2004 CCR2116 CCR2216 x86 VM
@aliraad9958
@aliraad9958 2 жыл бұрын
@@TheNetworkBerg noted and thanks for your replay, for the v7 can i upgraded without issues?
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
@@aliraad9958 OSPF and Static routing works pretty good on v7, so I cannot think of it causing any issues. Real problems are some of the extended features like BFD, BGP Confederations and MPLS signalled with BGP.
@aliraad9958
@aliraad9958 2 жыл бұрын
@@TheNetworkBerg thanks 🥰🥰
@NetworkGamerBoy
@NetworkGamerBoy 2 жыл бұрын
Can i use any AP ?
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Any Unifi AP you can join to this controller, but not any other vendor's APs
@andreamastrangelo1122
@andreamastrangelo1122 Жыл бұрын
Hi, I would like to know an information: does cloud os router support docker? i couldn't figure out if it's only supported on x86 images. Thank you al
STOP Unwanted ads on your MikroTik with Pihole!
20:34
The Network Berg
Рет қаралды 38 М.
Ultimate MikroTik Wireguard Site-to-Site Guide
28:29
The Network Berg
Рет қаралды 60 М.
Алексей Щербаков разнес ВДВшников
00:47
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 24 МЛН
Things I don't like about MikroTik...
11:50
The Network Berg
Рет қаралды 28 М.
pfSense vs UniFi Firewall: May 2024 Edition
23:30
Lawrence Systems
Рет қаралды 74 М.
Настраиваем Mikrotik для офиса за 59 минут
1:46:09
Mikrotik Training
Рет қаралды 264 М.
Unleash the Power of AdguardHome: Crush Ads on MikroTik!
24:17
The Network Berg
Рет қаралды 62 М.
Unifi Controller Self Hosted in Docker - MongoDB
12:47
Jim's Garage
Рет қаралды 19 М.
Take Control of Your Network: Install Uptime-Kuma on MikroTik
25:37
The Network Berg
Рет қаралды 14 М.
UniFi Network BEGINNERS Configuration Guide | 2024
46:14
Unified IT
Рет қаралды 161 М.
Migrating From OPNsense To Mikrotik
19:11
Mircea Anton
Рет қаралды 20 М.
Enhancing Network Efficiency with Q-in-Q on Juniper and MikroTik
25:46
The Network Berg
Рет қаралды 3,6 М.
How Mikrotik Can Transform Your Network Engineering Skills
14:26
The Network Berg
Рет қаралды 11 М.