!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

907 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@elvishjerricco:matrix.orgElvishJerricco I suppose the rpi cm4 has a pcie slot, and is still reasonably cheap. Is there a good cheap card for this? 00:31:27
@hexa:lossy.networkhexapersonally I roll with openwrt00:31:28
@hexa:lossy.networkhexayou'd probably want mpcie or m.2, there's lots of cards out there00:32:02
@hexa:lossy.networkhexaI can recommend ath9k/ath10k/mt7600:32:13
@hexa:lossy.networkhexaeverything else is messy and not well supported00:32:27
@noah:matrix.chatsubo.cafeChurch
In reply to @antifuchs:asf.computer
hah, I've been wanting to set up a nice dedicated router for my home network with nix... it seems like a very good match
The apu2e4 is a great machine for it.
00:33:27
@hexa:lossy.networkhexabut stuck with minipcie00:33:34
@hexa:lossy.networkhexaand you'd need two radios for dualband wifi00:33:42
@hexa:lossy.networkhexaand that sets you back like ~215 €00:33:55
@hexa:lossy.networkhexathere is no nice case with enough external antenna slots00:34:35
@hexa:lossy.networkhexathere is one, it isn't too nice :D00:34:42
@noah:matrix.chatsubo.cafeChurchOkay stupid question because my networking is weak. Is there a manner to specify forwarding all traffic destinated for a port to/through an address first? Have a wg peer connected to my router I want to forward all traffic destined for port 25 to from another machine. So machine A -> router -> wg peer ip00:35:10
@hexa:lossy.networkhexa(my home wifi is an apu2c4 with a compex wle600vx)00:35:14
@noah:matrix.chatsubo.cafeChurchSame except a unifi AP for wireless00:35:37
@noah:matrix.chatsubo.cafeChurchNice little beast00:35:46
@hexa:lossy.networkhexaflag it with fwmark in iptables, do policy routing based on that mark, add a route to the relvent table00:35:54
@zhaofeng:zhaofeng.liZhaofeng LiHad an expressobin (2x Cortex A53) as the home router, wasn't able to saturate gigabit with the iptables rules and stuff that I had 🙁00:36:10
@noah:matrix.chatsubo.cafeChurchOkay time to go look up how to do that00:36:19
@zhaofeng:zhaofeng.liZhaofeng LiAnd then I stayed away from low-powered devices like that00:36:29
@hexa:lossy.networkhexanot quite the A76 we're hoping for 00:36:31
@noah:matrix.chatsubo.cafeChurchWonder if I just bother danderson for it heh00:36:32
@noah:matrix.chatsubo.cafeChurchOkay seems simple from memory. Now to try it out heh00:37:55
@hexa:lossy.networkhexaiptables -A prerouting -t mangle -i wg0 -p tcp --dport 25 --jump MARK --set-mark 100:38:18
@hexa:lossy.networkhexaip rule add priority 100 fwmark 0x1 lookup 10000:38:50
@hexa:lossy.networkhexaip route add default via 192.0.2.1 table 10000:39:06
@hexa:lossy.networkhexa(in imperative speak)00:39:10
@hexa:lossy.networkhexamy worst enemy is ia_pd in networkd, can never get it work the first try00:44:17
@elvishjerricco:matrix.orgElvishJerriccoIt'd be nice if there was a wireless card intended for DIY'ers who just want to build an access point :P Give me two radios and no bluetooth on one pcie card...00:45:55
@hexa:lossy.networkhexa

Upstream:

[Match]
Name=ppp0

[Link]
RequiredForOnline=routable

[Network]
DHCP=ipv6
IPv6AcceptRA=true
KeepConfiguration=true

[DHCPv6]
PrefixDelegationHint=::/56

[IPv6SendRA]
Managed=true

Downstream

[Match]
Name=vlan100

[Link]
RequiredForOnline=routable

[Network]
ConfigureWithoutCarrier=true
DHCPv6PrefixDelegation=true
IPv6AcceptRA=false
IPv6SendRA=true
Address=192.168.178.1/24
Address=fe80::1/64

[DHCPv6PrefixDelegation]
SubnetId=64

[IPv6SendRA]
DNS=fe80::1
EmitDNS=true
RouterLifetimeSec=300
00:46:29
@hexa:lossy.networkhexaand networkd doesn't ask the upstream for a prefix delegation00:47:07

There are no newer messages yet.


Back to Room ListRoom Version: 6