!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

908 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
2 Jun 2025
@hexa:lossy.networkhexaand yeah, the config looks too simple11:37:17
@emilazy:matrix.orgemilyyes. it sure would make sense if you only used PPPoE on DSL, and didn't also carry it over to FTTP. wouldn't it11:37:18
@emilazy:matrix.orgemilythat would be a great world we could live in :P11:37:27
@emilazy:matrix.orgemily

I discovered this gem:

root@OpenWrt:~# cat /etc/ppp/filter
#
# Expression: outbound and not icmp[0] != 8 and not tcp[13] & 4 != 0
#
19
48 0 0 0
21 0 16 1
40 0 0 2
21 0 13 33
48 0 0 13
21 0 5 1
40 0 0 10
69 9 0 8191
177 0 0 4
80 0 0 4
21 6 7 8
21 0 5 6
40 0 0 10
69 3 0 8191
177 0 0 4
80 0 0 17
69 1 0 4
6 0 0 4
6 0 0 0
11:38:10
@emilazy:matrix.orgemilywhich appears to be either a hand-written or compiled BPF program represented in decimal11:38:25
@emilazy:matrix.orgemilythat I don't know what it's doing but it horrifies me that it's even there11:38:35
@hexa:lossy.networkhexawell, that's a pcap filter expression right at the top 🤔11:39:04
@hexa:lossy.networkhexanot ping and not tcp rst?11:40:25
@emilazy:matrix.orgemily no idea what it's doing in /etc/ppp, couldn't find where it's referenced 11:40:48
@hexa:lossy.networkhexa * not ping and not tcp rst? 11:40:53
@emilazy:matrix.orgemily
          environment = {
            # pppd likes to write directly into /var/run. This is rude
            # on a modern system, so we use libredirect to transparently
            # move those files into /run/pppd.
            LD_PRELOAD = "${pkgs.libredirect}/lib/libredirect.so";
            NIX_REDIRECTS = "/var/run=/run/pppd";
          };
11:48:48
@emilazy:matrix.orgemilywhy would you not just patch it… T_T11:49:05
@hexa:lossy.networkhexatoo many locations11:49:41
@emilazy:matrix.orgemilylooks like it's literally a configure flag11:51:23
@emilazy:matrix.orgemily also it supports Type=notify(!) 11:51:38
@hexa:lossy.networkhexasince 2.5.0 iirc11:52:07
@emilazy:matrix.orgemilymight have to send some patches to the module11:52:16
@k900:0upti.meK900I see11:52:22
@k900:0upti.meK900This was all a plan to snipe Emily into fixing our pppd situation11:52:30
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/27375611:52:34
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/24272611:52:40
@emilazy:matrix.orgemilyI mean when you said you wanted me to fix the BPI-R4 jank I didn't think it would involve PPP.11:52:57
@emilazy:matrix.orgemilycheers, might revive this11:53:57
@emilazy:matrix.orgemilyexciting things happening with the commits in the other one11:54:10
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/37102211:54:30
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/36841611:54:35
@hexa:lossy.networkhexaso just the module part is left11:54:56
@emilazy:matrix.orgemilywill just monkey-patch the service for now11:55:44
@hexa:lossy.networkhexayeah, probably the best way to test this 🤪11:55:57
@emilazy:matrix.orgemilyfor like five seconds I considered if it'd be nice to have a structured interface to the config and then I thought more about how horrible the config is11:57:04

Show newer messages


Back to Room ListRoom Version: 6