Skip to content

feat: add allowed_subnets for VPN relay/site-to-site configuration#3

Open
fherbert wants to merge 3 commits into
bartei:devfrom
fherbert:dev
Open

feat: add allowed_subnets for VPN relay/site-to-site configuration#3
fherbert wants to merge 3 commits into
bartei:devfrom
fherbert:dev

Conversation

@fherbert
Copy link
Copy Markdown

@fherbert fherbert commented Jun 5, 2026

This adds support to add devices in site to site mode - ie as vpn relays.
Features:

  • Extends device SQLModel to include allowed_subnets list
  • Adds optional routed subnets (allowed_subnets) field to device configuration (both under user and admin view)
Screenshot 2026-06-05 at 2 10 42 PM
  • If device has allowed_subnets configured:
    • The list of subnets will be appended on the server side peer allowed ip config
Screenshot 2026-06-05 at 2 25 15 PM
  • Any traffic coming from these subnets will be forwarded to the users chain
Screenshot 2026-06-05 at 2 19 49 PM
  • routes will be added to the routing table for each subnet
Screenshot 2026-06-05 at 2 20 28 PM

Happy to discuss this PR and can start conversation from here :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant