!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

918 Members
Declaratively manage your switching, routing, wireless, tunneling and more.267 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@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
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @elvishjerricco:matrix.org
It'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...
I'm actually looking for something more: Give me something that looks like an AP with a nice-looking shell + good antenna, but with aarch64 running a hackable platform like openwrt
00:50:08
@hexa:lossy.networkhexa
In reply to @elvishjerricco:matrix.org
It'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...
There's lots of dualband radios on one card, also without bluetooth (QCA95xx, QCA61xx), but only one band at a time, so you ultimately need two.
00:50:24
@hexa:lossy.networkhexa Zhaofeng Li: Unifi 6 LR is armv8 00:50:48
@elvishjerricco:matrix.orgElvishJerricco hexa: Right, I meant one card that could do both at the same time. That'd be neat 00:50:50
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @hexa:lossy.network
Zhaofeng Li: Unifi 6 LR is armv8
Yeah, but too bad the firmware isn't that hackable (I mean you can get root and so stuff, but it's pretty limiting)
00:51:49
@zhaofeng:zhaofeng.liZhaofeng LiI have two unifi aps at home which work just fine, but I wished I had more control00:52:22
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @hexa:lossy.network
Zhaofeng Li: Unifi 6 LR is armv8
* Yeah, but too bad the firmware isn't that hackable (I mean you can get root and do stuff, but it's pretty limiting)
00:52:31
@hexa:lossy.networkhexaI don't understand the limitations you describe though?00:52:39
@hexa:lossy.networkhexa
MediaTek MT7622
512MB DDR3 RAM
64M SPI-NOR Flash (Winbond W25Q512JV)
MediaTek MT7622 802.11bgn 4T4R WMAC
MediaTek MT7915 802.11ax 4T4R
Marvell AQR1112 100/1000/2500 NBase-T PHY
Holtek HT32F52241 LED controller
00:53:06
@noah:matrix.chatsubo.cafeChurch hexa I probably need to forward 25 from wg0 to eth0 on my remote as well right? 00:53:09
@zhaofeng:zhaofeng.liZhaofeng LiCan you install custom firmware on those things? I thought the updates are all signed00:53:22
@hexa:lossy.networkhexa
1. Connect to the booted device at 192.168.1.20 using username/password
   "ubnt".

2. Transfer the OpenWrt sysupgrade image to the device using SCP.

3. Check the mtd partition number for bs / kernel0 / kernel1

   $ cat /proc/mtd

4. Set the bootselect flag to boot from kernel0

   $ dd if=/dev/zero bs=1 count=1 of=/dev/mtdblock6

5. Write the OpenWrt sysupgrade image to both kernel0 as well as kernel1

   $ dd if=openwrt.bin of=/dev/mtdblock8
   $ dd if=openwrt.bin of=/dev/mtdblock9

6. Reboot the device. It should boot into OpenWrt.

00:53:47
@hexa:lossy.networkhexahttps://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=634c13c186646aff2badb51a43b248825d0fe5a000:54:28
@hexa:lossy.networkhexa
In reply to @noah:matrix.chatsubo.cafe
hexa I probably need to forward 25 from wg0 to eth0 on my remote as well right?
No, iptables just needs to mark that traffic, the rest happens with routing based on that fwmark
00:55:02
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @hexa:lossy.network
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=634c13c186646aff2badb51a43b248825d0fe5a0
Wow nice, I might actually consider it
00:55:26
@hexa:lossy.networkhexaDual A53 (1,36 GHz)00:55:50
@hexa:lossy.networkhexahttps://www.mediatek.com/products/homenetworking/mt762200:56:12
@zhaofeng:zhaofeng.liZhaofeng LiWell, it's an AP so it doesn't matter that much00:56:15

Show newer messages


Back to Room ListRoom Version: 6