!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

900 Members
Declaratively manage your switching, routing, wireless, tunneling and more.261 Servers

Load older messages


SenderMessageTime
6 Jun 2021
@zhaofeng:zhaofeng.liZhaofeng LiOh 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 started00:00:34
@elvishjerricco:matrix.orgElvishJerriccoAh. How would I mess with the unit files to ensure proper ordering?00:00:59
@zhaofeng:zhaofeng.liZhaofeng LiI 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 started00:02:27
@zhaofeng:zhaofeng.liZhaofeng LiOh it's a long-standing known issue: https://github.com/systemd/systemd/issues/93600:03:05
@zhaofeng:zhaofeng.liZhaofeng LiSo yeah, no clean solution :/00:03:26
@elvishjerricco:matrix.orgElvishJerriccoWell darn00:05:21
@hexa:lossy.networkhexa ElvishJerricco: hostapd can put stuff into a bridge, not sure how it achieves that, but networkd can't 00:08:32
@hexa:lossy.networkhexahave to read hostapd code for that I guess00:08:41
@hexa:lossy.networkhexaor yeah, might be a timing issue00:08:48
@elvishjerricco:matrix.orgElvishJerricco hexa: So I shouldn't have wlan0 in the br0.interfaces = [...] line? 00:09:11
@hexa:lossy.networkhexa
A WIFI interface needs to be set in 4addr mode before it's added to a bridge.
00:09:19
@hexa:lossy.networkhexathat's probably it00:09:23
@hexa:lossy.networkhexa
iw dev $name set 4addr on
00:09:33
@hexa:lossy.networkhexasadly networkd is free of hooks :)00:09:42
@hexa:lossy.networkhexaservices.hostapd.serviceConfig.ExecStartPost = "systemctl restart systemd-networkd";00:10:34
@hexa:lossy.networkhexashould probably hackfix your stuff :D00:10:42
@elvishjerricco:matrix.orgElvishJerriccoWell, 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 works00:13:37
@zhaofeng:zhaofeng.liZhaofeng LiFor the degraded thing, use LinkLocalAddressing=no to make networkd not try to add addresses to it at all00:16:30
@elvishjerricco:matrix.orgElvishJerricco Zhaofeng Li: Where do I add that? 00:19:07
@zhaofeng:zhaofeng.liZhaofeng LiTo the networkConfig of the wlan interface00:21:01
@noah:matrix.chatsubo.cafeChurch 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:lossy.networkhexanixos-simple-mailserrver?01:27:58
@noah:matrix.chatsubo.cafeChurchYa01:32:27
@joerg:bethselamin.deMic92 (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:vesp.czsorki joined the room.10:55:44
@sorki:vesp.czsorkihttps://nixos-mailserver.readthedocs.io/en/latest/setup-guide.html10:56:48
@noah:matrix.chatsubo.cafeChurchYeah was a stupid thing. Somehow my mailinthebox system on my vps proxy got restarted. So they were blocking my ports heh17:20:23
@eyjhb:eyjhb.dkeyJhb joined the room.20:24:38
7 Jun 2021
@hexa:lossy.networkhexaIf anyone is interested in FRRouting, there is an open pull request for packaging that up https://github.com/NixOS/nixpkgs/pull/12450612:52:29
@eyjhb:eyjhb.dkeyJhb changed their display name from eyjhb to eyJhb.14:06:11

Show newer messages


Back to Room ListRoom Version: 6