eyJhb changed the topic of #nixos-on-your-router to: NixOS on your Router || https://logs.nix.samueldr.com/nixos-on-your-router
teto has quit [Ping timeout: 258 seconds]
thibm_ has joined #nixos-on-your-router
thibm has quit [Ping timeout: 265 seconds]
teto has joined #nixos-on-your-router
teto has quit [Quit: WeeChat 3.0]
teto has joined #nixos-on-your-router
teto has quit [Ping timeout: 260 seconds]
WilliButz has quit [Ping timeout: 240 seconds]
<sphalerite> oh boy. Surge protection on ethernet. This was not a thing I worried about before today.
WilliButz has joined #nixos-on-your-router
andi- has quit [Ping timeout: 258 seconds]
andi- has joined #nixos-on-your-router
<steveeJ> is someone running some sort of multiwan set up with NixOS?
<steveeJ> sphalerite: how did the surge happen?
<sphalerite> steveeJ: no, nothing that happened to me, just what mdlayher said
<steveeJ> ah, I didn't read too far up the backlog :-D
<mdlayher> I've actually had two NICs and a router get fried by lightning. Not great
nwspk has quit [Ping timeout: 268 seconds]
nwspk has joined #nixos-on-your-router
teto has joined #nixos-on-your-router
thibm_ has quit [Ping timeout: 246 seconds]
<hexa-> steveeJ: what kind of multiwan setup do you imagine?
<steveeJ> hexa-: a router that does transparent load-balancing with two ISP connections
<hexa-> based on?
<steveeJ> ideally based on connection saturation
<steveeJ> practically this could work based on latency measurements
<steveeJ> of monitoring against predefined limits
<hexa-> latency measurements are a tough thing to do against … the internet :)
<steveeJ> s/of/or/
<hexa-> so, yeah. openwrt has mwan3 I think
<hexa-> I don't think it exists outside of openwrts packages repo
<hexa-> you could also look into the mptcp patchset
<steveeJ> I also found this earlier today: https://mlvpn.readthedocs.io/en/latest/linux_example.html
<cransom> those patches are supposed to land upstream at some point too (mptcp)
<hexa-> steveeJ: yeah, but with that kind of setup you basically tunnel all your traffic through a SPOF remote server
<hexa-> so your failover goes boom to some degree
<sphalerite> haven't they already landed upstream?
<hexa-> they were pretty close last I looked
<hexa-> anyway, a pretty simple solution could be based on the `weight`attribute on your two default routes
<hexa-> but you'd probably want something more elaborate, like sending the same flow always the same way etc. :D
<hexa-> I guess I'd try out mptcp first
<cransom> mptcp only works though if the end point is also mptcp aware. if you were to tcp proxy all your traffic somewhere though that was faster than your uplinks, that works. i was reading that was how the super dense korean markets provide crazy high speed devices, balancing wifi+cellular traffic through socks proxies
<cransom> siri uses it, which is also interesting.
<gchristensen> whoa cool
<steveeJ> cransom: so for generic use you'd need a proxy similar to the architecture shown on the mlvpn example?
<cransom> yes, you'd need another machine upstream that you control. each likely has trade offs for their specific magic.
<cransom> doing link load balancing on a home/small office setup is more cumbersome than if you were to have business providers that would chat bgp with you, have your own subnet, etc. soho requires lots of bandaids.
<hexa-> true
<teto> you can check openmptcprouter.com for some explanation. I've written https://github.com/teto/mptcpanalyzer to help with traffic analysis (can be hard otherwise)
<steveeJ> thanks teto, I'll check that out
thibm_ has joined #nixos-on-your-router
<steveeJ> roadmap of mptcp mainline integration: https://github.com/multipath-tcp/mptcp_net-next/wiki#changelog
<steveeJ> teto: can you outline what's currently working with linuxPackages_latest on 20.09?
<teto> steveeJ I haven't followed what was released recently, MPTCP has been available for single path (sic) for quite some time, I am not sure the support for multiple paths has been merged yet. It's something I want to look into to updat https://github.com/NixOS/nixpkgs/pull/59342 but I've beenbusy lately
<{^_^}> #59342 (by teto, 1 year ago, open): nixos/mptcp: multipath TCP module
<teto> nixpkgs contains also the out of tree MPTCP linux kernel which is featurefull with a netlink path manager etc: linuxPackages_mptcp
mmlb22 is now known as mmlb
<steveeJ> teto: I saw that. it's a bit dated at 4.19 though
<cransom> afaik, that was the last patchset that they rebased against and is easily available.
<hexa-> or get linuxPackages_testing and see where it takes you :)
<flokli> to the moon!