| 6 Jun 2021 |
Zhaofeng Li | Oh wait, apparently I can't read and you are using it as an AP 😐️ Then it should work and systemd-networkd was probably trying to bridge the interface before hostapd started | 00:00:34 |
ElvishJerricco | Ah. How would I mess with the unit files to ensure proper ordering? | 00:00:59 |
Zhaofeng Li | I don't think there's a clean solution to this one unfortunately. You can keep it unbridged in networkd and add a service that runs brctl after hostapd has started | 00:02:27 |
Zhaofeng Li | Oh it's a long-standing known issue: https://github.com/systemd/systemd/issues/936 | 00:03:05 |
Zhaofeng Li | So yeah, no clean solution :/ | 00:03:26 |
ElvishJerricco | Well darn | 00:05:21 |
hexa | ElvishJerricco: hostapd can put stuff into a bridge, not sure how it achieves that, but networkd can't | 00:08:32 |
hexa | have to read hostapd code for that I guess | 00:08:41 |
hexa | or yeah, might be a timing issue | 00:08:48 |
ElvishJerricco | hexa: So I shouldn't have wlan0 in the br0.interfaces = [...] line? | 00:09:11 |
hexa |
A WIFI interface needs to be set in 4addr mode before it's added to a bridge.
| 00:09:19 |
hexa | that's probably it | 00:09:23 |
hexa |
iw dev $name set 4addr on
| 00:09:33 |
hexa | sadly networkd is free of hooks :) | 00:09:42 |
hexa | services.hostapd.serviceConfig.ExecStartPost = "systemctl restart systemd-networkd"; | 00:10:34 |
hexa | should probably hackfix your stuff :D | 00:10:42 |
ElvishJerricco | Well, simply removing it from the br0.interfaces makes it "degraded" instead of "failed", and hostapd does seem to have added it to the bridge itself as the wifi still works | 00:13:37 |
Zhaofeng Li | For the degraded thing, use LinkLocalAddressing=no to make networkd not try to add addresses to it at all | 00:16:30 |
ElvishJerricco | Zhaofeng Li: Where do I add that? | 00:19:07 |
Zhaofeng Li | To the networkConfig of the wlan interface | 00:21:01 |
Church | hexa So got my mailserver working heh. Nice and smooth like as far as outgoing. Just need to get ingoing smtp from remotes to my mail server working. But that's a job for another day. | 01:25:36 |
hexa | nixos-simple-mailserrver? | 01:27:58 |
Church | Ya | 01:32:27 |
Mic92 (Old) | In reply to @noah:matrix.chatsubo.cafe hexa So got my mailserver working heh. Nice and smooth like as far as outgoing. Just need to get ingoing smtp from remotes to my mail server working. But that's a job for another day. Pro-tipp: If you are new to setting up mailserver, you might want to check if your email server is an open relay: https://mxtoolbox.com/SuperTool.aspx?action=smtp%3amail.thalheim.io&run=toolpage | 07:09:41 |
| sorki joined the room. | 10:55:44 |
sorki | https://nixos-mailserver.readthedocs.io/en/latest/setup-guide.html | 10:56:48 |
Church | Yeah was a stupid thing. Somehow my mailinthebox system on my vps proxy got restarted. So they were blocking my ports heh | 17:20:23 |
| eyJhb joined the room. | 20:24:38 |
| 7 Jun 2021 |
hexa | If anyone is interested in FRRouting, there is an open pull request for packaging that up https://github.com/NixOS/nixpkgs/pull/124506 | 12:52:29 |
| eyJhb changed their display name from eyjhb to eyJhb. | 14:06:11 |