!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

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

Load older messages


SenderMessageTime
5 Jun 2021
@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
@hexa:lossy.networkhexayup00:56:18
@noah:matrix.chatsubo.cafeChurchHmm what would be the easiest way for me to see how a packet flows? 01:00:58
@hexa:lossy.networkhexatcpdump to see the packet01:01:15
@hexa:lossy.networkhexa then use ip route get <dest> from <src> 01:01:27
@elvishjerricco:matrix.orgElvishJerriccoSo on a dual band router, does the OS on the router see two different wireless interfaces, one for each band?01:28:48
@hexa:lossy.networkhexayes01:37:50
@noah:matrix.chatsubo.cafeChurchHmm, is there not a mangle table on nixOS?02:43:04
@noah:matrix.chatsubo.cafeChurchSeems to not be there by default at least when I try to insert a rule02:43:18
@hexa:lossy.networkhexaRedacted or Malformed Event03:04:03
@hexa:lossy.networkhexaimage.png
Download image.png
03:05:02
@hexa:lossy.networkhexa(https://en.wikipedia.org/wiki/Netfilter#/media/File:Netfilter-packet-flow.svg)03:05:20
@hexa:lossy.networkhexait's not available in all chains03:06:00
@noah:matrix.chatsubo.cafeChurch
[root@teapot:~]# iptables -A prerouting -t mangle -i wg0 -p tcp --dport 25 --jump MARK --set-mark 2
iptables: No chain/target/match by that name.
03:34:17
@zhaofeng:zhaofeng.liZhaofeng LiChains are case-sensitive. Use PREROUTING04:53:03
@noah:matrix.chatsubo.cafeChurchAh05:23:23
@zhaofeng:zhaofeng.liZhaofeng Li Upgrading my routers today and noticed that I'm building the kernels. Turns out I have a kernelPatch to enable CONFIG_INFINIBAND_IPOIB_CM back when I first switched to NixOS from Arch, and it's not enabled in the default kernel. 06:37:45
@zhaofeng:zhaofeng.liZhaofeng LiSo apparently no one except me is using IB with NixOS? 😅 Opening a PR in a bit06:38:36
@corbin:matrix.orgCorbinYou might be the only one using the Connected Mode feature. A PR seems sensible, since it would only trigger the underlying module to be built.07:38:04
@zhaofeng:zhaofeng.liZhaofeng LiI was saying that because IPoIB isn't really "usable" without Connected Mode. The performance is just so much better.08:01:24

Show newer messages


Back to Room ListRoom Version: 6