!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

920 Members
Declaratively manage your switching, routing, wireless, tunneling and more.267 Servers

Load older messages


SenderMessageTime
2 Jun 2025
@hexa:lossy.networkhexaI don't remember it integrating with pppd11:34:57
@emilazy:matrix.orgemilyI assume NM's PPPoE support just wraps it anyway though11:34:58
@hexa:lossy.networkhexa
  age.secrets."ppp-credentials".file = ../../agenix/ppp-credentials.age;

  services.pppd = {
    enable = true;
    peers."1und1" = {
      config = ''
        debug
        plugin pppoe.so
        nic-enp1s0
        file ${config.age.secrets."ppp-credentials".path}
        mtu 1500
        mru 1500
        maxfail 0
        novj
        +ipv6
        noauth
        defaultroute
        persist
        noaccomp
        default-asyncmap
        lcp-echo-interval 30
        lcp-echo-failure 4
        #lcp-echo-adaptive
        lcp-max-configure 10
      '';
    };
  };
11:35:19
@emilazy:matrix.orgemilyhttps://networkmanager.dev/docs/api/latest/settings-pppoe.html implies it does11:35:59
@emilazy:matrix.orgemily(but doesn't look very rich)11:36:14
@emilazy:matrix.orgemilyty :)11:36:19
@hexa:lossy.networkhexaoh, it's called DSL/PPPoE in the list11:36:41
@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

Show newer messages


Back to Room ListRoom Version: 6