!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

911 Members
Declaratively manage your switching, routing, wireless, tunneling and more.273 Servers

Load older messages


SenderMessageTime
15 Jul 2021
@mic92:nixos.devMic92
In reply to @citadelcore:nixos.dev
I'd like to replace the GRE/WireGuard tunnels with something like Tinc in the future, since WG appears to be causing an obscure kernel bug with Bird that's very annoying
I already have built all my VPN stuff based on tinc. It has nice semantics unfortunally it's performance is quite bad.
15:39:34
@citadelcore:nixos.devAlex ZeroAh, that kinda sucks :/15:39:59
@mic92:nixos.devMic92There were plans in the tinc community to use wireguard as the lower layer... never happend so15:40:46
@mic92:nixos.devMic92you maybe want to have a look at https://github.com/slackhq/nebula15:41:05
@mic92:nixos.devMic92I never checked it's performance so.15:41:15
@mic92:nixos.devMic92Than there is tailscale https://tailscale.com/15:41:31
@leons:is.currently.onlineLeon
In reply to @citadelcore:nixos.dev
I'd like to replace the GRE/WireGuard tunnels with something like Tinc in the future, since WG appears to be causing an obscure kernel bug with Bird that's very annoying
What are symptoms of these bugs? Works fine for me so far…
15:42:31
@citadelcore:nixos.devAlex ZeroThe kernel essentially fails to report that routes exist in the FIB, so BIRD ends up inserting duplicates15:44:06
@citadelcore:nixos.devAlex ZeroDrives the CPU usage to 100% and eventually crashes the process15:44:22
@citadelcore:nixos.devAlex ZeroI've submitted a kernel bug, but nobody ever replied to it 15:44:35
@citadelcore:nixos.devAlex Zerohttps://lkml.org/lkml/2020/6/11/72015:45:25
@leons:is.currently.onlineLeonHm, very interesting.15:45:31
@citadelcore:nixos.devAlex ZeroOnly thing that works is downgrading the kernel to 5.2,which is not ideal at all15:45:54
@citadelcore:nixos.devAlex ZeroI've had to force it on all the router VMs15:46:03
@citadelcore:nixos.devAlex ZeroFor lack of a better solution 15:46:09
@mic92:nixos.devMic92 Alex Zero: Did you cc'ed the original authors? 15:56:53
@mic92:nixos.devMic92also the merge and post it on netdev15:57:26
@mic92:nixos.devMic92Also include tcpdump dumps from netlink15:58:06
@citadelcore:nixos.devAlex ZeroI'll do that, thanks 👍16:12:22
@mic92:nixos.devMic92*merger16:14:48
@amanda:camnet.siteAmanda (she/her)So, somehow my co-admin is able to assign IPs to his proxmox VMs using his router's networking stack. He said something about bridging the interface or similar -- is this something I could set up myself to do with lxd/nixos containers? I'm not very versed in networking stuff, so any clarification is appreciated17:02:58
@amanda:camnet.siteAmanda (she/her)( He doesn't seem to understand how it works either, I tried asking )17:03:26
@linus.heckemann:matrix.mayflower.deLinux Hackerman Amanda (she/her): yep, if you create a bridge and put both your physical interface and one side of a veth pair on that bridge, the containers will be on the network as if they were additional physical machines attached via a switch. 17:08:43
@amanda:camnet.siteAmanda (she/her)Huh, It's just putting it on the bridge? For some reason I thought bridges were what was used for the host-local stuff17:09:37
@linus.heckemann:matrix.mayflower.deLinux HackermanNot sure how to do that with lxd, but you can use systemd-nspawn's `--network-bridge` to put an nspawn container on it17:10:02
@linus.heckemann:matrix.mayflower.deLinux HackermanThe trick is to bridge the physical interface as well.17:10:13
@amanda:camnet.siteAmanda (she/her) So I assume I'd want something like networking.bridges.<bridge>.interfaces = ["eth0"] 17:10:58
@linus.heckemann:matrix.mayflower.deLinux HackermanBridge = switch, pretty much. You can have a bridge where only the containers are — that way the containers can only talk to each other and the host, and the host needs to do forwarding for them to reach any further17:11:19
@linus.heckemann:matrix.mayflower.deLinux HackermanBy adding the physical interface, their traffic can go straight to your router17:11:37
@linus.heckemann:matrix.mayflower.deLinux Hackerman
In reply to @amanda:camnet.site
So I assume I'd want something like networking.bridges.<bridge>.interfaces = ["eth0"]
Yep
17:11:39

Show newer messages


Back to Room ListRoom Version: 6