!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

909 Members
Declaratively manage your switching, routing, wireless, tunneling and more.265 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@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
@hexa:lossy.networkhexa
02:16:15.265641 IP6 (flowlabel 0x1cc9b, hlim 1, next-header UDP (17) payload length: 50) fe80::a89a:491a:e08d:6dd1.546 > ff02::1:2.547: [udp sum ok] dhcp6 inf-req (xid=3ec775 (option-request DNS-server DNS-search-list NTP-server SNTP-servers rapid-commit) (client-ID vid 0000ab11a51f239b) (elapsed-time 0))
00:47:12
@hexa:lossy.networkhexa I remember that the downstream interface needs to actively use it for to be requested on the upstream interface, but I thought that networkConfig.DHCPv6PrefixDelegation = true; and networkConfig.IPv6SendRA = true; was enough 00:48:15
@kraftnix:matrix.orgkraftnix joined the room.00:50:04

Show newer messages


Back to Room ListRoom Version: 6