Jump to content

Quick 'n Dirty Mikrotik/PiHole mod.

Alright, so i've been running Pihole for a few weeks now, and i absolutely love it! I can definitely recommend it to anyone who has a spare rPi laying about.

 

Personally, i've been using a Raspberry Pi 3B+. it's a bit overkill for just a DNS sinkhole, but atleast it won't run hot and i finally have a permanent usecase for this thing.

The only problem i had was mounting. i previously just had it laying on top of my rack.

IMG_20200612_125150.thumb.jpg.bc663955535d6b49371a21b2d79e05dc.jpg

(this is an older pic, please ignore the AP just laying there, it's been ceiling mounted since! ;)

 

this looks pretty jank tough, and my cat would constantly knock it off there so it would just hang off of the USB/ethernet cable.

How would you mount a Pi in a 19" server rack tho? spacing out an entire U for just a Pi seems a bit overkill, and it's not like there is rackmount hardware available. Atleast, not if you don't own a 3D printer that is.

 

Now in the top U of my rack there's my router. it's a Mikrotik RB2011 UiAS-RM. and inside, its just a tiny little board and lots of empty space.

1205264119_mocbeginning.thumb.jpg.66ab59d434ae25665271fb6235b88830.jpg

 

Perfect for a Pi!

685583639_dryfit.thumb.jpg.8608f4d3df60408647eb5d8c333971a1.jpg

 

now that just leaves the cables. sadly, my router doesn't have any internal connectors. so i have to route cables into the enclosure somehow.

lucky for me, the Mikrotik has some ventilation holes cut into the front. perfect for routing a cable through!

1616980576_eththrough.thumb.jpg.1b97914c7a85e9b03f6b05d040ed8b3c.jpg

 

i just had to make sure to pass the cable through the hole before crimping on the second connector. otherwise passing it through there would be a real challenge.

the router also has a USB port in the front, which i used to power the Pi in the same way the eth cable comes into the box.

1245270841_modcomplete.thumb.jpg.8b2a2c9cbb6c50c7f8da317abb7becfc.jpg

i originally wanted to use the PoE of this router to power the Pi, but Mikrotik uses some weird proprietary PoE standard, and none of the PoE HATS i used ever worked with this. :(  So regular old USB it is i guess.

 

and here's the finished product!

definitely looks a lot cleaner than just a little PCB on top of the rack. and if it wasn't for the cables, you wouldn't ever know there was a Pi running PiHole in there!

 

excuse the lower-light photo, my cheapo Xiaomi phone doesn't handle those very well.

15934566522536714158498639019098.thumb.jpg.377461a4e43f8fa2367ee0faa88219e6.jpg

 

Edited by RollinLower
the typos, dear god!
Link to comment
Share on other sites

Link to post
Share on other sites

A raspberry pi rackmount 

awesome

Hi

 

Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler

hi

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

17 hours ago, RollinLower said:

-snip-

Not bad! Now this is a cool build log!

 

Personally, i would have tapped off internal power if there was a 5V rail if i went with your solution.

 

Another solution could be to attach the pi (in its own enclosure) behind the routerboard...that way the power would be hidden and the network cable would go through the comb under the router like the other connections.

 

All this to say that your cool idea has sparked my thought process haha.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×