All Projects → cpriest → udm-patches

cpriest / udm-patches

Licence: MIT license
Contains onboot.d setup scripts and wrappers for custom OpenVPN client

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to udm-patches

udm-utilities
A collection of things I have made to make the Unifi Dream Machine more useful
Stars: ✭ 2,228 (+5204.76%)
Mutual labels:  unifi, ubiquiti, udm, dream-machine, udm-utilities, unifi-dream-machine, udm-pro
unifiZabbix
Zabbix templates to monitor pretty much all Unifi devices
Stars: ✭ 66 (+57.14%)
Mutual labels:  unifi, ubiquiti, udm, udm-pro
node-unifi
NodeJS class for querying/controlling a UniFi-Controller (www.ubnt.com)
Stars: ✭ 92 (+119.05%)
Mutual labels:  unifi, ubiquiti, udm, udm-pro
udm-host-records
Scripts to list, add, update, and remove host records in the Ubiquiti UniFI Dream Machine DNS forwarder.
Stars: ✭ 109 (+159.52%)
Mutual labels:  unifi, ubiquiti, udm, udm-pro
unpoller
Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
Stars: ✭ 1,613 (+3740.48%)
Mutual labels:  unifi, ubiquiti, udm
udm-kernel-tools
Tools for bootstrapping custom kernels on the UniFi Dream Machine
Stars: ✭ 211 (+402.38%)
Mutual labels:  unifi, udm, udm-pro
ubios-cert
Manage SSL / TLS certificates with acme.sh (Let's Encrypt, ZeroSSL) for Ubiquiti UbiOS firmwares
Stars: ✭ 17 (-59.52%)
Mutual labels:  unifi, ubiquiti, unifi-dream-machine
split-vpn
A split tunnel VPN script for Unifi OS routers (UDM, UXG, UDR) with policy based routing.
Stars: ✭ 589 (+1302.38%)
Mutual labels:  udm, udm-pro
ntopng-udm
ntopng Docker image for the UDM base and UDM pro
Stars: ✭ 147 (+250%)
Mutual labels:  ubiquiti, udm
unifi-pfsense
A script that installs the UniFi Controller software on pfSense and other FreeBSD systems
Stars: ✭ 617 (+1369.05%)
Mutual labels:  unifi, ubiquiti
pyunifi
unifi-sdn.ubnt.com/
Stars: ✭ 186 (+342.86%)
Mutual labels:  unifi, ubiquiti
unifi2mqtt
Connect Ubiquiti UniFi controller to MQTT 📡
Stars: ✭ 66 (+57.14%)
Mutual labels:  unifi, ubiquiti
UFiber.Configurator
UFiber Configuration Tool
Stars: ✭ 44 (+4.76%)
Mutual labels:  unifi, ubiquiti
ubnt-cloudflared
Install Cloudflare's DNS proxy on UBNT gateways
Stars: ✭ 22 (-47.62%)
Mutual labels:  unifi, ubiquiti
addon-unifi
UniFi Network Application - Home Assistant Community Add-ons
Stars: ✭ 190 (+352.38%)
Mutual labels:  unifi, ubiquiti
wireguard
Wireguard for UDM
Stars: ✭ 56 (+33.33%)
Mutual labels:  udm
pyunifiprotect
Unofficial UniFi Protect Python API and CLI
Stars: ✭ 57 (+35.71%)
Mutual labels:  ubiquiti
myconfig
My Home Assistant config
Stars: ✭ 143 (+240.48%)
Mutual labels:  unifi-dream-machine
unifi-pi-hole
A Pi-hole equivalent for the Unifi Security Gateway
Stars: ✭ 30 (-28.57%)
Mutual labels:  unifi
edgerouter-ansible
Ansible automation of home EdgeRouter Lite
Stars: ✭ 28 (-33.33%)
Mutual labels:  ubiquiti

Ubiquiti Dream Machine Pro onboot.d scripts

This repository contains on boot scripts which handle various things, see below for more details.

Installation

  1. First install the excellent UDM on-boot-script package from boostchicken/udm-utilities.

  2. Download this repository and adjust its configuration to your needs.

  3. Edit the install.sh script and change the ROUTER to your routers IP address and run install.sh

  4. Login to your UDM via ssh and run the on_boot.d scripts to activate them.

    They should persist across reboots and firmware updates per the on_boot project.

on_boot.d\auth.vpn

This script appends the authorized_keys file in udm-patches\root-ssh to the root authorized_keys file upon boot.

on_boot.d\openvpn.sh

This script installs the openvpn-wrapper.sh symlink to intercept UDM openvpn start/stop requests and allows you to use an entirely customized OpenVPN config file (.ovpn) while keeping it integrated with the UDM OS.

You should setup an openvpn-N directory within udm-patches with your custom openvpn.conf file.

See the existing openvpn-N file for instructions to modify your own config file.

If you only have one VPN connection, the directory would be openvpn-1. If you have multiple tunnels you may override any or all of them by creating the appropriate openvpn-N directory where N corresponds to the tunnel number in use by the UDM.

Once your configuration file is ready and in place, create a new site to site OpenVPN in the UDM gui using any parameters that will allow you to save. The wrapper script will re-route the openvpn call to utilize your custom config and setup tunnel masquerading. It is assumed that the server you are connecting to will push the routes to the UDM.

Troubleshooting

If you are having trouble with the connection, you can see the output of the last intercepted openvpn run by looking at the file /tmp/openvpn-orig.log on the base alpine image which is a redirect of the openvpn command output.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].