feat: 8-VLAN Segmentation & Router Automation#52
Closed
geeksbsmrt wants to merge 6 commits intomainfrom
Closed
Conversation
Define envsubst-templated Kea configuration with subnet4 entries for
Management (10), Infrastructure (20), Personal (30), Work (40),
IoT (50), Cameras (60), Guest (70), and Homelab (80) VLANs.
Uses raw DHCP sockets across eth0 and eth0.{20-80} interfaces.
Create services-start to configure 802.1Q tagged interfaces on eth4, map eth3 as an IoT access port, and bridge SSIDs to VLANs. Create firewall-start to implement inter-VLAN access policies with a 5-minute auto-revert dead man's switch. Create confirm-firewall.sh to disarm the switch.
Create setup-vlans.sh to idempotently configure eth0.20-80 with static IPs for the Docker host. Create pi-vlans.service oneshot unit for reboot persistence.
Automate deployment of Merlin scripts to /jffs/scripts/ via SSH. Implements connectivity verification to automatically disarm the firewall dead man's switch upon successful SSH reconnection.
Configure deploy-prod workflow to inject env vars into ISC Kea config. Deploy pi-vlans.service and execute setup-vlans.sh to ensure Docker host sub-interfaces exist before docker compose up.
Disable Pi-hole built-in DHCP. Add ISC Kea DHCP4 container attached to the host network. Migrate the entire Docker stack from the legacy 192.168.254.0/24 macvlan to the new Infrastructure VLAN (20). Create 8 dedicated macvlan networks and attach Pi-hole to all for native per-VLAN DNS visibility. Update SOPS secrets with new IPs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the 8-VLAN network segmentation plan: migrate from Pi-hole DHCP to ISC Kea, deploy router 802.1Q tagging and firewall isolation, and configure Docker host VLAN sub-interfaces with system d persistence.