!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

879 Members
Declaratively manage your switching, routing, wireless, tunneling and more.257 Servers

Load older messages


SenderMessageTime
5 Jun 2021
@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
@nyanotech:catgirl.solutionsnyanotech joined the room.14:24:01
@noah:matrix.chatsubo.cafeChurchHmm seems my policy based route for port 25 traffic still isn't working. Grumble, I think this is why I quit trying this last time to heh17:37:27
@mutantmell:helveticastandard.commutantmellI have an old Unifi AC I'm currently not using, maybe I'll try putting NixOS or openwrt on it18:11:35
@hexa:lossy.networkhexa Church: might not need fwmark after all 22:11:53
@hexa:lossy.networkhexa ip rule knows dport 25 and iif eth0 22:12:09
@noah:matrix.chatsubo.cafeChurchEyep.22:12:15
@noah:matrix.chatsubo.cafeChurchIf you saw a church in #networking on libera that was me. :P22:12:35
@hexa:lossy.networkhexa mutantmell: openwrt will be easy, nixwrt might be something you want to look into 22:12:40
@hexa:lossy.networkhexaI'm there, but I don't actively follow the conversations 22:12:52
@hexa:lossy.networkhexaI'm in north of 200 channels 22:13:00
@noah:matrix.chatsubo.cafeChurchJust need to figure out the fw rules to proxy traffic correctly from wg0 -> eth0 on my remote end finally.22:13:10
@mutantmell:helveticastandard.commutantmell
In reply to @hexa:lossy.network
mutantmell: openwrt will be easy, nixwrt might be something you want to look into
thanks for the pointer!
22:52:14
@elvishjerricco:matrix.orgElvishJerricco
$ networkctl status wlan0
● 3: wlan0                                                                                                                   
                     Link File: /nix/store/i3kbvbm0rib0habk88ybm9xpqpnj1s8x-systemd-247.2/lib/systemd/network/99-default.link
                  Network File: /etc/systemd/network/40-wlan0.network                                                        
                          Type: wlan                                                                                         
                         State: enslaved (failed)                                                                            
                          Path: platform-fe300000.mmcnr                                                                      
                        Driver: brcmfmac                                                                                     
                    HW Address: dc:a6:32:fe:7a:34 (Raspberry Pi Trading Ltd)                                                 
                           MTU: 1500 (min: 68, max: 1500)                                                                    
                         QDisc: fq_codel                                                                                     
                        Master: br0                                                                                          
  IPv6 Address Generation Mode: none                                                                                         
             WiFi access point: My Pi Network (00:00:00:00:00:00)                                                            
          Queue Length (Tx/Rx): 1/1                                                                                          

Jun 05 23:47:15 nixos systemd-networkd[659]: wlan0: Could not join netdev: Device does not allow enslaving to a bridge. Operation not supported
Jun 05 23:47:15 nixos systemd-networkd[659]: wlan0: Failed
Jun 05 23:47:15 nixos systemd-networkd[659]: wlan0: Link UP
Jun 05 23:47:15 nixos systemd-networkd[659]: wlan0: Gained carrier

So this is the networkctl status of my wlan0 interface on the rpi that I set up as an access point yesterday. The network all functions like there's nothing wrong, but there it says it's "failed". Why is that?

23:50:48
@zhaofeng:zhaofeng.liZhaofeng LiYou typically can't put wireless interfaces into a bridge23:53:05
@elvishjerricco:matrix.orgElvishJerricco Zhaofeng Li: Well it works. I have hostapd on wlan0, and my other devices can connect to it as a wifi network, and the bridge with eth0 must be working because those devices can reach the internet. 23:54:04
@zhaofeng:zhaofeng.liZhaofeng LiYou are doing routing instead of bridging23:56:00
@zhaofeng:zhaofeng.liZhaofeng LiCare to explain your setup again?23:56:34
@elvishjerricco:matrix.orgElvishJerricco Zhaofeng Li: I don't have a dhcp server or anything on this pi though 23:56:38
@elvishjerricco:matrix.orgElvishJerriccoOne sec...23:57:02
@elvishjerricco:matrix.orgElvishJerricco

On my pi, I have this:

  networking.bridges.br0.interfaces = ["eth0" "wlan0"];
  services.hostapd = {
    enable = true;
    interface = "wlan0";
    hwMode = "g";
    ssid = "My Pi Network";
    wpaPassphrase = "foobarbaz";
    extraConfig = ''
      disable_pmksa_caching=0
      wpa_pairwise=CCMP
      rsn_pairwise=CCMP
      bridge=br0
    '';
  };
23:59:01

There are no newer messages yet.


Back to Room ListRoom Version: 6