2022-02-06 09:51:43 +00:00
# udm-utilities [![Discord](https://img.shields.io:/discord/939817841107034172?label=Discord&logo=Discord&style=for-the-badge "Discord")](https://discord.gg/8zqrQJFghg)
2022-06-24 10:41:51 +00:00
[![UDM-Pro Podman ](https://github.com/unifi-utilities/udm-utilities/actions/workflows/podman-udmp.yml/badge.svg )](https://github.com/unifi-utilities/udm-utilities/actions/workflows/podman-udmp.yml)
[![UDM-SE Podman ](https://github.com/unifi-utilities/udm-utilities/actions/workflows/podman-udmse.yml/badge.svg?branch=master )](https://github.com/unifi-utilities/udm-utilities/actions/workflows/podman-udmse.yml)
2020-07-06 05:32:35 +00:00
2022-06-11 19:03:57 +00:00
A collection of things to enhance the capabilities of your Unifi Dream Machine, Dream Machine Pro or [UXG-Pro ](https://gist.github.com/trilom/40fab563db416a69c63c127688ce7924 ).
2020-07-11 07:21:11 +00:00
## Contributing
2020-07-13 05:37:04 +00:00
2022-02-24 08:26:04 +00:00
Pull Requests welcome!
If you use this functionality to do new cool stuff to your UDM/P please send a PR and share it with the community!
2020-05-31 13:56:48 +00:00
2021-04-11 08:41:34 +00:00
## Custom Kernel
2022-02-24 08:26:04 +00:00
If you want to do a custom kernel with wireguard support, multicast, multipath routing that is now a possiblity.
Please see the repo and please use at your own risk. This a much larger change than anything in this repo.
2021-04-11 08:41:34 +00:00
[udm-kernel-tools ](https://github.com/fabianishere/udm-kernel-tools )
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
## Custom Podman Builds for UDM-SE
2021-11-05 19:35:36 +00:00
2022-06-24 10:41:51 +00:00
< https: / / github . com / unifi-utilities / udm-utilities / actions >
2021-11-05 19:35:36 +00:00
2021-10-09 01:33:42 +00:00
Extract the zip to the root of your device!
2021-11-05 19:35:36 +00:00
Look at the assets on the Podman workflow.
2020-07-05 20:54:53 +00:00
## General Tools
2020-07-13 05:37:04 +00:00
2020-05-31 13:56:48 +00:00
### on-boot-script
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
Do this first. Enables `init.d` style scripts to run on every boot of your UDM.
Includes examples to run `wpa-supplicant/eap-proxy` and/or `ntop-ng` on startup.
2022-06-24 10:41:51 +00:00
Follow this [readme ](https://github.com/unifi-utilities/udm-utilities/blob/main/on-boot-script/README.md ).
2021-11-05 19:35:36 +00:00
2020-07-06 05:33:20 +00:00
**It enables complete customization of your UDM/P and fills the gap that config.gateway.json left behind.**
2020-05-31 13:56:48 +00:00
2021-05-25 17:40:39 +00:00
### podman-update
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
Updates Podman, conmon, and runc to a recent version.
This allows docker-compose usage as well.
2021-05-25 17:40:39 +00:00
2021-01-25 08:33:51 +00:00
### container-common
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
Apply this after on-boot-script.
Updates container defaults to maintain **stable disk usage footprint** of custom containers.
**Prevents logs filling up UDM storage full**.
2021-01-25 08:33:51 +00:00
2020-07-05 20:54:53 +00:00
### python
2020-07-13 05:37:04 +00:00
2021-11-05 19:35:36 +00:00
If you need python3 on your UDM, generally not recommended, can always use it in unifi-os container.
2020-07-05 20:54:53 +00:00
2022-03-12 12:34:19 +00:00
### UDMP Persistence SSH Keys Script
< https: / / github . com / fire1ce / UDMP-Persistence-SSH-Keys >
Script to presist ssh keys after reboot
2020-07-10 03:28:49 +00:00
## VPN Servers / Clients
### wireguard-go
2020-07-13 05:37:04 +00:00
2022-02-24 08:26:04 +00:00
Run a Wireguard client/server on your UDM/P.
Utilizes wireguard-go, not linux kernel modules.
The performance will take a hit due to that.
2020-07-10 03:28:49 +00:00
2021-11-05 19:35:36 +00:00
### WireGuard kernel module for UDM/P
< https: / / github . com / tusc / wireguard-kmod >
Uses a prebuilt linux kernel module, without the need to move to a custom kernel.
### OpenConnect VPN
< https: / / github . com / shuguet / openconnect-udm >
OpenConnect VPN Client for the UniFi Dream Machine Pro (Unofficial).
### split-vpn
< https: / / github . com / peacey / split-vpn >
2022-02-24 08:26:04 +00:00
A split tunnel VPN script for the UDM with policy based routing.
This helper script can be used on your UDM to route select VLANs, clients, or even domains through a VPN connection.
It supports OpenVPN, WireGuard, and OpenConnect (Cisco AnyConnect) clients running directly on your UDM, and external VPN clients running on other servers on your network.
2021-11-05 19:35:36 +00:00
2020-07-05 20:54:53 +00:00
## DNS Providers
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
Install a DNS server that functions as a network-wide ad and tracker blocker, and which can also securely proxy encrypted DNS requests to an upstream DNS provider.
2022-06-24 10:41:51 +00:00
Begin by following the instructions to setup [on-boot-script ](https://github.com/unifi-utilities/udm-utilities/tree/main/on-boot-script ) and [dns-common ](https://github.com/unifi-utilities/udm-utilities/tree/main/dns-common/on_boot.d ).
2022-02-24 08:26:04 +00:00
Then, follow the guides below to setup either Pi-Hole, NextDNS, or AdGuard Home.
2020-07-13 05:37:04 +00:00
2020-06-28 13:02:50 +00:00
### dns-common
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
Base configuration for DNS server containers, both IPv4 and IPv6.
Utilizes MacVLAN CNI plugins to completely isolate the network stack.
2020-06-28 13:02:50 +00:00
2022-02-24 08:26:04 +00:00
### run-pihole
2020-07-13 05:37:04 +00:00
2022-02-24 08:26:04 +00:00
[![!Docker Pulls ](https://img.shields.io/docker/pulls/boostchicken/pihole.svg?color=green&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker )](https://hub.docker.com/u/boostchicken)
2021-11-05 19:35:36 +00:00
2022-02-24 08:26:04 +00:00
PiHole w/ DoH Image.
Run Pi-hole on your UDM with podman.
Also contains custom image for Pi-hole with `cloudflared` .
### PiHole with DoTe
[![!Docker Pulls ](https://img.shields.io/docker/pulls/boostchicken/pihole-dote.svg?color=green&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker )](https://hub.docker.com/u/boostchicken)
2021-11-05 19:35:36 +00:00
2021-12-03 12:12:25 +00:00
Desigened by: < https: / / github . com / chrisstaite / DoTe / >
2021-11-05 19:35:36 +00:00
2021-12-03 12:12:25 +00:00
Alternative to mine which uses DoTe
2020-06-05 04:53:50 +00:00
2020-06-14 14:43:31 +00:00
### AdguardHome
2020-07-13 05:37:04 +00:00
2020-07-05 20:54:53 +00:00
Run AdguardHome on your UDM with podman.
2020-07-07 05:44:54 +00:00
2020-12-24 22:25:22 +00:00
### Cloudflare DDNS
Update your cloudflare domains from your UDM with podman.
2020-07-07 05:44:54 +00:00
## Cool projects you can use with this
2020-07-13 05:37:04 +00:00
### multicast-relay
2020-07-11 07:22:48 +00:00
2020-07-13 05:37:04 +00:00
< https: / / hub . docker . com / r / scyto / multicast-relay >
2022-02-24 08:26:04 +00:00
This is a docker container that implements < https: / / github . com / alsmith / multicast-relay > to provide mDNS and SSDP on a unifi dream machine.
It will likely work on any multi homed host.
2020-07-07 05:44:54 +00:00
2022-05-22 13:52:44 +00:00
### mqtt-mosquitto
< https: / / hub . docker . com / _ / eclipse-mosquitto >
Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1.
2020-07-07 05:44:54 +00:00
### ntopng
2020-07-13 05:37:04 +00:00
< https: / / github . com / tusc / ntopng-udm >
2020-07-11 07:22:48 +00:00
2022-02-24 08:26:04 +00:00
Much better network stats for your UDM/P!
Install this docker container and create an on_boot script to make sure it's always running.
2020-07-11 22:13:34 +00:00
### LetsEncrypt SSL Certs
2020-07-13 05:37:04 +00:00
< https: / / github . com / kchristensen / udm-le >
2020-07-11 22:13:34 +00:00
2021-11-05 19:35:36 +00:00
Provision and renew LetsEncrypt SSL certs from your UDM/P.
2020-09-10 04:45:29 +00:00
2021-11-05 19:35:36 +00:00
< https: / / github . com / alxwolf / ubios-cert >
2020-12-24 22:25:22 +00:00
2022-02-24 08:26:04 +00:00
Similar to `udm-le` , adding different providers for SSL/TLS certificates (LE, ZeroSSL, BuyPass) and DNS API (all-inkl.com) currently not supported by [LEGO ](https://go-acme.github.io/lego/dns/ ).
2021-01-25 08:33:29 +00:00
### Unifi API Browser
< https: / / hub . docker . com / r / scyto / unifibrowser >
2022-02-24 08:26:04 +00:00
This is a docker container that implements < https: / / github . com / Art-of-WiFi / UniFi-API-browser > to provide a graphical tool to inspect the data structures available via the unifi API.
Great if you are using the REST API for your own purposes and want to explore.
Works with multiple controller versions.
2021-03-18 20:25:29 +00:00
### Unifi UDM-Pro auto fan speed
< https: / / github . com / renedis / ubnt-auto-fan-speed >
2022-02-24 08:26:04 +00:00
A shell script with the goal to make the UDM-Pro silenced while still having good thermal values.
It stops the build in service that monitors the thermal values, fan speed and connection of a HDD/SSD.
After that it sets the thermal/fan chip (adt7475) to automatic mode.
Once that is done it changes the thermal and fan values specified in the script.
2021-05-25 17:40:39 +00:00
2021-08-26 10:47:07 +00:00
### rclone
< https: / / rclone . org / >
Run rclone container with Web GUI for offsite backups.
2022-03-12 12:34:19 +00:00
### Telegram-Notifications On WAN Failorver
< https: / / github . com / fire1ce / UDMP-Failover-Telegram-Notifications >
Use telegram bot to be notified of a wan failover with local account
2022-04-13 10:29:39 +00:00
### udm-proxy
Run a reverse proxy (using caddy in vlan) on the udm-pro.
< https: / / github . com / xpherism / udm-proxy >
2021-05-25 17:40:39 +00:00
## Unsupported / No longer maintained
2021-11-05 19:35:36 +00:00
2021-05-25 17:40:39 +00:00
### nextdns
2021-11-05 19:35:36 +00:00
2021-05-25 17:40:39 +00:00
Run NextDNS on your UDM with podman.
2021-11-05 19:35:36 +00:00
2021-05-25 17:42:32 +00:00
### suricata
2021-11-05 19:35:36 +00:00
2021-06-10 05:01:50 +00:00
Updates suricata to a recent version.
2022-04-13 10:25:50 +00:00
### Jumbo Frames
< https: / / github . com / kalenarndt / udmp-jumbo-frames >
_Note:_ native jumbo frame support for the UDM and UDM-Pro is added in the 1.12.13 EA firmware, support for the UDM-SE is not yet announced.