Skip to content

Instantly share code, notes, and snippets.

View dkoneill's full-sized avatar

Dan O'Neill dkoneill

View GitHub Profile
@dkoneill
dkoneill / unifi_allow_LAN_to_VLAN_traffic.md
Last active November 28, 2024 03:26
Unifi allow LAN to VLAN traffic

Purpose

To allow Default LAN (VLAN 1) initiated traffic to reach devices on any other VLAN defined on the UDMP device and block traffic between VLAN's.

Assumptions for these instructions

Device: UDM Pro
OS: 4.0.21 (Official release up to date as of 2024-11-27)
Networks: Two VLAN's, default (1) and Guest (30)

Profiles IP Groups

Profile Name:   All private IPs RFC1918
@dkoneill
dkoneill / ubiquiti_icons_drawio.md
Created November 27, 2024 19:10
Add Ubiquiti icons to drawio

ubiquiti-drawio

Draw.io library for Ubiquiti networks

The SVG shapes were retrieved from the a Unifi CloudKey Gen 2+ stored in cd /mnt/.rwfs/data/usr/lib/ulp-go/swai/static/media

Usage

  1. Go to draw.io and create a new diagram.
@dkoneill
dkoneill / gist:c2665f0b211eaa3bfcd3b2013ffcd7d2
Last active January 16, 2023 04:03
Ambient Weather WS-2902 WiFi Smart Weather Station fails to deliver data
Ambientweather's servers had problems some problems which led to a data delivery failure
Their server problems were resolved, however, they use Amazon Web Services (AWS)
They changed to a new AWS server, left the old one running, but the old one doesn't process data, or the authentication credentials of our WS-2902 were not present.
The old server does, however, give an OK response when sent data - we were sending data, the server said it was OK, it wasn't
The WS-2902 console caches the IP address of the remote server and does not renew it ever (as far as I can tell)
Removing power and battery backup from the weather station and then plugging it back in clears the IP address / Hostname cache.
The Ambientweather station is now talking to a new server that does process data.
Ambientweather.net and all downstream weather services should be getting updates as of 2022-09-26 1240
@dkoneill
dkoneill / ubuntu-cups-hp-unable-read-device-id.txt
Last active January 12, 2023 09:03
Ubuntu 20.04 CUPS HP Printer io/hpmud/jd.c 94: unable to read device-id
The following error message is logged to /var/log/syslog by hpcups and indicates that the CUPS subsystem
is attempting to query the SNMP 'public' community name to retrieve printer device information.
io/hpmud/jd.c 94: unable to read device-id
Unfortunately this stops the hp cups subsystem from printing with the following error in /var/log/syslog
prnt/backend/hp.c 825: INFO: open device failed stat=12: hp:/net/HP_LaserJet_P2035n?ip=10.10.0.25; will retry in 30 seconds...
A look at the code base for jd.c shows that an SNMP query failure generates the "unable to read device-id" error message