!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

910 Members
Declaratively manage your switching, routing, wireless, tunneling and more.264 Servers

Load older messages


SenderMessageTime
4 Jun 2021
@hexa:lossy.networkhexaand configure ip addresses on the bridge23:13:18
@elvishjerricco:matrix.orgElvishJerriccoAs in put useDHCP on the bridge interface, not the eth0 interface?23:21:13
@hexa:lossy.networkhexapossibly23:23:28
@elvishjerricco:matrix.orgElvishJerricco

So I've got this:

  networking.useDHCP = false;
  networking.interfaces.eth0.useDHCP = false;
  networking.interfaces.wlan0.useDHCP = false;
  networking.interfaces.br0.useDHCP = true;
  networking.bridges.br0.interfaces = ["eth0" "wlan0"];

  networking.useNetworkd = true;

  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
    '';
  };

And iOS seems to be able to authenticate, but can't access the internet.

23:39:17
@elvishjerricco:matrix.orgElvishJerriccoOof, TIL Element does not shrink down those code blocks into a scrolling thingy23:40:16
@elvishjerricco:matrix.orgElvishJerriccoThe pi itself is able to access the internet23:40:53
5 Jun 2021
@hexa:lossy.networkhexaright, so since it's bridged you don't need to enable forwarding00:08:09
@hexa:lossy.networkhexawhat does "can't access the internet" exactly mean?00:08:34
@hexa:lossy.networkhexadoes DHCP work?00:08:40
@treed:cybre.spacetreedIt's a scrolling pane for me in Element00:14:11
@elvishjerricco:matrix.orgElvishJerricco hexa: No, dhcp does not appear to work 00:24:31
@hexa:lossy.networkhexatcpdump the wireless interface, see if dhcp requests arrive00:24:51
@hexa:lossy.networkhexathen tcpdump the bridge to make sure the requests arrive there as well00:25:05
@elvishjerricco:matrix.orgElvishJerriccoiOS joins the network but then the dhcp server never says there was any request00:25:14
@hexa:lossy.networkhexaahh stop00:25:18
@hexa:lossy.networkhexaset bridge=br0 in hostapd extraConfig00:25:32
@elvishjerricco:matrix.orgElvishJerriccoAh, right00:25:46
@elvishjerricco:matrix.orgElvishJerriccoIt worked! The iPhone has internet, and the pi can be accessed on the network00:27:48
@hexa:lossy.networkhexa🎉00:28:06
@elvishjerricco:matrix.orgElvishJerriccoAlright, now in theory all i need is more reliable hardware than a pi and I can get a pretty good network going with a couple access points hooked up to a dhcp server.00:28:50
@elvishjerricco:matrix.orgElvishJerriccoAnything good out there that A) I can install NixOS on, B) has reasonable performance, and C) isn't as expensive as a full blown PC?00:29:57
@hexa:lossy.networkhexamost access points won't handle nixos too well 😂00:30:43
@hexa:lossy.networkhexawhich is why https://github.com/telent/nixwrt was created 00:30:59
@hexa:lossy.networkhexa but I don't know if anyone besides telent is using that 00:31:20
@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

Show newer messages


Back to Room ListRoom Version: 6