Skip to content

Adding vrf support#138

Merged
xddxdd merged 2 commits intoxddxdd:masterfrom
frantathefranta:adding-vrf-support
Feb 4, 2026
Merged

Adding vrf support#138
xddxdd merged 2 commits intoxddxdd:masterfrom
frantathefranta:adding-vrf-support

Conversation

@frantathefranta
Copy link
Contributor

Full disclosure, this has been vibe-coded with Claude.
I was trying to run bird-lg-proxy in a VRF bound to a single IP and found out that didn't quite work (if the IP isn't present in the default VRF, it will fail to start). Then, I realized that I can't always rely on ip vrf exec because it might not work in containers (BPF stuff I'm not qualified to speculate about). So I asked Claude to create the minimum amount of changes to support binding to a VRF using SO_BINDTODEVICE. I've built this on NixOS and it works in the setup I was intending it to use it in (bound to a VRF IP). I'll understand if merging AI generated changes is not acceptable, just trying to see if there's interest in these changes.

frantathefranta and others added 2 commits February 2, 2026 09:50
Bind all TCP sockets (listeners and outbound connections) to a
specified VRF device via SO_BINDTODEVICE when --vrf is set. Unix
sockets (BIRD) are unaffected. Linux-only; panics at startup on
other platforms if configured.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@xddxdd xddxdd merged commit c7880cc into xddxdd:master Feb 4, 2026
4 checks passed
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.

2 participants