| 4 Jun 2021 |
hexa | and configure ip addresses on the bridge | 23:13:18 |
ElvishJerricco | As in put useDHCP on the bridge interface, not the eth0 interface? | 23:21:13 |
hexa | possibly | 23:23:28 |
ElvishJerricco | 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 | Oof, TIL Element does not shrink down those code blocks into a scrolling thingy | 23:40:16 |
ElvishJerricco | The pi itself is able to access the internet | 23:40:53 |
| 5 Jun 2021 |
hexa | right, so since it's bridged you don't need to enable forwarding | 00:08:09 |
hexa | what does "can't access the internet" exactly mean? | 00:08:34 |
hexa | does DHCP work? | 00:08:40 |
treed | It's a scrolling pane for me in Element | 00:14:11 |
ElvishJerricco | hexa: No, dhcp does not appear to work | 00:24:31 |
hexa | tcpdump the wireless interface, see if dhcp requests arrive | 00:24:51 |
hexa | then tcpdump the bridge to make sure the requests arrive there as well | 00:25:05 |
ElvishJerricco | iOS joins the network but then the dhcp server never says there was any request | 00:25:14 |
hexa | ahh stop | 00:25:18 |
hexa | set bridge=br0 in hostapd extraConfig | 00:25:32 |
ElvishJerricco | Ah, right | 00:25:46 |
ElvishJerricco | It worked! The iPhone has internet, and the pi can be accessed on the network | 00:27:48 |
hexa | 🎉 | 00:28:06 |
ElvishJerricco | Alright, 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 | Anything 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 | most access points won't handle nixos too well 😂 | 00:30:43 |
hexa | which is why https://github.com/telent/nixwrt was created | 00:30:59 |
hexa | but I don't know if anyone besides telent is using that | 00:31:20 |
ElvishJerricco | 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 | personally I roll with openwrt | 00:31:28 |
hexa | you'd probably want mpcie or m.2, there's lots of cards out there | 00:32:02 |
hexa | I can recommend ath9k/ath10k/mt76 | 00:32:13 |
hexa | everything else is messy and not well supported | 00:32:27 |
Church | 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 |