{"id":31379354,"url":"https://github.com/imaginator/home-network","last_synced_at":"2025-09-28T07:48:28.847Z","repository":{"id":145976093,"uuid":"99137585","full_name":"imaginator/home-network","owner":"imaginator","description":"config for a home network","archived":false,"fork":false,"pushed_at":"2024-06-04T19:49:55.000Z","size":10544,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-26T15:49:05.529Z","etag":null,"topics":["lede","network","openwrt","ubiquiti","unifi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imaginator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-02T16:17:51.000Z","updated_at":"2025-04-09T10:12:06.000Z","dependencies_parsed_at":"2023-05-18T15:16:27.066Z","dependency_job_id":"dc9730bd-6303-46f1-b34d-7cd68f9fbdc4","html_url":"https://github.com/imaginator/home-network","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imaginator/home-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaginator%2Fhome-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaginator%2Fhome-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaginator%2Fhome-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaginator%2Fhome-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imaginator","download_url":"https://codeload.github.com/imaginator/home-network/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaginator%2Fhome-network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277340300,"owners_count":25801863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lede","network","openwrt","ubiquiti","unifi"],"created_at":"2025-09-28T07:48:27.251Z","updated_at":"2025-09-28T07:48:28.841Z","avatar_url":"https://github.com/imaginator.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Network\n\nThis is the code that configures my home network. The network consists of the following gear:\n- [Ubiquiti EdgerouterX](https://openwrt.org/toh/ubiquiti/ubiquiti_edgerouter_x_er-x_ka) ([config](edgerouterx.settings))\n- 3x [Ubiquiti Nanostation M2 Locos](https://wiki.openwrt.org/toh/ubiquiti/nanostationm2) ([config](nanostationm2.settings))\n- [Ubiquiti AP Pro](https://openwrt.org/toh/ubiquiti/unifi_appro) ([config](nanostationm2.settings))\n\nThe network is monitored at: https://bunker.imaginator.com/grafana/dashboard/db/wifi using the (Prometheus Node Exporter)[https://github.com/openwrt/packages/tree/master/utils/prometheus-node-exporter-lua].\n\n## Subnetting\n\nFrom `10.7.8.0/21` we have `10.7.8.0` - `10.7.15.255` (2046 IPs)\n\n| Use                | Subnet address | Netmask       | Range of addresses      | Useable IPs             | Hosts |\n| ------------------ | -------------- | ------------- | ----------------------- | ----------------------- | ----- |\n| VPN termination    | 10.7.8.0/24    | 255.255.255.0 | 10.7.8.0 -  10.7.8.255  | 10.7.8.1 -  10.7.8.254  | 254   |\n| IoT                | 10.7.9.0/24    | 255.255.255.0 | 10.7.9.0 -  10.7.9.255  | 10.7.9.1 -  10.7.9.254  | 254   |\n| F17 Trusted        | 10.7.10.0/24   | 255.255.255.0 | 10.7.10.0 - 10.7.10.255 | 10.7.10.1 - 10.7.10.254 | 254   |\n| W16 Trusted        | 10.7.11.0/24   | 255.255.255.0 | 10.7.11.0 - 10.7.11.255 | 10.7.11.1 - 10.7.11.254 | 254   |\n| Notrust / Freifunk | 10.7.12.0/22   | 255.255.252.0 | 10.7.12.0 - 10.7.15.255 | 10.7.12.1 - 10.7.15.254 | 1022  |\n| Freifunk mesh (IPv4) | 10.36.189.0/24 | 255.255.255.0 | 10.36.189.0 - 10.36.189.255 | 10.36.189.1 - 10.36.189.254 | 254 |\n| Freifunk mesh (IPv6) | 2001:bf7:830:6600::/56 | | | | |\n\nFreifunk addresses: 10.31.14.84/32, 10.31.14.85/32, 10.31.14.86/32, 10.230.99.32/28 \n\n## Build Firmware\n\n```\n./build-firmware \u003cedgerouterx|repeaterNN\u003e\n```\n\n## Configure\n\n```\ncp network-secrets.env.example network-secrets.env # and edit as appropriate\n./deploy \u003cedgerouterx|repeaterNN\u003e\n```\n\n## Debugging Notes\n\nWireless Mesh notes (no longer used since 802.11s was to be **really** slow)\n\n```\niw phy0 info\niw --debug event -f\niw dev mesh2 station dump\niw dev mesh2 survey dump\niw mesh2 get power_save\niw dev mesh2 mpath dump\niw dev mesh2 station dump\nwifi status\niw dev mesh2  scan\niw dev mesh2 get mesh_param\niw list |grep -i antenna\n```\n\nDebugging wifi management frames\n\n```\nopkg update\nopkg install horst\niw dev mesh2 interface add mon0 type monitor\nhorst -i mon0\n\ngrep -q mon0 /proc/net/dev || /usr/sbin/iw phy phy0 interface add mon0 type monitor;  /sbin/ifconfig mon0 up; /usr/sbin/tcpdump -s 0 -i mon0 -y IEEE802_11_RADIO\ngrep -q mon0 /proc/net/dev || /usr/sbin/iw phy phy0 interface add mon0 type monitor;  /sbin/ifconfig mon0 up; /usr/sbin/iwcap -i mon0 -s\n```\n\nRead wifi stats from ` /sys/kernel/debug/ieee80211/phy1/netdev\\:dual2/stations/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaginator%2Fhome-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimaginator%2Fhome-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaginator%2Fhome-network/lists"}